math: fix x86_64 and x32 asm not to use sahf instruction