瀏覽代碼

import thumb support from jbowler in Bug 385

Mike Frysinger 19 年之前
父節點
當前提交
a0ca45d467
共有 1 個文件被更改,包括 3 次插入4 次删除
  1. 3 4
      libm/math_private.h

+ 3 - 4
libm/math_private.h

@@ -40,7 +40,8 @@
  * For VFP, floats words follow the memory system mode.
  */
 
-#if (__BYTE_ORDER == __BIG_ENDIAN) || defined(__arm__) && !defined(__VFP_FP__)
+#if (__BYTE_ORDER == __BIG_ENDIAN) || \
+    (!defined(__VFP_FP__) && (defined(__arm__) || defined(__thumb__)))
 
 typedef union
 {
@@ -52,9 +53,7 @@ typedef union
   } parts;
 } ieee_double_shape_type;
 
-#endif
-
-#if (__BYTE_ORDER == __LITTLE_ENDIAN) && (!defined(__arm__) || defined(__VFP_FP__))
+#else
 
 typedef union
 {