projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
81e0d73
)
added _mesa_little_endian()
author
Brian Paul
<brian.paul@tungstengraphics.com>
Thu, 21 Sep 2006 15:51:06 +0000
(15:51 +0000)
committer
Brian Paul
<brian.paul@tungstengraphics.com>
Thu, 21 Sep 2006 15:51:06 +0000
(15:51 +0000)
src/mesa/main/imports.h
patch
|
blob
|
history
diff --git
a/src/mesa/main/imports.h
b/src/mesa/main/imports.h
index a17a0fd18cae96bb5f8c31e8a8dad7a3af570000..9fb02a7e9cd9112bf7ed1b3c55f96928216d1c45 100644
(file)
--- a/
src/mesa/main/imports.h
+++ b/
src/mesa/main/imports.h
@@
-1,6
+1,6
@@
/*
* Mesa 3-D graphics library
- * Version: 6.5.
1
+ * Version: 6.5.
2
*
* Copyright (C) 1999-2006 Brian Paul All Rights Reserved.
*
@@
-604,6
+604,17
@@
do { \
#endif
+/**
+ * Return 1 if this is a little endian machine, 0 if big endian.
+ */
+static INLINE GLboolean
+_mesa_little_endian(void)
+{
+ const GLuint ui = 1; /* intentionally not static */
+ return *((const GLubyte *) &ui);
+}
+
+
/**********************************************************************
* Functions