libm: do not use optimized modf on CAF devices