OSDN Git Service
(root)
/
android-x86
/
external-mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ec6e823
)
glsl: Add utility function to extract 64-bit sign
author
Elie Tournier
<tournier.elie@gmail.com>
Tue, 8 Aug 2017 13:28:48 +0000
(14:28 +0100)
committer
Matt Turner
<mattst88@gmail.com>
Thu, 10 Jan 2019 00:42:40 +0000
(16:42 -0800)
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/compiler/glsl/float64.glsl
patch
|
blob
|
history
diff --git
a/src/compiler/glsl/float64.glsl
b/src/compiler/glsl/float64.glsl
index
2cf85bb
..
5f2804a
100644
(file)
--- a/
src/compiler/glsl/float64.glsl
+++ b/
src/compiler/glsl/float64.glsl
@@
-159,3
+159,10
@@
__fne64(uint64_t a, uint64_t b)
return !__feq64_nonnan(a, b);
}
+
+/* Returns the sign bit of the double-precision floating-point value `a'.*/
+uint
+__extractFloat64Sign(uint64_t a)
+{
+ return unpackUint2x32(a).y >> 31;
+}