Fixed compilation error with GCC 14 on i386 when SSE2 is not enabled

This commit is contained in:
Andrew Kane
2024-07-27 06:20:27 -07:00
parent bb424e96e7
commit 6c692ef23f
2 changed files with 5 additions and 1 deletions

View File

@@ -1,3 +1,7 @@
## 0.7.4 (unreleased)
- Fixed compilation error with GCC 14 on i386 when SSE2 is not enabled
## 0.7.3 (2024-07-22)
- Fixed `failed to add index item` error with `sparsevec`

View File

@@ -38,7 +38,7 @@
/* F16C has better performance than _Float16 (on x86-64) */
#if defined(__F16C__)
#define F16C_SUPPORT
#elif defined(__FLT16_MAX__) && !defined(HALFVEC_DISPATCH) && !defined(__FreeBSD__)
#elif defined(__FLT16_MAX__) && !defined(HALFVEC_DISPATCH) && !defined(__FreeBSD__) && (!defined(__i386__) || defined(__SSE2__))
#define FLT16_SUPPORT
#endif