summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Schultz <das@FreeBSD.org>2008-03-30 20:03:46 +0000
committerDavid Schultz <das@FreeBSD.org>2008-03-30 20:03:46 +0000
commit84c1c0a1ca4fc050d24e864cf83a5c38ef0ef17b (patch)
tree96b26a101cb62f3f712059fd87bf6c09ac162162
parent01a13522adfe61bfaf9a6f0557b0accd638e9af1 (diff)
downloadsrc-test2-84c1c0a1ca4fc050d24e864cf83a5c38ef0ef17b.tar.gz
src-test2-84c1c0a1ca4fc050d24e864cf83a5c38ef0ef17b.zip
Hook hypotl() and cabsl() up to the build.
Notes
Notes: svn path=/head/; revision=177760
-rw-r--r--include/complex.h3
-rw-r--r--lib/msun/Makefile9
-rw-r--r--lib/msun/Symbol.map2
-rw-r--r--lib/msun/src/math.h2
4 files changed, 9 insertions, 7 deletions
diff --git a/include/complex.h b/include/complex.h
index 24251f20f7ab..4613d16c93d8 100644
--- a/include/complex.h
+++ b/include/complex.h
@@ -1,5 +1,5 @@
/*-
- * Copyright (c) 2001-2007 The FreeBSD Project.
+ * Copyright (c) 2001-2008 The FreeBSD Project.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -45,6 +45,7 @@ __BEGIN_DECLS
double cabs(double complex);
float cabsf(float complex);
+long double cabsl(long double complex);
double carg(double complex);
float cargf(float complex);
double cimag(double complex);
diff --git a/lib/msun/Makefile b/lib/msun/Makefile
index 2f86fb360941..c208261f686a 100644
--- a/lib/msun/Makefile
+++ b/lib/msun/Makefile
@@ -79,10 +79,10 @@ SYMBOL_MAPS= ${SYM_MAPS}
COMMON_SRCS+= s_copysignl.c s_fabsl.c s_llrintl.c s_lrintl.c s_modfl.c
.if ${LDBL_PREC} != 53
# If long double != double use these; otherwise, we alias the double versions.
-COMMON_SRCS+= e_sqrtl.c k_cosl.c k_sinl.c k_tanl.c s_ceill.c s_cosl.c \
- s_exp2l.c s_floorl.c s_fmal.c \
+COMMON_SRCS+= e_hypotl.c e_sqrtl.c k_cosl.c k_sinl.c k_tanl.c \
+ s_ceill.c s_cosl.c s_exp2l.c s_floorl.c s_fmal.c \
s_frexpl.c s_logbl.c s_nanl.c s_nextafterl.c s_nexttoward.c \
- s_rintl.c s_scalbnl.c s_sinl.c s_tanl.c s_truncl.c
+ s_rintl.c s_scalbnl.c s_sinl.c s_tanl.c s_truncl.c w_cabsl.c
.endif
# C99 complex functions
@@ -144,7 +144,8 @@ MLINKS+=fma.3 fmaf.3 fma.3 fmal.3
MLINKS+=fmax.3 fmaxf.3 fmax.3 fmaxl.3 \
fmax.3 fmin.3 fmax.3 fminf.3 fmax.3 fminl.3
MLINKS+=fmod.3 fmodf.3
-MLINKS+=hypot.3 cabs.3 hypot.3 cabsf.3 hypot.3 hypotf.3
+MLINKS+=hypot.3 cabs.3 hypot.3 cabsf.3 hypot.3 cabsl.3 \
+ hypot.3 hypotf.3 hypot.3 hypotl.3
MLINKS+=ieee_test.3 scalb.3 ieee_test.3 scalbf.3
MLINKS+=ieee_test.3 significand.3 ieee_test.3 significandf.3
MLINKS+=ilogb.3 ilogbf.3 ilogb.3 ilogbl.3 \
diff --git a/lib/msun/Symbol.map b/lib/msun/Symbol.map
index 309b45ae4181..e0fe88a87f27 100644
--- a/lib/msun/Symbol.map
+++ b/lib/msun/Symbol.map
@@ -203,4 +203,6 @@ FBSD_1.1 {
tanl;
tgammaf;
sqrtl;
+ hypotl;
+ cabsl;
};
diff --git a/lib/msun/src/math.h b/lib/msun/src/math.h
index d7e52edfd62a..78fb9958c206 100644
--- a/lib/msun/src/math.h
+++ b/lib/msun/src/math.h
@@ -427,9 +427,7 @@ long double fminl(long double, long double) __pure2;
long double fmodl(long double, long double);
#endif
long double frexpl(long double value, int *); /* fundamentally !__pure2 */
-#if 0
long double hypotl(long double, long double);
-#endif
int ilogbl(long double) __pure2;
long double ldexpl(long double, int);
#if 0