Skip to content

Commit 3d01035

Browse files
committed
Disable softfloat in NEON builds
1 parent 9e9d79c commit 3d01035

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

Source/astcenc_mathlib.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ uint64_t rand(uint64_t state[2]);
418418
/* ============================================================================
419419
Softfloat library with fp32 and fp16 conversion functionality.
420420
============================================================================ */
421-
#if ASTCENC_F16C == 0
421+
#if (ASTCENC_F16C == 0) && (ASTCENC_NEON == 0)
422422
/* narrowing float->float conversions */
423423
uint16_t float_to_sf16(float val);
424424
float sf16_to_float(uint16_t val);

Source/astcenc_mathlib_softfloat.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
/**
1919
* @brief Soft-float library for IEEE-754.
2020
*/
21-
#if ASTCENC_F16C == 0
21+
#if (ASTCENC_F16C == 0) && (ASTCENC_NEON == 0)
2222

2323
#include "astcenc_mathlib.h"
2424

0 commit comments

Comments
 (0)