aboutsummaryrefslogtreecommitdiff
path: root/soft-fp/soft-fp.h
diff options
context:
space:
mode:
authorKai Tietz <ktietz@redhat.com>2012-03-01 16:22:09 +0000
committerJoseph Myers <joseph@codesourcery.com>2012-03-01 16:22:09 +0000
commitf775c276fd1f89cc9d561db0890a356e7d6e50b8 (patch)
treee9c1f14c5d7a5fa8534879736c46e492b2220994 /soft-fp/soft-fp.h
parent9ea559e401aefe0528600270b62d52195f1347eb (diff)
downloadglibc-f775c276fd1f89cc9d561db0890a356e7d6e50b8.zip
glibc-f775c276fd1f89cc9d561db0890a356e7d6e50b8.tar.gz
glibc-f775c276fd1f89cc9d561db0890a356e7d6e50b8.tar.bz2
soft-fp: Support using struct layout attributes on bit-fields.
Diffstat (limited to 'soft-fp/soft-fp.h')
-rw-r--r--soft-fp/soft-fp.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/soft-fp/soft-fp.h b/soft-fp/soft-fp.h
index ed4d39d..46cb1cf 100644
--- a/soft-fp/soft-fp.h
+++ b/soft-fp/soft-fp.h
@@ -1,5 +1,5 @@
/* Software floating-point emulation.
- Copyright (C) 1997,1998,1999,2000,2002,2003,2005,2006,2007
+ Copyright (C) 1997,1998,1999,2000,2002,2003,2005,2006,2007,2012
Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Richard Henderson (rth@cygnus.com),
@@ -84,6 +84,16 @@
#define FP_EX_DENORM 0
#endif
+/* _FP_STRUCT_LAYOUT may be defined as an attribute to determine the
+ struct layout variant used for structures where bit-fields are used
+ to access specific parts of binary floating-point numbers. This is
+ required for systems where the default ABI uses struct layout with
+ differences in how consecutive bit-fields are laid out from the
+ default expected by soft-fp. */
+#ifndef _FP_STRUCT_LAYOUT
+#define _FP_STRUCT_LAYOUT
+#endif
+
#ifdef _FP_DECL_EX
#define FP_DECL_EX \
int _fex = 0; \