[fpc-devel] Detecting SSE and AVX compiler options

Florian Klämpfl florian at freepascal.org
Sun Feb 3 22:44:40 CET 2019


Am 03.02.19 um 22:29 schrieb Jonas Maebe:
> On 03/02/19 21:26, J. Gareth Moreton wrote:
>> One thing that I should ask though... if a unit like Math is compiled 
>> with -fAVX, then another project that uses it is built without any 
>> special floating-point types, is Math recompiled or will it use the 
>> code already built, thereby possibly putting AVX code into a non-AVX 
>> project?
> 
> The latter.

This is why I proposed to use inlining, especially as it seems to boil 
down to two instructions.




More information about the fpc-devel mailing list