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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user