On 2010-12-19 at 23:33:11 [+0100], scott mc <scottmc2@xxxxxxxxx> wrote: > Thanks for the reply. Another thing relating to this, should we use: > #define isgreater(x, y) __builtin_isgreater ((x),(y)) > #define isgreaterequal(x, y) __builtin_isgreaterequal ((x),(y)) > #define isless(x, y) __builtin_isless ((x),(y)) > #define islessequal(x, y) __builtin_islessequal ((x),(y)) > #define islessgreater(x, y) __builtin_islessgreater ((x),(y)) > #define isunordered(x, y) __builtin_isunordered ((x),(y)) > > or does Haiku not have these __builtin_ functions? Are those > dependent on the CPU arch and/or gcc version? __builtin_*() functions are provided by the compiler. The availability of built-in functions can be architecture dependent, though I doubt that this is the case for the ones above. Generally gcc 2.95.3 has a lot less built-ins than current versions, though it's possible certain built-ins have been deprecated or removed in the meantime. Check the gcc documentation and/or test to be sure what works. CU, Ingo