#define p_coeff_1h 1.00000000000000000000000000000000000000000000000000000000000000000000000000000000e+00 #define p_coeff_2h 4.99998331069946289062500000000000000000000000000000000000000000000000000000000000e-01 #define p_coeff_3h 1.66667461395263671875000000000000000000000000000000000000000000000000000000000000e-01 #define p_coeff_4h 4.17752265930175781250000000000000000000000000000000000000000000000000000000000000e-02 #define p_coeff_5h 8.33320617675781250000000000000000000000000000000000000000000000000000000000000000e-03 void p(double *p_resh, double x) { volatile float p_t_1_0h; volatile float p_t_2_0h; volatile float p_t_3_0h; volatile float p_t_4_0h; volatile float p_t_5_0h; volatile float p_t_6_0h; volatile float p_t_7_0h; volatile float p_t_8_0h; volatile float p_t_9_0h; volatile float p_t_10_0h; p_t_1_0h = p_coeff_5h; p_t_2_0h = p_t_1_0h * x; p_t_3_0h = p_coeff_4h + p_t_2_0h; p_t_4_0h = p_t_3_0h * x; p_t_5_0h = p_coeff_3h + p_t_4_0h; p_t_6_0h = p_t_5_0h * x; p_t_7_0h = p_coeff_2h + p_t_6_0h; p_t_8_0h = p_t_7_0h * x; p_t_9_0h = p_coeff_1h + p_t_8_0h; p_t_10_0h = p_t_9_0h * x; *p_resh = p_t_10_0h; }