>If you mean that compiler.h e.g. defines "inline" as empty for compilers
> The file compiler.h is here for compatibilty issues of the compiler (it
> does the job for gcc, old version of gcc, pure C, sozobonx C, and maybe
> lattice C too...)
that don't support "inline" keyword (which is C99 feature), this would
mean that instead of static inline, you will have the static function
in *every* C-file that includes gem.h.
I'm not sure what you're referring with above. Or are you agreeing
> For performance question, i don't think the extra function call
> (mt_aes -> non-mt_aes) is significant.
>
> BTW, when mt_aes has been integrated into gemlib (this was the begining
> of MGEMLIB, a fork of gemlib), some work has been done to optimize AES
> calls, and IIRC, the result was that MGEMLIB was faster than legacy
> gemlib. I think current version of gemlib is even faster thanks to ASM
> optimisation of AES trap done since then.
with me that having static inline for appl_init() that usually gets
called only once during program life-time, isn't necessary and it
can be a normal function?
(Then few lines of code can be remove from a_glue.c too.)