0
0
mirror of https://github.com/termux/termux-packages.git synced 2024-11-27 06:18:57 +00:00
termux-packages/x11-packages/raylib/0001-check-__arm__-instead-of-_M_ARM.patch
TomIO 3f5ae61e65
bump(x11/raylib): 5.0 (#21672)
Co-authored-by: Chongyun Lee <45286352+licy183@users.noreply.github.com>
2024-10-13 10:00:52 +02:00

39 lines
1.5 KiB
Diff

--- a/src/external/stb_image_resize2.h
+++ b/src/external/stb_image_resize2.h
@@ -400,7 +400,7 @@
#endif
#endif
-#if defined( _M_ARM64 ) || defined( __aarch64__ ) || defined( __arm64__ ) || defined(_M_ARM) || (__ARM_NEON_FP & 4) != 0 && __ARM_FP16_FORMAT_IEEE != 0
+#if defined( _M_ARM64 ) || defined( __aarch64__ ) || defined( __arm64__ ) || defined( __arm__ ) || defined(_M_ARM) || (__ARM_NEON_FP & 4) != 0 && __ARM_FP16_FORMAT_IEEE != 0
#ifndef STBIR_NEON
#define STBIR_NEON
#endif
@@ -2125,7 +2125,7 @@
#endif
-#if defined(STBIR_NEON) && !defined(_M_ARM)
+#if defined(STBIR_NEON) && !defined(_M_ARM) && !defined(__arm__)
#if defined( _MSC_VER ) && !defined(__clang__)
typedef __int16 stbir__FP16;
@@ -2142,7 +2142,7 @@
#endif
-#if !defined(STBIR_NEON) && !defined(STBIR_FP16C) || defined(STBIR_NEON) && defined(_M_ARM)
+#if (!defined(STBIR_NEON) && !defined(STBIR_FP16C)) || (defined(STBIR_NEON) && defined(_M_ARM)) || (defined(STBIR_NEON) && defined(__arm__))
// Fabian's half float routines, see: https://gist.github.com/rygorous/2156668
@@ -2369,7 +2369,7 @@
stbir__simdi_store( output,final );
}
-#elif defined(STBIR_WASM) || (defined(STBIR_NEON) && defined(_MSC_VER) && defined(_M_ARM)) // WASM or 32-bit ARM on MSVC/clang
+#elif defined(STBIR_WASM) || (defined(STBIR_NEON) && defined(_MSC_VER) && defined(_M_ARM)) || (defined(STBIR_NEON) && defined(__arm__)) // WASM or 32-bit ARM on MSVC/clang
static stbir__inline void stbir__half_to_float_SIMD(float * output, stbir__FP16 const * input)
{