From a2d7a3ff6603a97188b69e3d64058f2093c43f71 Mon Sep 17 00:00:00 2001 From: tobi Date: Sun, 26 Sep 2004 14:52:04 +0000 Subject: PR libfortran/16137 * config.h.in (HAVE_POWF): Undefine. * configure.ac: Check for 'powf' in library. * configure: Regenerate. * intrinsics/c99_functions.c (powf): New function. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@88128 138bc75d-0d04-0410-961f-82ee72b054a4 --- libgfortran/intrinsics/c99_functions.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'libgfortran/intrinsics') diff --git a/libgfortran/intrinsics/c99_functions.c b/libgfortran/intrinsics/c99_functions.c index eb805c36f08..8198e0093ee 100644 --- a/libgfortran/intrinsics/c99_functions.c +++ b/libgfortran/intrinsics/c99_functions.c @@ -245,6 +245,15 @@ nextafterf(float x, float y) } #endif + +#ifndef HAVE_POWF +float +powf(float x, float y) +{ + return (float) pow(x, y); +} +#endif + /* Note that if HAVE_FPCLASSIFY is not defined, then NaN is not handled */ /* Algorithm by Steven G. Kargl. */ -- cgit v1.2.1