Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src Commit SoC long double support from Stathis Kamperis



details:   https://anonhg.NetBSD.org/src/rev/d644ac872385
branches:  trunk
changeset: 757705:d644ac872385
user:      christos <christos%NetBSD.org@localhost>
date:      Wed Sep 15 16:11:28 2010 +0000

description:
Commit SoC long double support from Stathis Kamperis

diffstat:

 distrib/sets/lists/comp/mi    |   26 +++++++-
 include/complex.h             |  134 +++++++++++++++++++++++++++++------------
 include/math.h                |    6 +-
 lib/libm/Makefile             |   28 +++++---
 lib/libm/complex/Makefile.inc |   14 ++-
 lib/libm/complex/cimag.3      |    4 +-
 lib/libm/complex/cimag.c      |    6 +-
 lib/libm/complex/cimagf.c     |    6 +-
 lib/libm/complex/cimagl.c     |   44 +++++++++++++
 lib/libm/complex/conj.3       |    4 +-
 lib/libm/complex/conj.c       |    8 +-
 lib/libm/complex/conjf.c      |    8 +-
 lib/libm/complex/conjl.c      |   49 +++++++++++++++
 lib/libm/complex/cproj.3      |   59 ++++++++++++++++++
 lib/libm/complex/cproj.c      |   60 ++++++++++++++++++
 lib/libm/complex/cprojf.c     |   61 +++++++++++++++++++
 lib/libm/complex/cprojl.c     |   61 +++++++++++++++++++
 lib/libm/complex/creal.3      |    4 +-
 lib/libm/complex/creal.c      |    6 +-
 lib/libm/complex/crealf.c     |    6 +-
 lib/libm/complex/creall.c     |   44 +++++++++++++
 lib/libm/man/ieee.3           |   23 ++++++-
 lib/libm/src/math_private.h   |   33 ++++++++++-
 sys/arch/x86/include/ieee.h   |   14 +++-
 24 files changed, 631 insertions(+), 77 deletions(-)

diffs (truncated from 1203 to 300 lines):

diff -r 694da7ddf6e0 -r d644ac872385 distrib/sets/lists/comp/mi
--- a/distrib/sets/lists/comp/mi        Wed Sep 15 07:28:46 2010 +0000
+++ b/distrib/sets/lists/comp/mi        Wed Sep 15 16:11:28 2010 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: mi,v 1.1507 2010/09/06 14:55:37 christos Exp $
+#      $NetBSD: mi,v 1.1508 2010/09/15 16:11:28 christos Exp $
 #
 # Note: don't delete entries from here - mark them as "obsolete" instead.
 #
@@ -5365,6 +5365,7 @@
 ./usr/share/man/cat3/chgat.0                   comp-c-catman           .cat
 ./usr/share/man/cat3/cimag.0                   comp-c-catman           complex,.cat
 ./usr/share/man/cat3/cimagf.0                  comp-c-catman           complex,.cat
+./usr/share/man/cat3/cimagl.0                  comp-c-catman           complex,.cat
 ./usr/share/man/cat3/circleq_empty.0           comp-obsolete           obsolete
 ./usr/share/man/cat3/circleq_entry.0           comp-obsolete           obsolete
 ./usr/share/man/cat3/circleq_first.0           comp-obsolete           obsolete
@@ -5423,6 +5424,7 @@
 ./usr/share/man/cat3/conjf.0                   comp-c-catman           complex,.cat
 ./usr/share/man/cat3/copysign.0                        comp-c-catman           .cat
 ./usr/share/man/cat3/copysignf.0               comp-c-catman           .cat
+./usr/share/man/cat3/copysignl.0               comp-c-catman           .cat
 ./usr/share/man/cat3/copywin.0                 comp-c-catman           .cat
 ./usr/share/man/cat3/cos.0                     comp-c-catman           .cat
 ./usr/share/man/cat3/cosf.0                    comp-c-catman           .cat
@@ -5430,6 +5432,7 @@
 ./usr/share/man/cat3/coshf.0                   comp-c-catman           .cat
 ./usr/share/man/cat3/cpow.0                    comp-c-catman           complex,.cat
 ./usr/share/man/cat3/cpowf.0                   comp-c-catman           complex,.cat
+./usr/share/man/cat3/cproj.0                   comp-c-catman           complex,.cat
 ./usr/share/man/cat3/cpuset.0                  comp-c-catman           .cat
 ./usr/share/man/cat3/cpuset_clr.0              comp-c-catman           .cat
 ./usr/share/man/cat3/cpuset_create.0           comp-c-catman           .cat
@@ -5440,6 +5443,7 @@
 ./usr/share/man/cat3/cpuset_zero.0             comp-c-catman           .cat
 ./usr/share/man/cat3/creal.0                   comp-c-catman           complex,.cat
 ./usr/share/man/cat3/crealf.0                  comp-c-catman           complex,.cat
+./usr/share/man/cat3/creall.0                  comp-c-catman           complex,.cat
 ./usr/share/man/cat3/creat.0                   comp-c-catman           .cat
 ./usr/share/man/cat3/crypt.0                   comp-c-catman           .cat
 ./usr/share/man/cat3/crypto.0                  comp-c-catman           crypto,.cat
@@ -5783,6 +5787,8 @@
 ./usr/share/man/cat3/execvp.0                  comp-c-catman           .cat
 ./usr/share/man/cat3/exit.0                    comp-c-catman           .cat
 ./usr/share/man/cat3/exp.0                     comp-c-catman           .cat
+./usr/share/man/cat3/exp2.0                    comp-c-catman           .cat
+./usr/share/man/cat3/exp2f.0                   comp-c-catman           .cat
 ./usr/share/man/cat3/expf.0                    comp-c-catman           .cat
 ./usr/share/man/cat3/expm1.0                   comp-c-catman           .cat
 ./usr/share/man/cat3/expm1f.0                  comp-c-catman           .cat
@@ -7292,6 +7298,8 @@
 ./usr/share/man/cat3/newwin.0                  comp-c-catman           .cat
 ./usr/share/man/cat3/nextafter.0               comp-c-catman           .cat
 ./usr/share/man/cat3/nextafterf.0              comp-c-catman           .cat
+./usr/share/man/cat3/nextafterl.0              comp-c-catman           .cat
+./usr/share/man/cat3/nexttoward.0              comp-c-catman           .cat
 ./usr/share/man/cat3/nftw.0                    comp-c-catman           .cat
 ./usr/share/man/cat3/ngettext.0                        comp-c-catman           .cat
 ./usr/share/man/cat3/nice.0                    comp-c-catman           .cat
@@ -11320,6 +11328,7 @@
 ./usr/share/man/html3/chgat.html               comp-c-htmlman          html
 ./usr/share/man/html3/cimag.html               comp-c-htmlman          complex,html
 ./usr/share/man/html3/cimagf.html              comp-c-htmlman          complex,html
+./usr/share/man/html3/cimagl.html              comp-c-htmlman          complex,html
 ./usr/share/man/html3/clear.html               comp-c-htmlman          html
 ./usr/share/man/html3/clearerr.html            comp-c-htmlman          html
 ./usr/share/man/html3/clearok.html             comp-c-htmlman          html
@@ -11364,6 +11373,7 @@
 ./usr/share/man/html3/conjf.html               comp-c-htmlman          complex,html
 ./usr/share/man/html3/copysign.html            comp-c-htmlman          html
 ./usr/share/man/html3/copysignf.html           comp-c-htmlman          html
+./usr/share/man/html3/copysignl.html           comp-c-htmlman          html
 ./usr/share/man/html3/copywin.html             comp-c-htmlman          html
 ./usr/share/man/html3/cos.html                 comp-c-htmlman          html
 ./usr/share/man/html3/cosf.html                        comp-c-htmlman          html
@@ -11371,6 +11381,7 @@
 ./usr/share/man/html3/coshf.html               comp-c-htmlman          html
 ./usr/share/man/html3/cpow.html                        comp-c-htmlman          complex,html
 ./usr/share/man/html3/cpowf.html               comp-c-htmlman          complex,html
+./usr/share/man/html3/cproj.html               comp-c-htmlman          complex,html
 ./usr/share/man/html3/cpuset.html              comp-c-htmlman          html
 ./usr/share/man/html3/cpuset_clr.html          comp-c-htmlman          html
 ./usr/share/man/html3/cpuset_create.html       comp-c-htmlman          html
@@ -11381,6 +11392,7 @@
 ./usr/share/man/html3/cpuset_zero.html         comp-c-htmlman          html
 ./usr/share/man/html3/creal.html               comp-c-htmlman          complex,html
 ./usr/share/man/html3/crealf.html              comp-c-htmlman          complex,html
+./usr/share/man/html3/creall.html              comp-c-htmlman          complex,html
 ./usr/share/man/html3/creat.html               comp-c-htmlman          html
 ./usr/share/man/html3/crypt.html               comp-c-htmlman          html
 ./usr/share/man/html3/crypto.html              comp-c-htmlman          crypto,html
@@ -11723,6 +11735,8 @@
 ./usr/share/man/html3/exit.html                        comp-c-htmlman          html
 ./usr/share/man/html3/exp.html                 comp-c-htmlman          html
 ./usr/share/man/html3/expf.html                        comp-c-htmlman          html
+./usr/share/man/html3/exp2.html                        comp-c-htmlman          html
+./usr/share/man/html3/exp2f.html               comp-c-htmlman          html
 ./usr/share/man/html3/expm1.html               comp-c-htmlman          html
 ./usr/share/man/html3/expm1f.html              comp-c-htmlman          html
 ./usr/share/man/html3/extattr.html             comp-c-htmlman          html
@@ -13192,6 +13206,8 @@
 ./usr/share/man/html3/newwin.html              comp-c-htmlman          html
 ./usr/share/man/html3/nextafter.html           comp-c-htmlman          html
 ./usr/share/man/html3/nextafterf.html          comp-c-htmlman          html
+./usr/share/man/html3/nextafterl.html          comp-c-htmlman          html
+./usr/share/man/html3/nexttoward.html          comp-c-htmlman          html
 ./usr/share/man/html3/nftw.html                        comp-c-htmlman          html
 ./usr/share/man/html3/ngettext.html            comp-c-htmlman          html
 ./usr/share/man/html3/nice.html                        comp-c-htmlman          html
@@ -17153,6 +17169,7 @@
 ./usr/share/man/man3/chgat.3                   comp-c-man              .man
 ./usr/share/man/man3/cimag.3                   comp-c-man              complex,.man
 ./usr/share/man/man3/cimagf.3                  comp-c-man              complex,.man
+./usr/share/man/man3/cimagl.3                  comp-c-man              complex,.man
 ./usr/share/man/man3/circleq_empty.3           comp-obsolete           obsolete
 ./usr/share/man/man3/circleq_entry.3           comp-obsolete           obsolete
 ./usr/share/man/man3/circleq_first.3           comp-obsolete           obsolete
@@ -17211,6 +17228,7 @@
 ./usr/share/man/man3/conjf.3                   comp-c-man              complex,.man
 ./usr/share/man/man3/copysign.3                        comp-c-man              .man
 ./usr/share/man/man3/copysignf.3               comp-c-man              .man
+./usr/share/man/man3/copysignl.3               comp-c-man              .man
 ./usr/share/man/man3/copywin.3                 comp-c-man              .man
 ./usr/share/man/man3/cos.3                     comp-c-man              .man
 ./usr/share/man/man3/cosf.3                    comp-c-man              .man
@@ -17218,6 +17236,7 @@
 ./usr/share/man/man3/coshf.3                   comp-c-man              .man
 ./usr/share/man/man3/cpow.3                    comp-c-man              complex,.man
 ./usr/share/man/man3/cpowf.3                   comp-c-man              complex,.man
+./usr/share/man/man3/cproj.3                   comp-c-man              complex,.man
 ./usr/share/man/man3/cpuset.3                  comp-c-man              .man
 ./usr/share/man/man3/cpuset_clr.3              comp-c-man              .man
 ./usr/share/man/man3/cpuset_create.3           comp-c-man              .man
@@ -17228,6 +17247,7 @@
 ./usr/share/man/man3/cpuset_zero.3             comp-c-man              .man
 ./usr/share/man/man3/creal.3                   comp-c-man              complex,.man
 ./usr/share/man/man3/crealf.3                  comp-c-man              complex,.man
+./usr/share/man/man3/creall.3                  comp-c-man              complex,.man
 ./usr/share/man/man3/creat.3                   comp-c-man              .man
 ./usr/share/man/man3/crypt.3                   comp-c-man              .man
 ./usr/share/man/man3/crypto.3                  comp-c-man              crypto,.man
@@ -17572,6 +17592,8 @@
 ./usr/share/man/man3/exit.3                    comp-c-man              .man
 ./usr/share/man/man3/exp.3                     comp-c-man              .man
 ./usr/share/man/man3/expf.3                    comp-c-man              .man
+./usr/share/man/man3/exp2.3                    comp-c-man              .man
+./usr/share/man/man3/exp2f.3                   comp-c-man              .man
 ./usr/share/man/man3/expm1.3                   comp-c-man              .man
 ./usr/share/man/man3/expm1f.3                  comp-c-man              .man
 ./usr/share/man/man3/extattr.3                 comp-c-man              .man
@@ -19080,6 +19102,8 @@
 ./usr/share/man/man3/newwin.3                  comp-c-man              .man
 ./usr/share/man/man3/nextafter.3               comp-c-man              .man
 ./usr/share/man/man3/nextafterf.3              comp-c-man              .man
+./usr/share/man/man3/nextafterl.3              comp-c-man              .man
+./usr/share/man/man3/nexttoward.3              comp-c-man              .man
 ./usr/share/man/man3/nftw.3                    comp-c-man              .man
 ./usr/share/man/man3/ngettext.3                        comp-c-man              .man
 ./usr/share/man/man3/nice.3                    comp-c-man              .man
diff -r 694da7ddf6e0 -r d644ac872385 include/complex.h
--- a/include/complex.h Wed Sep 15 07:28:46 2010 +0000
+++ b/include/complex.h Wed Sep 15 16:11:28 2010 +0000
@@ -1,10 +1,13 @@
-/* $NetBSD: complex.h,v 1.2 2009/07/22 15:09:57 drochner Exp $ */
+/* $NetBSD: complex.h,v 1.3 2010/09/15 16:11:30 christos Exp $ */
 
 /*
  * Written by Matthias Drochner.
  * Public domain.
  */
 
+#ifndef        _COMPLEX_H
+#define        _COMPLEX_H
+
 #define complex _Complex
 #define _Complex_I 1.0fi
 #define I _Complex_I
@@ -13,57 +16,106 @@
 
 __BEGIN_DECLS
 
-double creal(double complex);
-double cimag(double complex);
-double complex conj(double complex);
-float crealf(float complex);
-float cimagf(float complex);
-float complex conjf(float complex);
+/* 7.3.5 Trigonometric functions */
+/* 7.3.5.1 The cacos functions */
+double complex cacos(double complex);
+float complex cacosf(float complex);
+
+/* 7.3.5.2 The casin functions */
+double complex casin(double complex);
+float complex casinf(float complex);
+
+/* 7.3.5.1 The catan functions */
+double complex catan(double complex);
+float complex catanf(float complex);
+
+/* 7.3.5.1 The ccos functions */
+double complex ccos(double complex);
+float complex ccosf(float complex);
+
+/* 7.3.5.1 The csin functions */
+double complex csin(double complex);
+float complex csinf(float complex);
+
+/* 7.3.5.1 The ctan functions */
+double complex ctan(double complex);
+float complex ctanf(float complex);
+
+/* 7.3.6 Hyperbolic functions */
+/* 7.3.6.1 The cacosh functions */
+double complex cacosh(double complex);
+float complex cacoshf(float complex);
 
+/* 7.3.6.2 The casinh functions */
+double complex casinh(double complex);
+float complex casinhf(float complex);
+
+/* 7.3.6.3 The catanh functions */
+double complex catanh(double complex);
+float complex catanhf(float complex);
+
+/* 7.3.6.4 The ccosh functions */
+double complex ccosh(double complex);
+float complex ccoshf(float complex);
+
+/* 7.3.6.5 The csinh functions */
+double complex csinh(double complex);
+float complex csinhf(float complex);
+
+/* 7.3.6.6 The ctanh functions */
+double complex ctanh(double complex);
+float complex ctanhf(float complex);
+
+/* 7.3.7 Exponential and logarithmic functions */
+/* 7.3.7.1 The cexp functions */
+double complex cexp(double complex);
+float complex cexpf(float complex);
+
+/* 7.3.7.2 The clog functions */
+double complex clog(double complex);
+float complex clogf(float complex);
+
+/* 7.3.8 Power and absolute-value functions */
+/* 7.3.8.1 The cabs functions */
 #ifndef __LIBM0_SOURCE__
 /* avoid conflict with historical cabs(struct complex) */
 double cabs(double complex) __RENAME(__c99_cabs);
 float cabsf(float complex) __RENAME(__c99_cabsf);
 #endif
+
+/* 7.3.8.2 The cpow functions */
+double complex cpow(double complex, double complex);
+float complex cpowf(float complex, float complex);
+
+/* 7.3.8.3 The csqrt functions */
+double complex csqrt(double complex);
+float complex csqrtf(float complex);
+
+/* 7.3.9 Manipulation functions */
+/* 7.3.9.1 The carg functions */ 
 double carg(double complex);
 float cargf(float complex);
 
-double complex csqrt(double complex);
-double complex cexp(double complex);
-double complex clog(double complex);
-double complex cpow(double complex, double complex);
+/* 7.3.9.2 The cimag functions */
+double cimag(double complex);
+float cimagf(float complex);
+long double cimagl(long double complex);
 
-double complex csin(double complex);
-double complex ccos(double complex);
-double complex ctan(double complex);
-double complex csinh(double complex);
-double complex ccosh(double complex);
-double complex ctanh(double complex);
-
-double complex casin(double complex);
-double complex cacos(double complex);
-double complex catan(double complex);
-double complex casinh(double complex);
-double complex cacosh(double complex);
-double complex catanh(double complex);
+/* 7.3.9.3 The conj functions */
+double complex conj(double complex);
+float complex conjf(float complex);
+long double complex conjl(long double complex);
 
-float complex csqrtf(float complex);
-float complex cexpf(float complex);
-float complex clogf(float complex);
-float complex cpowf(float complex, float complex);
+/* 7.3.9.4 The cproj functions */
+double complex cproj(double complex);



Home | Main Index | Thread Index | Old Index