Reverted optimizations in bmathfun.c