diff options
Diffstat (limited to 'usr/src/lib/libc/amd64/gen/wschr.s')
-rw-r--r-- | usr/src/lib/libc/amd64/gen/wschr.s | 24 |
1 files changed, 10 insertions, 14 deletions
diff --git a/usr/src/lib/libc/amd64/gen/wschr.s b/usr/src/lib/libc/amd64/gen/wschr.s index ced5362101..eb80866bf2 100644 --- a/usr/src/lib/libc/amd64/gen/wschr.s +++ b/usr/src/lib/libc/amd64/gen/wschr.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,19 +33,15 @@ / / Algorithm based on Solaris 2.6 gen/strchr.s implementation / -/ .ident "@(#)strchr.s 1.1 92/04/17 SMI" -/ #include <sys/asm_linkage.h> ANSI_PRAGMA_WEAK(wcschr,function) ANSI_PRAGMA_WEAK(wschr,function) -#include "SYS.h" - .align 8 / accounts for .loop alignment and prolog - ENTRY(_wcschr) /* (wchar_t *s, wchar_t wc) */ + ENTRY(wcschr) /* (wchar_t *s, wchar_t wc) */ movq %rdi,%rax .loop: movl (%rax),%edx / %edx = wchar of string @@ -87,8 +83,8 @@ addq $4,%rax .found: ret - SET_SIZE(_wcschr) + SET_SIZE(wcschr) - ENTRY(_wschr) - jmp _wcschr / tail call into _wcschr - SET_SIZE(_wschr) + ENTRY(wschr) + jmp wcschr / tail call into wcschr + SET_SIZE(wschr) |