summaryrefslogtreecommitdiff
path: root/libc/string/sh/sh4/memset.S
diff options
context:
space:
mode:
Diffstat (limited to 'libc/string/sh/sh4/memset.S')
-rw-r--r--libc/string/sh/sh4/memset.S2
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/string/sh/sh4/memset.S b/libc/string/sh/sh4/memset.S
index 1a57cb969..83f874612 100644
--- a/libc/string/sh/sh4/memset.S
+++ b/libc/string/sh/sh4/memset.S
@@ -17,7 +17,7 @@
#include <sysdep.h>
-#ifdef __LITTLE_ENDIAN__
+#if defined (__LITTLE_ENDIAN__) && defined (__SH_FPU_ANY__)
#define MEMSET_USES_FPU
/* Use paired single precision load or store mode for 64-bit tranfering.
* FPSCR.SZ=1,FPSCR.SZ=0 is well defined on both SH4-200 and SH4-300.