2016-05-01 06:13:24 +00:00
|
|
|
From 6ccae713acc457d7df6ab15e124a7d77c5093213 Mon Sep 17 00:00:00 2001
|
2016-03-20 13:48:31 +00:00
|
|
|
From: Igor Gnatenko <i.gnatenko.brain@gmail.com>
|
|
|
|
Date: Sun, 20 Mar 2016 13:28:07 +0100
|
|
|
|
Subject: [PATCH 4/4] bigendian assert
|
|
|
|
|
|
|
|
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
|
|
|
|
---
|
|
|
|
src/gallium/auxiliary/util/u_math.h | 3 +++
|
|
|
|
1 file changed, 3 insertions(+)
|
|
|
|
|
|
|
|
diff --git a/src/gallium/auxiliary/util/u_math.h b/src/gallium/auxiliary/util/u_math.h
|
2016-05-01 06:13:24 +00:00
|
|
|
index ecb1d63..90ada14 100644
|
2016-03-20 13:48:31 +00:00
|
|
|
--- a/src/gallium/auxiliary/util/u_math.h
|
|
|
|
+++ b/src/gallium/auxiliary/util/u_math.h
|
2016-05-01 06:13:24 +00:00
|
|
|
@@ -59,6 +59,9 @@
|
2016-03-20 13:48:31 +00:00
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
+#ifdef PIPE_ARCH_BIG_ENDIAN
|
|
|
|
+#include <assert.h>
|
|
|
|
+#endif
|
|
|
|
|
|
|
|
#ifndef M_SQRT2
|
|
|
|
#define M_SQRT2 1.41421356237309504880
|
|
|
|
--
|
|
|
|
2.7.4
|
|
|
|
|