diff --git a/src_c/simd_fill.h b/src_c/simd_fill.h index c6799df214..36d98afb09 100644 --- a/src_c/simd_fill.h +++ b/src_c/simd_fill.h @@ -1,18 +1,10 @@ #define NO_PYGAME_C_API #include "_surface.h" -#if !defined(PG_ENABLE_ARM_NEON) && defined(__aarch64__) -// arm64 has neon optimisations enabled by default, even when fpu=neon is not -// passed -#define PG_ENABLE_ARM_NEON 1 -#endif - int _pg_has_avx2(); // SSE2 functions -#if defined(__SSE2__) || defined(PG_ENABLE_ARM_NEON) -#endif /* (defined(__SSE2__) || defined(PG_ENABLE_ARM_NEON)) */ // AVX2 functions int diff --git a/src_c/simd_surface_fill_sse2.c b/src_c/simd_surface_fill_sse2.c deleted file mode 100644 index d54452bfe6..0000000000 --- a/src_c/simd_surface_fill_sse2.c +++ /dev/null @@ -1,36 +0,0 @@ -#include "simd_fill.h" - -#if PG_ENABLE_ARM_NEON -// sse2neon.h is from here: https://github.com/DLTcollab/sse2neon -#include "include/sse2neon.h" -#endif /* PG_ENABLE_ARM_NEON */ - -/* This returns 1 when sse2 is available at runtime but support for it isn't - * compiled in, 0 in all other cases */ -int -pg_sse2_at_runtime_but_uncompiled() -{ - if (SDL_HasSSE2()) { -#ifdef __SSE2__ - return 0; -#else - return 1; -#endif /* __SSE2__ */ - } - return 0; -} - -/* This returns 1 when neon is available at runtime but support for it isn't - * compiled in, 0 in all other cases */ -int -pg_neon_at_runtime_but_uncompiled() -{ - if (SDL_HasNEON()) { -#if PG_ENABLE_ARM_NEON - return 0; -#else - return 1; -#endif /* PG_ENABLE_ARM_NEON */ - } - return 0; -} \ No newline at end of file