diff options
author | kan <kan@FreeBSD.org> | 2003-07-11 03:42:04 +0000 |
---|---|---|
committer | kan <kan@FreeBSD.org> | 2003-07-11 03:42:04 +0000 |
commit | c7bbbdd036d3dd7ae253fb13c9994215af06f073 (patch) | |
tree | ce14546aca3a67fa3440aed52f132bafaf68fe70 /contrib/libstdc++/libmath | |
parent | b2a8872fbe1ec1c49094559ac7b78e6ea4ab7180 (diff) | |
download | FreeBSD-src-c7bbbdd036d3dd7ae253fb13c9994215af06f073.zip FreeBSD-src-c7bbbdd036d3dd7ae253fb13c9994215af06f073.tar.gz |
Gcc 3.3.1-pre 2003-07-11 C++ support bits.
Diffstat (limited to 'contrib/libstdc++/libmath')
-rw-r--r-- | contrib/libstdc++/libmath/Makefile.am | 2 | ||||
-rw-r--r-- | contrib/libstdc++/libmath/Makefile.in | 14 | ||||
-rw-r--r-- | contrib/libstdc++/libmath/stubs.c | 8 |
3 files changed, 20 insertions, 4 deletions
diff --git a/contrib/libstdc++/libmath/Makefile.am b/contrib/libstdc++/libmath/Makefile.am index c1bf4be..30d3dce 100644 --- a/contrib/libstdc++/libmath/Makefile.am +++ b/contrib/libstdc++/libmath/Makefile.am @@ -41,4 +41,4 @@ INCLUDES = \ $(TOPLEVEL_INCLUDES) # Only compiling "C" sources in this directory. -LIBTOOL = @LIBTOOL@ --tag CC
\ No newline at end of file +LIBTOOL = @LIBTOOL@ --tag CC diff --git a/contrib/libstdc++/libmath/Makefile.in b/contrib/libstdc++/libmath/Makefile.in index 697bc32..658627d 100644 --- a/contrib/libstdc++/libmath/Makefile.in +++ b/contrib/libstdc++/libmath/Makefile.in @@ -1,4 +1,4 @@ -# Makefile.in generated automatically by automake 1.4-p5 from Makefile.am +# Makefile.in generated automatically by automake 1.4-p6 from Makefile.am # Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation @@ -67,15 +67,24 @@ AR = @AR@ AS = @AS@ ATOMICITY_INC_SRCDIR = @ATOMICITY_INC_SRCDIR@ AWK = @AWK@ +BASIC_FILE_CC = @BASIC_FILE_CC@ BASIC_FILE_H = @BASIC_FILE_H@ CC = @CC@ CCODECVT_C = @CCODECVT_C@ +CCODECVT_CC = @CCODECVT_CC@ CCODECVT_H = @CCODECVT_H@ +CCOLLATE_CC = @CCOLLATE_CC@ +CCTYPE_CC = @CCTYPE_CC@ +CLOCALE_CC = @CLOCALE_CC@ CLOCALE_H = @CLOCALE_H@ +CLOCALE_INTERNAL_H = @CLOCALE_INTERNAL_H@ +CMESSAGES_CC = @CMESSAGES_CC@ CMESSAGES_H = @CMESSAGES_H@ +CMONEY_CC = @CMONEY_CC@ +CNUMERIC_CC = @CNUMERIC_CC@ CPP = @CPP@ -CPU_LIMITS_INC_SRCDIR = @CPU_LIMITS_INC_SRCDIR@ CSTDIO_H = @CSTDIO_H@ +CTIME_CC = @CTIME_CC@ CTIME_H = @CTIME_H@ CXX = @CXX@ CXXCPP = @CXXCPP@ @@ -107,6 +116,7 @@ RANLIB = @RANLIB@ SECTION_FLAGS = @SECTION_FLAGS@ SECTION_LDFLAGS = @SECTION_LDFLAGS@ STRIP = @STRIP@ +SYMVER_MAP = @SYMVER_MAP@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ WARN_FLAGS = @WARN_FLAGS@ diff --git a/contrib/libstdc++/libmath/stubs.c b/contrib/libstdc++/libmath/stubs.c index 586fd6d..1968bff 100644 --- a/contrib/libstdc++/libmath/stubs.c +++ b/contrib/libstdc++/libmath/stubs.c @@ -1,6 +1,6 @@ /* Stub definitions for libmath subpart of libstdc++. */ -/* Copyright (C) 2001, 2002 Free Software Foundation, Inc. +/* Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc. This file is part of the GNU ISO C++ Library. This library is free software; you can redistribute it and/or modify it under the @@ -108,6 +108,8 @@ float hypotf(float x, float y) { float s = fabsf(x) + fabsf(y); + if (s == 0.0F) + return s; x /= s; y /= s; return s * sqrtf(x * x + y * y); } @@ -118,6 +120,8 @@ double hypot(double x, double y) { double s = fabs(x) + fabs(y); + if (s == 0.0) + return s; x /= s; y /= s; return s * sqrt(x * x + y * y); } @@ -128,6 +132,8 @@ long double hypotl(long double x, long double y) { long double s = fabsl(x) + fabsl(y); + if (s == 0.0L) + return s; x /= s; y /= s; return s * sqrtl(x * x + y * y); } |