aboutsummaryrefslogtreecommitdiff
path: root/arch/x86_64/lib/memset.S
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86_64/lib/memset.S')
-rw-r--r--arch/x86_64/lib/memset.S31
1 files changed, 0 insertions, 31 deletions
diff --git a/arch/x86_64/lib/memset.S b/arch/x86_64/lib/memset.S
deleted file mode 100644
index 2aa48f24ed1..00000000000
--- a/arch/x86_64/lib/memset.S
+++ /dev/null
@@ -1,31 +0,0 @@
-/* Copyright 2002 Andi Kleen, SuSE Labs */
-/*
- * ISO C memset - set a memory block to a byte value.
- *
- * rdi destination
- * rsi value (char)
- * rdx count (bytes)
- *
- * rax original destination
- */
- .globl __memset
- .globl memset
- .p2align 4
-memset:
-__memset:
- movq %rdi,%r9
- movl %edx,%r8d
- andl $7,%r8d
- movl %edx,%ecx
- shrl $3,%ecx
- /* expand byte value */
- movzbl %sil,%esi
- movabs $0x0101010101010101,%rax
- mulq %rsi /* with rax, clobbers rdx */
- rep
- stosq
- movl %r8d,%ecx
- rep
- stosb
- movq %r9,%rax
- ret