[vlc-devel] [RFC] [PATCH] ARM: detect VFP floating point unit

Måns Rullgård mans at mansr.com
Thu Jan 26 15:14:45 CET 2012


"Rémi Denis-Courmont" <remi at remlab.net> writes:

> Le mercredi 25 janvier 2012 18:22:27 Måns Rullgård, vous avez écrit :
>> > Alternatively, HAVE_FPU could be set only when the VFP Procedure
>> > Calling Standard __ARM_VFP_PCS is enabled (i.e. -mfloat-abi=hard).
>> 
>> That would be a bad idea.
>
> From a logical point of view, I agree...
>
>> Besides -mfloat-abi=softfp still being the most widely used,
>
> ...but does floating point performance not suck with softfp? Then VLC might 
> still be better off using integers.

No, the difference between softfp and hard is well below the noise
margin for most applications.

>> only a few recent gcc versions define __ARM_VFP_PCS.
>
> That is not my problem. I do not force people to use old compilers.

Of course not, but many people will use whatever e.g. the Android NDK
comes with.

-- 
Måns Rullgård
mans at mansr.com




More information about the vlc-devel mailing list