math: raise flags in log2l.c on <= 0 arguments, and fix volatile