tree-wide: replace MAYBE_UNUSED with ASSERTED
Suggested-by: Jason Ekstrand <jason@jlekstrand.net> Signed-off-by: Eric Engestrom <eric.engestrom@intel.com> Reviewed-by: Matt Turner <mattst88@gmail.com>
This commit is contained in:
@@ -146,7 +146,7 @@ uint8_t _mesa_half_to_unorm8(uint16_t val)
|
||||
{
|
||||
const int m = val & 0x3ff;
|
||||
const int e = (val >> 10) & 0x1f;
|
||||
MAYBE_UNUSED const int s = (val >> 15) & 0x1;
|
||||
ASSERTED const int s = (val >> 15) & 0x1;
|
||||
|
||||
/* v = round_to_nearest(1.mmmmmmmmmm * 2^(e-15) * 255)
|
||||
* = round_to_nearest((1.mmmmmmmmmm * 255) * 2^(e-15))
|
||||
|
||||
Reference in New Issue
Block a user