2 * Authors.....: Jens Steube <jens.steube@gmail.com>
3 * magnum <john.magnum@hushmail.com>
13 #define _FILE_OFFSET_BITS 64
14 #define _CRT_SECURE_NO_WARNINGS
31 #include <sys/types.h>
38 #include <semaphore.h>
48 #include <sys/ioctl.h>
49 #include <mach-o/dyld.h>
50 #include <mach/mach.h>
53 typedef void *OCL_LIB
;
57 typedef void *AMD_LIB
;
66 #define WIN32_LEAN_AND_MEAN
74 typedef UINT8
uint8_t;
75 typedef UINT16
uint16_t;
76 typedef UINT32
uint32_t;
77 typedef UINT64
uint64_t;
79 typedef INT16
int16_t;
80 typedef INT32
int32_t;
81 typedef INT64
int64_t;
84 typedef UINT64
uint64_t;
86 typedef HINSTANCE OCL_LIB
;
89 typedef HINSTANCE NV_LIB
;
90 typedef HINSTANCE AMD_LIB
;
93 #define mkdir(name,mode) mkdir (name)
100 typedef uint64_t u64
;
102 typedef uint32_t uint
; // we need to get rid of this sooner or later, for consistency
104 #define EXEC_CACHE 128
106 #define SPEED_CACHE 128
107 #define SPEED_MAXAGE 4096
109 #define HCBUFSIZ 0x50000 // general large space buffer size in case the size is unknown at compile-time
115 void log_out_nn (FILE *fp
, const char *fmt
, ...);
116 void log_info_nn (const char *fmt
, ...);
117 void log_error_nn (const char *fmt
, ...);
119 void log_out (FILE *fp
, const char *fmt
, ...);
120 void log_info (const char *fmt
, ...);
121 void log_error (const char *fmt
, ...);
123 #define MIN(a,b) (((a) < (b)) ? (a) : (b))
124 #define MAX(a,b) (((a) > (b)) ? (a) : (b))
126 #define CEIL(a) ((a - (int) (a)) > 0 ? a + 1 : a)