diff options
author | Mateusz Guzik <mjg@FreeBSD.org> | 2021-01-31 15:50:34 +0000 |
---|---|---|
committer | Mateusz Guzik <mjg@FreeBSD.org> | 2021-01-31 16:07:19 +0000 |
commit | 0db6aef407f30c138982b8cde43189aad098b337 (patch) | |
tree | 103dd12a86d724863ba13bffa42e1e6e21c55f37 /lib | |
parent | 46f168bc665a1aee79d91bd102aef7d4754e7917 (diff) | |
download | src-0db6aef407f30c138982b8cde43189aad098b337.tar.gz src-0db6aef407f30c138982b8cde43189aad098b337.zip |
amd64: add a note about simd to libc memset, memmove and memcmp
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libc/amd64/string/memcmp.S | 6 | ||||
-rw-r--r-- | lib/libc/amd64/string/memmove.S | 6 | ||||
-rw-r--r-- | lib/libc/amd64/string/memset.S | 6 |
3 files changed, 18 insertions, 0 deletions
diff --git a/lib/libc/amd64/string/memcmp.S b/lib/libc/amd64/string/memcmp.S index 231ab2175804..67c7df280679 100644 --- a/lib/libc/amd64/string/memcmp.S +++ b/lib/libc/amd64/string/memcmp.S @@ -31,6 +31,12 @@ #include <machine/asm.h> __FBSDID("$FreeBSD$"); +/* + * Note: this routine was written with kernel use in mind (read: no simd), + * it is only present in userspace as a temporary measure until something + * better gets imported. + */ + #define ALIGN_TEXT .p2align 4,0x90 /* 16-byte alignment, nop filled */ ENTRY(memcmp) diff --git a/lib/libc/amd64/string/memmove.S b/lib/libc/amd64/string/memmove.S index 4797140a1c16..3d75ff45c798 100644 --- a/lib/libc/amd64/string/memmove.S +++ b/lib/libc/amd64/string/memmove.S @@ -29,6 +29,12 @@ #include <machine/asm.h> __FBSDID("$FreeBSD$"); +/* + * Note: this routine was written with kernel use in mind (read: no simd), + * it is only present in userspace as a temporary measure until something + * better gets imported. + */ + #define ALIGN_TEXT .p2align 4,0x90 /* 16-byte alignment, nop filled */ /* diff --git a/lib/libc/amd64/string/memset.S b/lib/libc/amd64/string/memset.S index 0639573a4a3e..050711302354 100644 --- a/lib/libc/amd64/string/memset.S +++ b/lib/libc/amd64/string/memset.S @@ -31,6 +31,12 @@ #include <machine/asm.h> __FBSDID("$FreeBSD$"); +/* + * Note: this routine was written with kernel use in mind (read: no simd), + * it is only present in userspace as a temporary measure until something + * better gets imported. + */ + #define ALIGN_TEXT .p2align 4,0x90 /* 16-byte alignment, nop filled */ .macro MEMSET erms |