math: use double_t for temporaries to avoid stores on i386