Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libm/mathfp/sf_tgamma.c')
-rw-r--r--newlib/libm/mathfp/sf_tgamma.c51
1 files changed, 0 insertions, 51 deletions
diff --git a/newlib/libm/mathfp/sf_tgamma.c b/newlib/libm/mathfp/sf_tgamma.c
deleted file mode 100644
index f4d145634..000000000
--- a/newlib/libm/mathfp/sf_tgamma.c
+++ /dev/null
@@ -1,51 +0,0 @@
-/* w_gammaf.c -- float version of w_gamma.c.
- * Conversion to float by Ian Lance Taylor, Cygnus Support, ian@cygnus.com.
- */
-
-/*
- * ====================================================
- * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
- *
- * Developed at SunPro, a Sun Microsystems, Inc. business.
- * Permission to use, copy, modify, and distribute this
- * software is freely granted, provided that this notice
- * is preserved.
- * ====================================================
- */
-
-#include <math.h>
-#include <errno.h>
-
-#ifdef __STDC__
- float tgammaf(float x)
-#else
- float tgammaf(x)
- float x;
-#endif
-{
- float y;
- int local_signgam;
- y = gammaf_r(x,&local_signgam);
- if (local_signgam < 0) y = -y;
-#ifdef _IEEE_LIBM
- return y;
-#else
- if(_LIB_VERSION == _IEEE_) return y;
-
- if(!finitef(y)&&finitef(x)) {
- if(floorf(x)==x&&x<=(float)0.0)
- {
- /* tgammaf pole */
- errno = EDOM;
- return HUGE_VAL;
- }
- else
- {
- /* tgammaf overflow */
- errno = ERANGE;
- return HUGE_VAL;
- }
- }
- return y;
-#endif
-}