Skip to content

Commit b8e4a70

Browse files
committedNov 29, 2021
Get rid of the second exit block, as suggested by Ilya Albrecht.
1 parent a1b53be commit b8e4a70

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed
 

‎src/memset/impl.S

+3-4
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@ libc_memset:
1818
#if defined(__APPLE__)
1919
.text
2020
.global _asm_memset
21-
.p2align 16, 0x90
21+
.p2align 5, 0x90
2222
_asm_memset:
2323
#else
2424
.text
2525
.global asm_memset
26-
.p2align 16, 0x90
26+
.p2align 5, 0x90
2727
asm_memset:
2828
#endif
2929

@@ -69,8 +69,7 @@ LABEL(below_4):
6969
mov %sil, 0x1(%rdi)
7070
mov %sil, 0x2(%rdi)
7171
mov %rdi,%rax
72-
vzeroupper
73-
retq
72+
.align 4
7473
LABEL(exit):
7574
vzeroupper
7675
retq

0 commit comments

Comments
 (0)
Please sign in to comment.