summaryrefslogtreecommitdiff
path: root/usr/src/lib/libc/amd64/gen/wsncmp.s
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/lib/libc/amd64/gen/wsncmp.s')
-rw-r--r--usr/src/lib/libc/amd64/gen/wsncmp.s24
1 files changed, 10 insertions, 14 deletions
diff --git a/usr/src/lib/libc/amd64/gen/wsncmp.s b/usr/src/lib/libc/amd64/gen/wsncmp.s
index b1e8fd91ff..7697cac3b7 100644
--- a/usr/src/lib/libc/amd64/gen/wsncmp.s
+++ b/usr/src/lib/libc/amd64/gen/wsncmp.s
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,12 +18,13 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
- .ident "%Z%%M% %I% %E% SMI"
+#pragma ident "%Z%%M% %I% %E% SMI"
.file "%M%"
@@ -33,17 +33,13 @@
/
/ Algorithm based on Solaris 2.6 gen/strncpy.s implementation
/
-/ .ident "@(#)strncpy.s 1.1 92/04/17 SMI"
-/
#include <sys/asm_linkage.h>
ANSI_PRAGMA_WEAK(wcsncmp,function)
ANSI_PRAGMA_WEAK(wsncmp,function)
-#include "SYS.h"
-
- ENTRY(_wcsncmp) /* (wchar *ws1, wchar_t *ws2, size_t n) */
+ ENTRY(wcsncmp) /* (wchar *ws1, wchar_t *ws2, size_t n) */
cmpq %rdi,%rsi / same string?
je .equal
incq %rdx / will later predecrement this uint
@@ -96,8 +92,8 @@
.notequal_0:
subl (%rsi),%eax / return value is (*s1 - *--s2)
ret
- SET_SIZE(_wcsncmp)
+ SET_SIZE(wcsncmp)
- ENTRY(_wsncmp)
- jmp _wcsncmp / tail call into _wcsncmp
- SET_SIZE(_wsncmp)
+ ENTRY(wsncmp)
+ jmp wcsncmp / tail call into wcsncmp
+ SET_SIZE(wsncmp)