diff options
Diffstat (limited to 'src/compiler')
-rw-r--r-- | src/compiler/glsl/float64.glsl | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/compiler/glsl/float64.glsl b/src/compiler/glsl/float64.glsl index 9834241872c..f5dee00ae2b 100644 --- a/src/compiler/glsl/float64.glsl +++ b/src/compiler/glsl/float64.glsl @@ -537,9 +537,7 @@ __roundAndPackInt64(uint zSign, uint zFrac0, uint zFrac1, uint zFrac2) int __countLeadingZeros32(uint a) { - int shiftCount; - shiftCount = mix(31 - findMSB(a), 32, a == 0u); - return shiftCount; + return 31 - findMSB(a); } /* Takes an abstract floating-point value having sign `zSign', exponent `zExp', |