about summary refs log tree commit diff
path: root/sysdeps/unix/sysv/linux
diff options
context:
space:
mode:
authordengjianbo <dengjianbo@loongson.cn>2023-08-08 14:15:44 +0800
committercaiyinyu <caiyinyu@loongson.cn>2023-08-14 09:47:09 +0800
commit135407f43175899db98e9881daffed856a38042c (patch)
tree8ed190bfc2f4ed608731bd4ea4cbfec2b9df70b6 /sysdeps/unix/sysv/linux
parentcb7954c4c2f46e5da5374c75576612c9b02b2592 (diff)
downloadglibc-135407f43175899db98e9881daffed856a38042c.tar.gz
glibc-135407f43175899db98e9881daffed856a38042c.tar.xz
glibc-135407f43175899db98e9881daffed856a38042c.zip
Loongarch: Add ifunc support and add different versions of strlen
strlen-lasx is implemeted by LASX simd instructions(256bit)
strlen-lsx is implemeted by LSX simd instructions(128bit)
strlen-align is implemented by LA basic instructions and never use unaligned memory acess
Diffstat (limited to 'sysdeps/unix/sysv/linux')
-rw-r--r--sysdeps/unix/sysv/linux/loongarch/cpu-features.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sysdeps/unix/sysv/linux/loongarch/cpu-features.h b/sysdeps/unix/sysv/linux/loongarch/cpu-features.h
index e371e13b15..d1a280a5ee 100644
--- a/sysdeps/unix/sysv/linux/loongarch/cpu-features.h
+++ b/sysdeps/unix/sysv/linux/loongarch/cpu-features.h
@@ -25,5 +25,7 @@
 #define SUPPORT_LSX (GLRO (dl_hwcap) & HWCAP_LOONGARCH_LSX)
 #define SUPPORT_LASX (GLRO (dl_hwcap) & HWCAP_LOONGARCH_LASX)
 
+#define INIT_ARCH()
+
 #endif /* _CPU_FEATURES_LOONGARCH64_H  */