mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-06 00:10:20 +01:00
mesa: add signbit() macro
Reviewed-by: Matt Turner <mattst88@gmail.com>
This commit is contained in:
parent
defe8f0da2
commit
14ca76646a
1 changed files with 7 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue