On Wed, Dec 22, 2021 at 09:54:42PM +0100, Reinhard Kotucha wrote:
> Currently I get "x86_64" on Linux.  Will it be sufficient check
> whether the string ends with '64' in order to determine reliably
> whether I'm on a 64 bit machine?  That would be nice because
> conditional code or table lookups can be avoided.

You can get the bitwidth of the current system by running
`string.packsize'T'*8` . (Technically this only gives you the bitwidth
of the size_t type, but that should be the same as the native bitwidth
on all architectures I am aware of.)

Best,
Marcel
_______________________________________________
dev-luatex mailing list
dev-luatex@ntg.nl
https://mailman.ntg.nl/mailman/listinfo/dev-luatex

Reply via email to