util_hack.h 1.15 KB
Newer Older
Alan Mishchenko committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
/**CFile****************************************************************

  FileName    [util_hack.h]

  SystemName  [ABC: Logic synthesis and verification system.]

  PackageName [This file is used to simulate the presence of "util.h".]

  Synopsis    [External declarations.]

  Author      [Alan Mishchenko]
  
  Affiliation [UC Berkeley]

  Date        [Ver. 1.0. Started - June 20, 2005.]

  Revision    [$Id: util_hack.h,v 1.00 2005/06/20 00:00:00 alanmi Exp $]

***********************************************************************/

21 22
#ifndef ABC__misc__util__util_hack_h
#define ABC__misc__util__util_hack_h
Alan Mishchenko committed
23 24 25 26 27 28

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include <math.h>
29

Alan Mishchenko committed
30 31
#include "abc_global.h"

32 33
ABC_NAMESPACE_HEADER_START

34
#define NIL(type)           ((type *) 0)
Alan Mishchenko committed
35

36 37 38
#define util_cpu_time       Extra_CpuTime            
#define getSoftDataLimit    Extra_GetSoftDataLimit   
#define MMoutOfMemory       Extra_UtilMMoutOfMemory      
39

40
extern abctime              Extra_CpuTime();
41 42
extern int                  Extra_GetSoftDataLimit();
extern void               (*Extra_UtilMMoutOfMemory)( long size );
43 44 45

ABC_NAMESPACE_HEADER_END

Alan Mishchenko committed
46
#endif