Files
termux-packages/packages/suitesparse/0001-android-complex-math.patch
termux-pacman-bot 3fed49f5f3 new package: suitesparse
Co-Authored-By: MURAMATSU Atshshi <amura@tomato.sakura.ne.jp>
2023-12-13 18:31:26 +00:00

31 lines
1.1 KiB
Diff

--- a/GraphBLAS/Config/GraphBLAS.h.in
+++ b/GraphBLAS/Config/GraphBLAS.h.in
@@ -169,6 +169,12 @@
#define GxB_CMPLXF(r,i) \
((GxB_FC32_t)((float)(r)) + (GxB_FC32_t)((float)(i) * _Complex_I))
#endif
+ #if defined(__ANDROID__) && __ANDROID_API__ < 26
+ double complex clog(double complex);
+ float complex clogf(float complex);
+ double complex cpow(double complex, double complex);
+ float complex cpowf(float complex, float complex);
+ #endif
#endif
#endif
--- a/GraphBLAS/Source/Shared/GxB_complex.h
+++ b/GraphBLAS/Source/Shared/GxB_complex.h
@@ -48,6 +48,12 @@
#define GxB_CMPLXF(r,i) \
((GxB_FC32_t)((float)(r)) + (GxB_FC32_t)((float)(i) * _Complex_I))
#endif
+ #if defined(__ANDROID__) && __ANDROID_API__ < 26
+ double complex clog(double complex);
+ float complex clogf(float complex);
+ double complex cpow(double complex, double complex);
+ float complex cpowf(float complex, float complex);
+ #endif
#endif
#endif