-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On 13/01/2015 11:34 p.m., Nikos Mavrogiannopoulos wrote:
On Tue, Jan 13, 2015 at 11:20 AM, Niels Möller wrote:
(Niels Möller) writes:
Clearly, this will be more useful after adding support for fat binaries, detecting presence of these instructions at runtime.
I've now had a first go at fat-library support. Checked in on the branch fat-library. See https://git.lysator.liu.se/nettle/nettle/blob/fat-library/x86_64/fat/fat.c
Looks nice. About the __attribute__((constructor)), you are restricting it to GNUC only, while it seems to be available more widely. In gnutls I use it unconditionally except for sun.
#ifdef __sun # pragma init(fat_constructor) # define _CONSTRUCTOR #else # define _CONSTRUCTOR __attribute__((constructor)) #endif
It's early, but it would be nice if the arm neon code was part of fat as well.
FYI: the recent BSD versions require clang/llvm build support these days.
AYJ