OSDN Git Service

Fix our <complex.h> support.
authorElliott Hughes <enh@google.com>
Thu, 6 Nov 2014 19:16:55 +0000 (11:16 -0800)
committerElliott Hughes <enh@google.com>
Thu, 6 Nov 2014 19:16:55 +0000 (11:16 -0800)
commitb8ee16f1dc1253e3f1c99b4a6b9df249515cd919
tree4152e094e7565f35f4c232cf1bb7ebe8d184fd56
parenta80f11ba99a078515aa7e06dc99db62a475a7b53
Fix our <complex.h> support.

We build libm with -fvisibility=hidden, so we weren't exporting any
of the <complex.h> functions.

We also weren't building many of the functions anyway.

We were also missing the complex inverse trigonometric functions.

And because we didn't even have perfunctory "call each function once"
tests, we didn't notice that we weren't exporting any symbols, so this
patch adds at least that level of testing.

Change-Id: Ibcf2843f507126c51d134cc5fc8d67747e033a0d
libm/Android.mk
libm/include/complex.h
libm/upstream-freebsd/lib/msun/src/catrig.c [new file with mode: 0644]
libm/upstream-freebsd/lib/msun/src/catrigf.c [new file with mode: 0644]
tests/Android.mk
tests/complex_test.cpp [new file with mode: 0644]