mesa/imports: Add a _mesa_half_is_negative helper function

Signed-off-by: Jason Ekstrand <jason.ekstrand@intel.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
This commit is contained in:
Jason Ekstrand
2014-08-01 16:41:16 -07:00
parent 850fb0d1dc
commit 452d64986b
+5
View File
@@ -552,6 +552,11 @@ _mesa_float_to_half(float f);
extern float
_mesa_half_to_float(GLhalfARB h);
static inline bool
_mesa_half_is_negative(GLhalfARB h)
{
return h & 0x8000;
}
extern void *
_mesa_bsearch( const void *key, const void *base, size_t nmemb, size_t size,