mesa: add signbit() macro

Reviewed-by: Matt Turner <mattst88@gmail.com>
This commit is contained in:
Brian Paul 2012-09-24 13:20:33 -06:00
parent defe8f0da2
commit 14ca76646a

View file

@ -145,6 +145,13 @@ static inline int isblank(int ch) { return ch == ' ' || ch == '\t'; }
/*@}*/
/*
* signbit() is a macro on Linux. Not available on Windows.
*/
#ifndef signbit
#define signbit(x) ((x) < 0.0f)
#endif
/** single-precision inverse square root */
static inline float