Adrien Prost-Boucle <adrien.prost-bou...@laposte.net> writes:

> Maybe the availability of SSE / AVX / NEON etc instruction sets can be
> checked at compilation time?

That's what configure (and its helper scripts) does.

With --enable-fat, we also have runtime detection on certain systems.

> The ASM version would be very easy to obtain:
> compile sqrtrem1 and sqrtrem2 (an FP implementation) on the right
> machine and keep the ASM.

Or if these are small and easy functions, write them by hand.

> There would be no dependency on libm.
> How difficult would it be to add such checks in GMP code?

It's not that hard to add new assembly files. You need to know some
assembly, of course. And be aware that gmp uses m4 to preprocess
assembly source files.

Regards,
/Niels

-- 
Niels Möller. PGP-encrypted email is preferred. Keyid 368C6677.
Internet email is subject to wholesale government surveillance.
_______________________________________________
gmp-devel mailing list
gmp-devel@gmplib.org
https://gmplib.org/mailman/listinfo/gmp-devel

Reply via email to