summaryrefslogtreecommitdiffstats
path: root/sys/lib/libkern/arch/mips/strcmp.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/strcmp.S
parentspacing (diff)
downloadwireguard-openbsd-dc09a8a0f531a71288987427f8cb1169db68679b.tar.xz
wireguard-openbsd-dc09a8a0f531a71288987427f8cb1169db68679b.zip
move to mips64
Diffstat (limited to 'sys/lib/libkern/arch/mips/strcmp.S')
-rw-r--r--sys/lib/libkern/arch/mips/strcmp.S30
1 files changed, 0 insertions, 30 deletions
diff --git a/sys/lib/libkern/arch/mips/strcmp.S b/sys/lib/libkern/arch/mips/strcmp.S
deleted file mode 100644
index e95ebe698b0..00000000000
--- a/sys/lib/libkern/arch/mips/strcmp.S
+++ /dev/null
@@ -1,30 +0,0 @@
-/* $OpenBSD: strcmp.S,v 1.5 1998/03/01 16:10:34 niklas Exp $ */
-
-#include "DEFS.h"
-
-
-/*
- * NOTE: this version assumes unsigned chars in order to be "8 bit clean".
- */
-LEAF(strcmp)
- .set noreorder
-1:
- lbu t0, 0(a0) # get two bytes and compare them
- lbu t1, 0(a1)
- beq t0, zero, LessOrEq # end of first string?
- nop
- bne t0, t1, NotEq
- nop
- lbu t0, 1(a0) # unroll loop
- lbu t1, 1(a1)
- beq t0, zero, LessOrEq # end of first string?
- addu a0, a0, 2
- beq t0, t1, 1b
- addu a1, a1, 2
-NotEq:
- j ra
- subu v0, t0, t1
-LessOrEq:
- j ra
- subu v0, zero, t1
-END(strcmp)