[AD] float math function inconsistencies |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
I noticed whilst going through the code that float math functions are sometimes used inconsistently, e.g. fabs instead of fabsf where <math.h> declares:
double fabs(double);
float fabsf(float);
The compiler should promote the argument to a double. This might not be inefficient on some platforms, but it is inconsistent, and could inefficient on some lesser platforms.
Cheers, Nick
Attachment:
float_patch.diff
Description: Binary data