2 * Author......: Jens Steube <jens.steube@gmail.com>
11 #define _FILE_OFFSET_BITS 64
12 #define _CRT_SECURE_NO_WARNINGS
29 #include <sys/types.h>
36 #include <semaphore.h>
46 #include <sys/ioctl.h>
47 #include <mach-o/dyld.h>
48 #include <mach/mach.h>
51 typedef void *OCL_LIB
;
55 typedef void *AMD_LIB
;
64 #define WIN32_LEAN_AND_MEAN
72 typedef UINT8
uint8_t;
73 typedef UINT16
uint16_t;
74 typedef UINT32
uint32_t;
75 typedef UINT64
uint64_t;
77 typedef INT16
int16_t;
78 typedef INT32
int32_t;
79 typedef INT64
int64_t;
82 typedef UINT64
uint64_t;
84 typedef HINSTANCE OCL_LIB
;
87 typedef HINSTANCE NV_LIB
;
88 typedef HINSTANCE AMD_LIB
;
91 #define mkdir(name,mode) mkdir (name)
100 typedef uint32_t uint
; // we need to get rid of this sooner or later, for consistency
102 #define SPEED_CACHE 128
103 #define SPEED_MAXAGE 4096
112 void log_out_nn (FILE *fp
, const char *fmt
, ...);
113 void log_info_nn (const char *fmt
, ...);
114 void log_error_nn (const char *fmt
, ...);
116 void log_out (FILE *fp
, const char *fmt
, ...);
117 void log_info (const char *fmt
, ...);
118 void log_error (const char *fmt
, ...);
120 #define MIN(a,b) (((a) < (b)) ? (a) : (b))
121 #define MAX(a,b) (((a) > (b)) ? (a) : (b))