Fat arm support

Niels Möller nisse at lysator.liu.se
Sun Jan 18 20:48:08 UTC 2015

tg at gmplib.org (Torbjörn Granlund) writes:

> It is possible to avoid parsing /proc/cpuinfo, and instead call
> getauxval.  This works on most systems, but my A15 system does not seem
> to have the auxv.h include file.

Hmm, I had a quick look in asm/hwcap.h and the getauxval manpage. As far
as I see, this doesn't provide any information on the architecture
version. How do you get that, is there some other type constant for
getauxval which I'm missing? In /proc/cpuinfo, one can look for the "CPU
architecture:" line.

E.g, testing availability of the uxtb instruction, available in ARMv6
and later if I've understood it correctly. (I'm taking as example an
instruction used in Nettle, but from looking at the diretories under
gmp/mpn/arm, I think arch-version tests are needed in GMP too).


Niels Möller. PGP-encrypted email is preferred. Keyid C0B98E26.
Internet email is subject to wholesale government surveillance.

More information about the gmp-devel mailing list