1/*-
2 * Copyright (c) 2003 Tim J. Robbins.
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright
--- 11 unchanged lines hidden (view full) ---
20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 */
26
27#include <machine/asm.h>
28__FBSDID("$FreeBSD: head/lib/libc/i386/string/wcscmp.S 112059 2003-03-10 10:54:36Z tjr $");
29
30/*
31 * int
32 * wcscmp(const wchar_t *s1, const wchar_t *s2) --
33 * Return an integer greater than, equal to, or less than 0, when
34 * the string s1 is greater than, equal to, or less than the string s2.
35 */
36ENTRY(wcscmp)
--- 35 unchanged lines hidden (view full) ---
72no8: leal 4(%esi),%esi
73.p2align 2,0x90
74no4: leal 4(%esi),%esi
75.p2align 2,0x90
76no0: subl (%esi),%eax
77 popl %esi
78 popl %edi
79 ret
2 * Copyright (c) 2003 Tim J. Robbins.
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright
--- 11 unchanged lines hidden (view full) ---
20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 */
26
27#include <machine/asm.h>
28__FBSDID("$FreeBSD: head/lib/libc/i386/string/wcscmp.S 112059 2003-03-10 10:54:36Z tjr $");
29
30/*
31 * int
32 * wcscmp(const wchar_t *s1, const wchar_t *s2) --
33 * Return an integer greater than, equal to, or less than 0, when
34 * the string s1 is greater than, equal to, or less than the string s2.
35 */
36ENTRY(wcscmp)
--- 35 unchanged lines hidden (view full) ---
72no8: leal 4(%esi),%esi
73.p2align 2,0x90
74no4: leal 4(%esi),%esi
75.p2align 2,0x90
76no0: subl (%esi),%eax
77 popl %esi
78 popl %edi
79 ret