This is the mail archive of the libc-ports@sources.redhat.com mailing list for the libc-ports project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH roland/arm-hwcap-vfp] don't use HWCAP_ARM_* in OS-independent code


On Wed, 8 Aug 2012, Roland McGrath wrote:

> This change is not quite just a a no-op abstraction of the existing
> logic.  I also made the generic sysdeps/arm/ code define ARM_HAVE_VFP to
> a constant when __VFP_FP__ is predefined.  My rationale is that if the
> compiler building libc is allowed to generate VFP instructions, then
> we're already implicitly presuming the hardware exists at runtime and so
> we might as well skip the explicit runtime checks in libc too.

__VFP_FP__ doesn't mean "generating VFP instructions", it means 
"floating-point types have VFP layout" (i.e. normal IEEE floating-point 
with the same byte ordering / endianness as integer types, as opposed to 
FPA format), which is always true for EABI.  The relevant test for 
"generating VFP instructions" is defined __VFP_FP__ && !defined __SOFTFP__ 
(which can be simplified to just !defined __SOFTFP__ given that EABI is 
assumed).

-- 
Joseph S. Myers
joseph@codesourcery.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]