From 6813d08ff55ae587abd7e2297e051d491c218de0 Mon Sep 17 00:00:00 2001 From: Matt Macy Date: Sun, 15 Jul 2018 00:23:10 +0000 Subject: msun: add ld80/ld128 powl, cpow, cpowf, cpowl from openbsd This corresponds to the latest status (hasn't changed in 9+ years) from openbsd of ld80/ld128 powl, and source cpowf, cpow, cpowl (the complex power functions for float complex, double complex, and long double complex) which are required for C99 compliance and were missing from FreeBSD. Also required for some numerical codes using complex numbered Hamiltonians. Thanks to jhb for tracking down the issue with making weak_reference compile on powerpc. When asked to review, bde said "I don't like it" - but provided no actionable feedback or superior implementations. Discussed with: jhb Submitted by: jmd Differential Revision: https://reviews.freebsd.org/D15919 --- include/complex.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include') diff --git a/include/complex.h b/include/complex.h index 0f7228fad8697..892bc55e51458 100644 --- a/include/complex.h +++ b/include/complex.h @@ -109,6 +109,10 @@ double complex conj(double complex) __pure2; float complex conjf(float complex) __pure2; long double complex conjl(long double complex) __pure2; +float complex cpowf(float complex, float complex); +double complex cpow(double complex, double complex); +long double complex + cpowl(long double complex, long double complex); float complex cprojf(float complex) __pure2; double complex cproj(double complex) __pure2; long double complex -- cgit v1.3