Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F132938256
D17167.id48037.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
590 B
Referenced Files
None
Subscribers
None
D17167.id48037.diff
View Options
Index: lib/libc/amd64/string/bcopy.S
===================================================================
--- lib/libc/amd64/string/bcopy.S
+++ lib/libc/amd64/string/bcopy.S
@@ -66,6 +66,9 @@
movsq
movq %rdx,%rcx
andq $7,%rcx /* any bytes left? */
+ jne 2f
+ ret
+2:
rep
movsb
ret
@@ -73,11 +76,13 @@
addq %rcx,%rdi /* copy backwards. */
addq %rcx,%rsi
std
- andq $7,%rcx /* any fractional bytes? */
decq %rdi
decq %rsi
+ andq $7,%rcx /* any fractional bytes? */
+ je 3f
rep
movsb
+3:
movq %rdx,%rcx /* copy remainder by words */
shrq $3,%rcx
subq $7,%rsi
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Oct 22, 8:16 AM (6 h, 50 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
24050231
Default Alt Text
D17167.id48037.diff (590 B)
Attached To
Mode
D17167: Partially depessimize userspace memmove, memcpy and bcopy
Attached
Detach File
Event Timeline
Log In to Comment