From e34856fb748b6a4e36a200271d45f35ee6f904a9 Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Thu, 8 Sep 2011 12:16:52 +0000 Subject: [PATCH] core: handle denormal halfs properly on the PS3; it's denormal floats that we do not care about. --- src/half.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/half.cpp b/src/half.cpp index 4a2f8d36..b6e07ed3 100644 --- a/src/half.cpp +++ b/src/half.cpp @@ -227,7 +227,6 @@ static inline uint32_t half_to_float_branch(uint16_t x) if (e == 0) { -#if !defined __CELLOS_LV2__ uint32_t v = m | (m >> 1); v |= v >> 2; v |= v >> 4; @@ -238,10 +237,6 @@ static inline uint32_t half_to_float_branch(uint16_t x) /* We don't have to remove the 10th mantissa bit because it gets * added to our underestimated exponent. */ return s | (((125 - e) << 23) + (m << e)); -#else - /* PS3 don't know bout my denormals */ - return s; -#endif } if (e == 0x7c00u)