Nikos Mavrogiannopoulos nmav@gnutls.org writes:
On 02/08/2011 12:11 PM, Niels Möller wrote:
I think we should use global pointers, one for each routine that can make use special instructions. Either setup automagically at first use, or at library load time (using the same mechanisms as C++ constructors).
I like the latter... An explicit global library initialization function might also do.
GMP does the former. Not as pretty, but seems to work well, and maybe a bit easier to do portably.
Regards /Niels