fixes for host gcc 4.6.1
[zpugcc/jano.git] / toolchain / gcc / newlib / libm / common / sf_fma.c
blob3b4bcc1ce2dcbe2b69d8c3b5f214c30f079e7dbd
1 /* Copyright (C) 2002 by Red Hat, Incorporated. All rights reserved.
3 * Permission to use, copy, modify, and distribute this software
4 * is freely granted, provided that this notice is preserved.
5 */
7 #include "fdlibm.h"
9 #ifdef __STDC__
10 float fmaf(float x, float y, float z)
11 #else
12 float fmaf(x,y,z)
13 float x;
14 float y;
15 float z;
16 #endif
18 /* Let the implementation handle this. */
19 return (x * y) + z;
22 #ifdef _DOUBLE_IS_32BITS
24 #ifdef __STDC__
25 double fma(double x, double y, double z)
26 #else
27 double fma(x,y,z)
28 double x;
29 double y;
30 double z;
31 #endif
33 return (double) fmaf((float) x, (float) y, (float) z);
36 #endif /* defined(_DOUBLE_IS_32BITS) */