aboutsummaryrefslogtreecommitdiffstats
path: root/src/util/u_math.h
diff options
context:
space:
mode:
authorRhys Perry <[email protected]>2019-09-05 20:51:30 +0100
committerAdam Jackson <[email protected]>2019-09-06 19:52:50 +0000
commit5a7fe0ae992a4bf623578cf7bf8c3451940d57be (patch)
treeb9cd4d6eb3d5808ea83e7411d0254202b58816f0 /src/util/u_math.h
parent3b1a7e5333335900293935399ce49a67562eafc7 (diff)
util: include u_endian.h in u_math.h
u_endian.h needs to be included, otherwise PIPE_ARCH_BIG_ENDIAN might not be defined on big-endian architectures and the endian conversion macros will be incorrect. I don't think anything is broken because of this, I just noticed this when looking at the file. Signed-off-by: Rhys Perry <[email protected]> Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src/util/u_math.h')
-rw-r--r--src/util/u_math.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/util/u_math.h b/src/util/u_math.h
index 11fbfb45761..7b779c79ca7 100644
--- a/src/util/u_math.h
+++ b/src/util/u_math.h
@@ -45,6 +45,7 @@
#include <stdarg.h>
#include "bitscan.h"
+#include "u_endian.h" /* for PIPE_ARCH_BIG_ENDIAN */
#ifdef __cplusplus
extern "C" {