OSDN Git Service

2009-06-19 Joel Sherrill <joel.sherrill@oarcorp.com>
authorjjohnstn <jjohnstn>
Fri, 19 Jun 2009 18:15:34 +0000 (18:15 +0000)
committerjjohnstn <jjohnstn>
Fri, 19 Jun 2009 18:15:34 +0000 (18:15 +0000)
        * libc/sys/rtems/machine/param.h: Change ALIGNBYTES
        so it can point to an aligned structure or double.

newlib/ChangeLog
newlib/libc/sys/rtems/machine/param.h

index 154e059..cedd4d5 100644 (file)
@@ -1,3 +1,8 @@
+2009-06-19  Joel Sherrill <joel.sherrill@oarcorp.com>
+
+       * libc/sys/rtems/machine/param.h: Change ALIGNBYTES
+       so it can point to an aligned structure or double.
+
 2009-06-18  Corinna Vinschen  <corinna@vinschen.de>
 
        * libc/locale/locale.c (loadlocale): Add handling of "@cjknarrow"
index fd24443..e4dd271 100644 (file)
@@ -19,7 +19,7 @@
  * for all data types (int, long, ...).   The result is unsigned int
  * and must be cast to any desired pointer type.
  */
-#define ALIGNBYTES     (sizeof(int) - 1)
+#define ALIGNBYTES     (sizeof(double) - 1)
 #define ALIGN(p)       (((unsigned)(p) + ALIGNBYTES) & ~ALIGNBYTES)
 
 #define PAGE_SHIFT     12              /* LOG2(PAGE_SIZE) */