Mac OS X / Linux support
Brought to you by:
thinkingalot
This patch allows building Gull 1.0a on 64-bit Mac OS X, tested on 10.6.4 with a Core 2 Duo. It should also work on 64-bit Linux/BSD, though that requires testing. It includes renaming Gull.cpp to gull.c, since you use no C++ features. It is built using 'gcc -fast -m64 gull.c -o gull'.
+ implement int types using <stdint.h> (might also work in Windows?)
+ _mm_prefetch disabled (might be available on Linux?)
+ random() renamed to rand64() to avoid conflict with standard BSD function
+ printf format "%I64d" changed to standard "%llu"
+ hash table using valloc() which aligns with page boundaries (might also work in Windows?)
patch to Gull.cpp for Mac OS X support