diff options
author | Brian Paul <[email protected]> | 2017-10-05 13:34:52 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2017-10-10 11:28:31 -0600 |
commit | c43b0d3f9184752e848ef0ab617cca48c60246ec (patch) | |
tree | 77fa6f0e6c9cdac4978946ada35291ba4e62a04a /src/mesa/main/imports.h | |
parent | 3c5664b78d39e2d13f156369f8114ebbe08d6fb7 (diff) |
mesa: move _mesa_half_is_negative() to half_float.h
v2: use !! in the function to be explicit about type conversion. Though,
gcc generates the same code with or without the logical !!.
Reviewed-by: Roland Scheidegger <[email protected]>
Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/mesa/main/imports.h')
-rw-r--r-- | src/mesa/main/imports.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/mesa/main/imports.h b/src/mesa/main/imports.h index a4964a34cca..51fa72cbc37 100644 --- a/src/mesa/main/imports.h +++ b/src/mesa/main/imports.h @@ -333,12 +333,6 @@ _mesa_bitcount_64(uint64_t n); #endif -static inline bool -_mesa_half_is_negative(GLhalfARB h) -{ - return h & 0x8000; -} - extern int _mesa_snprintf( char *str, size_t size, const char *fmt, ... ) PRINTFLIKE(3, 4); |