
30 Jan
2012
30 Jan
'12
12:19 a.m.
On 01/29/2012 05:47 PM, John Salmon wrote:
The -maes option is gcc-specific. The Intel compiler, for example, does not have an analogous command line option. Unlike with gcc, you can #include<wmmintrin.h> and you can use the _mm_aesenc_si128() without any command line option.
I'd avoid to rely on compiler-specific behaviour.
I think that it's important for the library to allow the programmer the opportunity to decide about AESNI at compile-time, and also to allow the programmer to defer the decision till runtime.
Allowing the user to choose at compile-time is enough, since the user can build runtime selection on top of that.