Nikos Mavrogiannopoulos nmav@gnutls.org writes:
What I was wondering is how would you think of implementing the cpu-specific optimizations in assembly?
If/when we do that, and if we want to be able to select which code to use at runtime (rater than compile time), 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).
Regards, /Niels