mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-28 00:21:52 +03:00
soft-fp: Support using struct layout attributes on bit-fields.
This commit is contained in:
@ -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; \
|
||||
|
Reference in New Issue
Block a user