0
0
mirror of https://github.com/termux/termux-packages.git synced 2024-12-04 18:45:52 +00:00
termux-packages/packages/flang/0005-use-libandroid-complex-math.patch
Chongyun Lee 0442d0b1f3 bump(flang): 18.1.8 to 19.1.1
Co-Authored-By: Lucy Phipps <landfillbaby69@gmail.com>
2024-10-03 03:46:13 +05:30

27 lines
1.1 KiB
Diff

--- a/flang/runtime/Float128Math/complex-math.h
+++ b/flang/runtime/Float128Math/complex-math.h
@@ -34,6 +34,23 @@
#elif LDBL_MANT_DIG == 113
/* Use 'long double' versions of libm functions. */
#include <complex.h>
+#if defined(__ANDROID__) && __ANDROID_API__ < 26
+long double complex cacosl (long double complex);
+long double complex cacoshl(long double complex);
+long double complex casinl (long double complex);
+long double complex casinhl(long double complex);
+long double complex catanl (long double complex);
+long double complex catanhl(long double complex);
+long double complex ccosl (long double complex);
+long double complex ccoshl (long double complex);
+long double complex cexpl (long double complex);
+long double complex clogl (long double complex);
+long double complex cpowl (long double complex, long double complex);
+long double complex csinl (long double complex);
+long double complex csinhl (long double complex);
+long double complex ctanl (long double complex);
+long double complex ctanhl (long double complex);
+#endif
#define CAbs(x) cabsl(x)
#define CAcos(x) cacosl(x)