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:
authorDanny Smith <dannysmith@users.sourceforge.net>2003-05-14 05:03:20 +0400
committerDanny Smith <dannysmith@users.sourceforge.net>2003-05-14 05:03:20 +0400
commit3927f0a891c576b49ec73aa266dd767d07df6048 (patch)
tree7fd3a4e7ab75587b246afe34a14b8fe5cf8d730f /winsup/mingw
parente655bfb1c06f2801771e4efc456db2c2cebfcdf9 (diff)
* include/math.h (fabs) : Remove inline definition.
(fabsf): Likewise. (fabsl): Likewise.
Diffstat (limited to 'winsup/mingw')
-rw-r--r--winsup/mingw/ChangeLog6
-rw-r--r--winsup/mingw/include/math.h23
2 files changed, 8 insertions, 21 deletions
diff --git a/winsup/mingw/ChangeLog b/winsup/mingw/ChangeLog
index e5026be8f..7b65f62b4 100644
--- a/winsup/mingw/ChangeLog
+++ b/winsup/mingw/ChangeLog
@@ -1,3 +1,9 @@
+2003-05-13 Danny Smith <dannysmith@users.sourceforge.net>
+
+ * include/math.h (fabs) : Remove inline definition.
+ (fabsf): Likewise.
+ (fabsl): Likewise.
+
2003-05-06 Earnie Boyd <earnie@users.sf.net>
* include/_mingw.h: Change version to 3.0
diff --git a/winsup/mingw/include/math.h b/winsup/mingw/include/math.h
index bd0a0da89..6d1d8ccdb 100644
--- a/winsup/mingw/include/math.h
+++ b/winsup/mingw/include/math.h
@@ -167,14 +167,6 @@ _CRTIMP double __cdecl sqrt (double);
_CRTIMP double __cdecl ceil (double);
_CRTIMP double __cdecl floor (double);
_CRTIMP double __cdecl fabs (double);
-#if !defined (__NO_INLINES__)
-extern __inline__ __cdecl double fabs (double x)
-{
- double res;
- __asm__ ("fabs;" : "=t" (res) : "0" (x));
- return res;
-}
-#endif
_CRTIMP double __cdecl ldexp (double, int);
_CRTIMP double __cdecl frexp (double, int*);
_CRTIMP double __cdecl modf (double, double*);
@@ -494,19 +486,8 @@ extern float __cdecl cbrtf (float);
extern long double __cdecl cbrtl (long double);
/* 7.12.7.2 The fabs functions: Double in C89 */
-extern __inline__ float __cdecl fabsf (float x)
-{
- float res;
- __asm__ ("fabs;" : "=t" (res) : "0" (x));
- return res;
-}
-
-extern __inline__ long double __cdecl fabsl (long double x)
-{
- long double res;
- __asm__ ("fabs;" : "=t" (res) : "0" (x));
- return res;
-}
+extern float __cdecl fabsf (float x);
+extern long double __cdecl fabsl (long double x);
/* 7.12.7.3 */
extern double __cdecl hypot (double, double); /* in libmoldname.a */