Browse code

autoit fix for arm

git-svn: trunk@3356

aCaB authored on 2007/11/03 23:28:10
Showing 2 changed files
... ...
@@ -1,3 +1,6 @@
1
+Sat Nov  3 14:28:17 CET 2007 (edwin)
2
+  * libclamav/autoit.c: fix endianess checks for arm - thanks edwin
3
+
1 4
 Sat Nov  3 00:25:52 EET 2007 (edwin)
2 5
 ------------------------------------
3 6
   * libclamav/ole2_extract.c: make endian conversion macros work when operand
... ...
@@ -421,18 +421,8 @@ static double LAME_fpusht(struct LAME *l) {
421 421
 /*       return 0.0; */
422 422
 /*   } */
423 423
 
424
-#if WORDS_BIGENDIAN == FPU_WORDS_BIGENDIAN
425 424
   ret.as_uint.lo = rolled << 0x14;
426 425
   ret.as_uint.hi = 0x3ff00000 | (rolled >> 0xc);
427
-#else
428
-  do {
429
-    uint32_t tmp = rolled << 0x14;
430
-  
431
-    ret.as_uint.lo = ((tmp&0xff)<<24) | (((tmp>>8)&0xff)<<16) | (((tmp>>16)&0xff)<<8) | ((tmp>>24)&0xff);
432
-    tmp = 0x3ff00000 | (rolled >> 0xc);
433
-    ret.as_uint.hi = ((tmp&0xff)<<24) | (((tmp>>8)&0xff)<<16) | (((tmp>>16)&0xff)<<8) | ((tmp>>24)&0xff);
434
-  } while(0);
435
-#endif
436 426
   return ret.as_double - 1.0;
437 427
 }
438 428