patch-2.3.99-pre8 linux/arch/s390/lib/strcmp.S
Next file: linux/arch/s390/lib/strncpy.S
Previous file: linux/arch/s390/lib/memset.S
Back to the patch index
Back to the overall index
- Lines: 28
- Date:
Fri May 12 11:41:45 2000
- Orig file:
v2.3.99-pre7/linux/arch/s390/lib/strcmp.S
- Orig date:
Wed Dec 31 16:00:00 1969
diff -u --recursive --new-file v2.3.99-pre7/linux/arch/s390/lib/strcmp.S linux/arch/s390/lib/strcmp.S
@@ -0,0 +1,27 @@
+/*
+ * arch/s390/lib/strcmp.S
+ * S390 strcmp routine
+ *
+ * S390 version
+ * Copyright (C) 1999 IBM Deutschland Entwicklung GmbH, IBM Corporation
+ * Author(s): Martin Schwidefsky ([email protected]),
+ */
+
+/*
+ * R2 = address of compare string
+ * R3 = address of test string
+ */
+ .globl strcmp
+strcmp:
+ SR 0,0
+ SR 1,1
+ CLST 2,3
+ JO .-4
+ JE strcmp_equal
+ IC 0,0(0,3)
+ IC 1,0(0,2)
+ SR 1,0
+strcmp_equal:
+ LR 2,1
+ BR 14
+
FUNET's LINUX-ADM group, [email protected]
TCL-scripts by Sam Shen (who was at: [email protected])