summaryrefslogtreecommitdiffstats
path: root/sys/lib/libkern/arch/mips/bzero.S
diff options
context:
space:
mode:
authorpefo <pefo@openbsd.org>2004-08-11 10:24:26 +0000
committerpefo <pefo@openbsd.org>2004-08-11 10:24:26 +0000
commitdc09a8a0f531a71288987427f8cb1169db68679b (patch)
treeeb4b252cce920ea7b0d0f3b7ef70fd59a72c543e /sys/lib/libkern/arch/mips/bzero.S
parentspacing (diff)
downloadwireguard-openbsd-dc09a8a0f531a71288987427f8cb1169db68679b.tar.xz
wireguard-openbsd-dc09a8a0f531a71288987427f8cb1169db68679b.zip
move to mips64
Diffstat (limited to 'sys/lib/libkern/arch/mips/bzero.S')
-rw-r--r--sys/lib/libkern/arch/mips/bzero.S39
1 files changed, 0 insertions, 39 deletions
diff --git a/sys/lib/libkern/arch/mips/bzero.S b/sys/lib/libkern/arch/mips/bzero.S
deleted file mode 100644
index adc329b57a6..00000000000
--- a/sys/lib/libkern/arch/mips/bzero.S
+++ /dev/null
@@ -1,39 +0,0 @@
-/* $OpenBSD: bzero.S,v 1.6 1998/03/01 16:10:26 niklas Exp $ */
-
-#include "DEFS.h"
-
-
-/*
- * bzero(s1, n)
- */
-LEAF(bzero)
-ALEAF(blkclr)
- .set noreorder
- blt a1, 12, smallclr # small amount to clear?
- subu a3, zero, a0 # compute # bytes to word align address
- and a3, a3, 3
- beq a3, zero, 1f # skip if word aligned
- subu a1, a1, a3 # subtract from remaining count
- SWHI zero, 0(a0) # clear 1, 2, or 3 bytes to align
- addu a0, a0, a3
-1:
- and v0, a1, 3 # compute number of words left
- subu a3, a1, v0
- move a1, v0
- addu a3, a3, a0 # compute ending address
-2:
- addu a0, a0, 4 # clear words
- bne a0, a3, 2b # unrolling loop does not help
- sw zero, -4(a0) # since we are limited by memory speed
-smallclr:
- ble a1, zero, 2f
- addu a3, a1, a0 # compute ending address
-1:
- addu a0, a0, 1 # clear bytes
- bne a0, a3, 1b
- sb zero, -1(a0)
-2:
- j ra
- nop
-END(bzero)
-