diff --git a/graphics/bgfx/files/patch-bimg_3rdparty_astc-encoder_source_astcenc__vecmathlib__sse__4.h b/graphics/bgfx/files/patch-bimg_3rdparty_astc-encoder_source_astcenc__vecmathlib__sse__4.h new file mode 100644 index 000000000000..1f80efad67d4 --- /dev/null +++ b/graphics/bgfx/files/patch-bimg_3rdparty_astc-encoder_source_astcenc__vecmathlib__sse__4.h @@ -0,0 +1,10 @@ +--- bimg/3rdparty/astc-encoder/source/astcenc_vecmathlib_sse_4.h.orig 2024-03-28 05:00:55 UTC ++++ bimg/3rdparty/astc-encoder/source/astcenc_vecmathlib_sse_4.h +@@ -1309,5 +1309,7 @@ ASTCENC_SIMD_INLINE int popcount(uint64_t v) + { + #if defined(__MINGW32__) + return static_cast(__builtin_popcountll(v)); ++#elif defined(__FreeBSD__) && !defined(__x86_64__) ++ return static_cast(_mm_popcnt_u32(static_cast(v))); + #else + return static_cast(_mm_popcnt_u64(v));