harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From odea...@apache.org
Subject svn commit: r785553 - /harmony/enhanced/classlib/trunk/modules/misc/src/main/native/accessors/shared/MemMacros.h
Date Wed, 17 Jun 2009 11:01:14 GMT
Author: odeakin
Date: Wed Jun 17 11:01:14 2009
New Revision: 785553

URL: http://svn.apache.org/viewvc?rev=785553&view=rev
Log:
Tidy up defines and make sure only Linux ia64 and x86_64 receive the memmove definitions of
set/get_unaligned()

Modified:
    harmony/enhanced/classlib/trunk/modules/misc/src/main/native/accessors/shared/MemMacros.h

Modified: harmony/enhanced/classlib/trunk/modules/misc/src/main/native/accessors/shared/MemMacros.h
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/misc/src/main/native/accessors/shared/MemMacros.h?rev=785553&r1=785552&r2=785553&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/misc/src/main/native/accessors/shared/MemMacros.h
(original)
+++ harmony/enhanced/classlib/trunk/modules/misc/src/main/native/accessors/shared/MemMacros.h
Wed Jun 17 11:01:14 2009
@@ -53,16 +53,7 @@
                          (((x) & 0x00000000000000ffull) << 56))
 
 
-#ifdef __linux__ /* linux section */
-
-/* linux ia32 section */
-#ifdef      __i386__
-
-#define get_unaligned(type, ptr) ( *((type *)((uintptr_t)(ptr))) )
-#define set_unaligned(type, ptr, val) ( (void) (*((type *)((uintptr_t)(ptr))) = val) )
-
-/* linux ipf section*/
-#else
+#if defined(LINUX_X86_64) || defined(LINUX_IA64)
 
 #include <string.h>
 #define get_unaligned(type, ptr)                                  \
@@ -78,12 +69,9 @@
     (void)0;                                                    \
 })
 
-#endif /* ifdef __i386__ */
-
-/* windows section */
 #else
 
 #define get_unaligned(type, ptr) ( *((type *)((uintptr_t)(ptr))) )
 #define set_unaligned(type, ptr, val) ( (void) (*((type *)((uintptr_t)(ptr))) = val) )
 
-#endif /* ifdef __linux__*/
+#endif 



Mime
View raw message