OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
PR libfortran/18966
[pf3gnuchains/gcc-fork.git]
/
libgfortran
/
intrinsics
/
c99_functions.c
diff --git
a/libgfortran/intrinsics/c99_functions.c
b/libgfortran/intrinsics/c99_functions.c
index
eb805c3
..
e3e0d6c
100644
(file)
--- a/
libgfortran/intrinsics/c99_functions.c
+++ b/
libgfortran/intrinsics/c99_functions.c
@@
-97,6
+97,14
@@
expf(float x)
}
#endif
}
#endif
+#ifndef HAVE_FABSF
+float
+fabsf(float x)
+{
+ return (float) fabs(x);
+}
+#endif
+
#ifndef HAVE_FLOORF
float
floorf(float x)
#ifndef HAVE_FLOORF
float
floorf(float x)
@@
-245,7
+253,16
@@
nextafterf(float x, float y)
}
#endif
}
#endif
-/* Note that if HAVE_FPCLASSIFY is not defined, then NaN is not handled */
+
+#ifndef HAVE_POWF
+float
+powf(float x, float y)
+{
+ return (float) pow(x, y);
+}
+#endif
+
+/* Note that if fpclassify is not defined, then NaN is not handled */
/* Algorithm by Steven G. Kargl. */
/* Algorithm by Steven G. Kargl. */
@@
-257,7
+274,7
@@
double
round(double x)
{
double t;
round(double x)
{
double t;
-#if
def HAVE_FPCLASSIFY
+#if
defined(fpclassify)
int i;
i = fpclassify(x);
if (i == FP_INFINITE || i == FP_NAN)
int i;
i = fpclassify(x);
if (i == FP_INFINITE || i == FP_NAN)
@@
-289,7
+306,7
@@
float
roundf(float x)
{
float t;
roundf(float x)
{
float t;
-#if
def HAVE_FPCLASSIFY
+#if
defined(fpclassify)
int i;
i = fpclassify(x);
int i;
i = fpclassify(x);
@@
-313,4
+330,3
@@
roundf(float x)
}
}
#endif
}
}
#endif
-