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 <pendingchaos02@gmail.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
This commit is contained in:
Rhys Perry 2019-09-05 20:51:30 +01:00 committed by Adam Jackson
parent 3b1a7e5333
commit 5a7fe0ae99
1 changed files with 1 additions and 0 deletions

View File

@ -45,6 +45,7 @@
#include <stdarg.h>
#include "bitscan.h"
#include "u_endian.h" /* for PIPE_ARCH_BIG_ENDIAN */
#ifdef __cplusplus
extern "C" {