fix incorrect WinCE detection in CLZ (r=rreitmai,bug=538632)
authorSteven Johnson <stejohns@adobe.com>
Fri, 08 Jan 2010 11:17:07 -0800
changeset 37671 2fd767b696f852c5671b1c72ba273c985dc42eba
parent 37670 7667bfe1620cf5cb7654fd0dbf715ac8048da479
child 37672 56cdca9fe3d85d314361ff8830364e0a7430e791
push id11426
push userrsayre@mozilla.com
push dateSun, 31 Jan 2010 16:36:36 +0000
treeherderautoland@3048d03980e7 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersrreitmai
bugs538632
milestone1.9.3a1pre
fix incorrect WinCE detection in CLZ (r=rreitmai,bug=538632)
js/src/nanojit/NativeARM.cpp
--- a/js/src/nanojit/NativeARM.cpp
+++ b/js/src/nanojit/NativeARM.cpp
@@ -119,17 +119,17 @@ Assembler::CountLeadingZeroes(uint32_t d
 // devices).
 #elif defined(__GNUC__) && !(defined(ANDROID) && __ARM_ARCH__ <= 5)
     // GCC can use inline assembler to insert a CLZ instruction.
     __asm (
         "   clz     %0, %1  \n"
         :   "=r"    (leading_zeroes)
         :   "r"     (data)
     );
-#elif defined(WINCE)
+#elif defined(UNDER_CE)
     // WinCE can do this with an intrinsic.
     leading_zeroes = _CountLeadingZeros(data);
 #else
     // Other platforms must fall back to a C routine. This won't be as
     // efficient as the CLZ instruction, but it is functional.
     uint32_t    try_shift;
 
     leading_zeroes = 0;