From 6de9cd9a886ea695aa892c3c7c07818a7b7e9e6f Mon Sep 17 00:00:00 2001 From: Diego Novillo Date: Thu, 13 May 2004 02:41:07 -0400 Subject: Merge tree-ssa-20020619-branch into mainline. From-SVN: r81764 --- libgfortran/generated/exponent_r8.c | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 libgfortran/generated/exponent_r8.c (limited to 'libgfortran/generated/exponent_r8.c') diff --git a/libgfortran/generated/exponent_r8.c b/libgfortran/generated/exponent_r8.c new file mode 100644 index 0000000..8a4101e --- /dev/null +++ b/libgfortran/generated/exponent_r8.c @@ -0,0 +1,31 @@ +/* Implementation of the EXPONENT intrinsic + Copyright 2003 Free Software Foundation, Inc. + Contributed by Richard Henderson . + +This file is part of the GNU Fortran 95 runtime library (libgfor). + +Libgfor is free software; you can redistribute it and/or +modify it under the terms of the GNU Lesser General Public +License as published by the Free Software Foundation; either +version 2.1 of the License, or (at your option) any later version. + +Ligbfor is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Lesser General Public License for more details. + +You should have received a copy of the GNU Lesser General Public +License along with libgfor; see the file COPYING.LIB. If not, +write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, +Boston, MA 02111-1307, USA. */ +#include +#include "libgfortran.h" + + +GFC_INTEGER_4 +prefix(exponent_r8) (GFC_REAL_8 s) +{ + int ret; + frexp (s, &ret); + return ret; +} -- cgit v1.1