Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/sys/rtems/machine/param.h')
-rw-r--r--newlib/libc/sys/rtems/machine/param.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/newlib/libc/sys/rtems/machine/param.h b/newlib/libc/sys/rtems/machine/param.h
index e4dd271fb..74891f504 100644
--- a/newlib/libc/sys/rtems/machine/param.h
+++ b/newlib/libc/sys/rtems/machine/param.h
@@ -19,7 +19,11 @@
* for all data types (int, long, ...). The result is unsigned int
* and must be cast to any desired pointer type.
*/
+#if defined(__sparc__)
#define ALIGNBYTES (sizeof(double) - 1)
+#else
+#define ALIGNBYTES (sizeof(int) - 1)
+#endif
#define ALIGN(p) (((unsigned)(p) + ALIGNBYTES) & ~ALIGNBYTES)
#define PAGE_SHIFT 12 /* LOG2(PAGE_SIZE) */