id stringlengths 22 129 | text stringlengths 60 19.5k | arch stringclasses 9
values | syntax stringclasses 5
values | kind stringclasses 4
values | repo stringclasses 32
values | path stringlengths 7 108 | license stringclasses 10
values | commit stringlengths 40 40 | source_host stringclasses 1
value | category stringclasses 15
values | source_url stringlengths 85 192 | line_start int64 1 5.48k | line_end int64 4 5.5k |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
bminor/glibc:sysdeps/i386/i686/multiarch/strcmp-ia32.S:1 | /* strcmp optimized for i686.
All versions must be listed in ifunc-impl-list.c.
Copyright (C) 2017-2019 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
... | x86 | gas-like | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/strcmp-ia32.S | LGPL-2.1 | 04277e02d7f54d3582bebcf8386b317018cd5e1d | github | libc | https://github.com/bminor/glibc/blob/04277e02d7f54d3582bebcf8386b317018cd5e1d/sysdeps/i386/i686/multiarch/strcmp-ia32.S | 1 | 33 |
bminor/glibc:sysdeps/i386/i686/multiarch/strcmp-ia32.S:1 | /* strcmp optimized for i686.
All versions must be listed in ifunc-impl-list.c.
Copyright (C) 2017-2018 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
... | x86 | gas-like | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/strcmp-ia32.S | LGPL-2.1 | 688903eb3ef01301d239ab753d309d45720610a7 | github | libc | https://github.com/bminor/glibc/blob/688903eb3ef01301d239ab753d309d45720610a7/sysdeps/i386/i686/multiarch/strcmp-ia32.S | 1 | 33 |
bminor/glibc:sysdeps/i386/i686/multiarch/strcmp-sse4.S:1 | /* strcmp with SSE4.2
Copyright (C) 2010-2026 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/strcmp-sse4.S | LGPL-2.1 | 04e750e75b73957cf1c791535a3f4319534a52fc | github | libc | https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/i386/i686/multiarch/strcmp-sse4.S | 1 | 60 |
bminor/glibc:sysdeps/i386/i686/multiarch/strcmp-sse4.S:3 | # define RETURN POP (%edi); POP (REM); ret; \
.p2align 4; CFI_PUSH (REM); CFI_PUSH (%edi)
# endif
# define REM %ebp
# define NONASCII __strncasecmp_nonascii
#else
# ifndef STRCMP
# define STRCMP __strcmp_sse4_2
# endif
# define STR1 4
# define STR2 STR1+4
# define RETURN ret; .p2align 4
#endif
.section .text... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/strcmp-sse4.S | LGPL-2.1 | 04e750e75b73957cf1c791535a3f4319534a52fc | github | libc | https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/i386/i686/multiarch/strcmp-sse4.S | 81 | 140 |
bminor/glibc:sysdeps/i386/i686/multiarch/strcmp-sse4.S:4 | END (__strcasecmp_sse4_2)
#endif
#ifdef USE_AS_STRNCASECMP_L
ENTRY (__strncasecmp_sse4_2)
# ifdef PIC
PUSH (%ebx)
LOAD_PIC_REG(bx)
movl __libc_tsd_LOCALE@GOTNTPOFF(%ebx), %eax
movl %gs:(%eax), %eax
# else
movl %gs:__libc_tsd_LOCALE@NTPOFF, %eax
# endif
# if LOCALE_T___LOCALES != 0 || LC_CTYPE != 0
movl LOCALE_T_... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/strcmp-sse4.S | LGPL-2.1 | 04e750e75b73957cf1c791535a3f4319534a52fc | github | libc | https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/i386/i686/multiarch/strcmp-sse4.S | 121 | 180 |
bminor/glibc:sysdeps/i386/i686/multiarch/strcmp-sse4.S:5 | # ifdef PIC
PUSH (%ebx)
LOAD_PIC_REG(bx)
# endif
L(ascii):
.section .rodata.cst16,"aM",@progbits,16
.align 16
.Lbelowupper:
.quad 0x4040404040404040
.quad 0x4040404040404040
.Ltopupper:
.quad 0x5b5b5b5b5b5b5b5b
.quad 0x5b5b5b5b5b5b5b5b
.Ltouppermask:
.quad 0x2020202020202020
.quad 0x2020202020202020
.previou... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/strcmp-sse4.S | LGPL-2.1 | 04e750e75b73957cf1c791535a3f4319534a52fc | github | libc | https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/i386/i686/multiarch/strcmp-sse4.S | 161 | 220 |
bminor/glibc:sysdeps/i386/i686/multiarch/strcmp-sse4.S:6 | test REM, REM
je L(eq)
#endif
mov %dx, %cx
and $0xfff, %cx
cmp $0xff0, %cx
ja L(first4bytes)
movdqu (%edx), %xmm2
mov %eax, %ecx
and $0xfff, %ecx
cmp $0xff0, %ecx
ja L(first4bytes)
#if defined USE_AS_STRCASECMP_L || defined USE_AS_STRNCASECMP_L
# define TOLOWER(reg1, reg2) \
movdqa reg1, %xmm3; \
... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/strcmp-sse4.S | LGPL-2.1 | 04e750e75b73957cf1c791535a3f4319534a52fc | github | libc | https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/i386/i686/multiarch/strcmp-sse4.S | 201 | 260 |
bminor/glibc:sysdeps/i386/i686/multiarch/strcmp-sse4.S:7 | cmp (%eax), %ecx
#endif
jne L(less4bytes)
#if !defined USE_AS_STRCASECMP_L && !defined USE_AS_STRNCASECMP_L
movdqu (%eax), %xmm1
#endif
pxor %xmm2, %xmm1
pxor %xmm0, %xmm0
ptest %xmm1, %xmm0
jnc L(less16bytes)
pcmpeqb %xmm0, %xmm2
ptest %xmm2, %xmm0
jnc L(less16bytes)
#if defined USE_AS_STRNCMP || defined USE... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/strcmp-sse4.S | LGPL-2.1 | 04e750e75b73957cf1c791535a3f4319534a52fc | github | libc | https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/i386/i686/multiarch/strcmp-sse4.S | 241 | 300 |
bminor/glibc:sysdeps/i386/i686/multiarch/strcmp-sse4.S:8 | cmp $1, REM
je L(eq)
#endif
movzbl 1(%eax), %ecx
#if defined USE_AS_STRCASECMP_L || defined USE_AS_STRNCASECMP_L
movzbl 1(%edx), %edi
# ifdef PIC
movl _nl_C_LC_CTYPE_tolower@GOTOFF+128*4(%ebx,%ecx,4), %ecx
movl _nl_C_LC_CTYPE_tolower@GOTOFF+128*4(%ebx,%edi,4), %edi
# else
movl _nl_C_LC_CTYPE_tolower+128*4(,%ecx,... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/strcmp-sse4.S | LGPL-2.1 | 04e750e75b73957cf1c791535a3f4319534a52fc | github | libc | https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/i386/i686/multiarch/strcmp-sse4.S | 281 | 340 |
bminor/glibc:sysdeps/i386/i686/multiarch/strcmp-sse4.S:9 | jne L(neq)
cmpl $0, %ecx
je L(eq)
#if defined USE_AS_STRNCMP || defined USE_AS_STRNCASECMP_L
cmp $3, REM
je L(eq)
#endif
movzbl 3(%eax), %ecx
#if defined USE_AS_STRCASECMP_L || defined USE_AS_STRNCASECMP_L
movzbl 3(%edx), %edi
# ifdef PIC
movl _nl_C_LC_CTYPE_tolower@GOTOFF+128*4(%ebx,%ecx,4), %ecx
movl _nl_C_L... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/strcmp-sse4.S | LGPL-2.1 | 04e750e75b73957cf1c791535a3f4319534a52fc | github | libc | https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/i386/i686/multiarch/strcmp-sse4.S | 321 | 380 |
bminor/glibc:sysdeps/i386/i686/multiarch/strcmp-sse4.S:10 | cmpl %ecx, %edi
#else
cmpb %cl, 4(%edx)
#endif
jne L(neq)
cmpl $0, %ecx
je L(eq)
#if defined USE_AS_STRNCMP || defined USE_AS_STRNCASECMP_L
cmp $5, REM
je L(eq)
#endif
movzbl 5(%eax), %ecx
#if defined USE_AS_STRCASECMP_L || defined USE_AS_STRNCASECMP_L
movzbl 5(%edx), %edi
# ifdef PIC
movl _nl_C_LC_CTYPE_tolo... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/strcmp-sse4.S | LGPL-2.1 | 04e750e75b73957cf1c791535a3f4319534a52fc | github | libc | https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/i386/i686/multiarch/strcmp-sse4.S | 361 | 420 |
bminor/glibc:sysdeps/i386/i686/multiarch/strcmp-sse4.S:11 | # else
movl _nl_C_LC_CTYPE_tolower+128*4(,%ecx,4), %ecx
movl _nl_C_LC_CTYPE_tolower+128*4(,%edi,4), %edi
# endif
cmpl %ecx, %edi
#else
cmpb %cl, 6(%edx)
#endif
jne L(neq)
cmpl $0, %ecx
je L(eq)
#if defined USE_AS_STRNCMP || defined USE_AS_STRNCASECMP_L
cmp $7, REM
je L(eq)
#endif
movzbl 7(%eax), %ecx
#if def... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/strcmp-sse4.S | LGPL-2.1 | 04e750e75b73957cf1c791535a3f4319534a52fc | github | libc | https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/i386/i686/multiarch/strcmp-sse4.S | 401 | 460 |
bminor/glibc:sysdeps/i386/i686/multiarch/strcmp-sse4.S:12 | #if !defined USE_AS_STRCASECMP_L && !defined USE_AS_STRNCASECMP_L
PUSH (%edi)
#endif
PUSH (%esi)
#if defined USE_AS_STRNCMP || defined USE_AS_STRNCASECMP_L
cfi_remember_state
#endif
mov %edx, %edi
mov %eax, %esi
xorl %eax, %eax
L(check_offset):
movl %edi, %edx
movl %esi, %ecx
andl $0xfff, %edx
andl $0xfff, %e... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/strcmp-sse4.S | LGPL-2.1 | 04e750e75b73957cf1c791535a3f4319534a52fc | github | libc | https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/i386/i686/multiarch/strcmp-sse4.S | 441 | 500 |
bminor/glibc:sysdeps/i386/i686/multiarch/strcmp-sse4.S:13 | #if defined USE_AS_STRCASECMP_L || defined USE_AS_STRNCASECMP_L
# ifdef PIC
movl _nl_C_LC_CTYPE_tolower@GOTOFF+128*4(%ebx,%eax,4), %eax
movl _nl_C_LC_CTYPE_tolower@GOTOFF+128*4(%ebx,%ecx,4), %ecx
# else
movl _nl_C_LC_CTYPE_tolower+128*4(,%eax,4), %eax
movl _nl_C_LC_CTYPE_tolower+128*4(,%ecx,4), %ecx
# endif
#endif
... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/strcmp-sse4.S | LGPL-2.1 | 04e750e75b73957cf1c791535a3f4319534a52fc | github | libc | https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/i386/i686/multiarch/strcmp-sse4.S | 481 | 540 |
bminor/glibc:sysdeps/i386/i686/multiarch/strcmp-sse4.S:14 | movl _nl_C_LC_CTYPE_tolower+128*4(,%ecx,4), %ecx
# endif
#endif
subl %ecx, %eax
L(ret):
POP (%esi)
POP (%edi)
#if defined USE_AS_STRNCMP || defined USE_AS_STRNCASECMP_L
POP (REM)
#endif
#if defined USE_AS_STRCASECMP_L || defined USE_AS_STRNCASECMP_L
# ifdef PIC
POP (%ebx)
# endif
#endif
ret
.p2align 4
#if defin... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/strcmp-sse4.S | LGPL-2.1 | 04e750e75b73957cf1c791535a3f4319534a52fc | github | libc | https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/i386/i686/multiarch/strcmp-sse4.S | 521 | 580 |
bminor/glibc:sysdeps/i386/i686/multiarch/strcmp-sse4.S:15 | #if defined USE_AS_STRCASECMP_L || defined USE_AS_STRNCASECMP_L
movd %xmm3, %edi
xor %edi, %ecx
#else
xor (%edx), %ecx
#endif
or $0xfefefeff, %ecx
add $1, %ecx
jnz L(less4bytes)
#if defined USE_AS_STRNCMP || defined USE_AS_STRNCASECMP_L
cmp $4, REM
jbe L(eq)
#endif
#if defined USE_AS_STRCASECMP_L || defined US... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/strcmp-sse4.S | LGPL-2.1 | 04e750e75b73957cf1c791535a3f4319534a52fc | github | libc | https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/i386/i686/multiarch/strcmp-sse4.S | 561 | 620 |
bminor/glibc:sysdeps/i386/i686/multiarch/strcmp-sse4.S:16 | #endif
add $8, %edx
add $8, %eax
L(less4bytes):
movzbl (%eax), %ecx
#if defined USE_AS_STRCASECMP_L || defined USE_AS_STRNCASECMP_L
movzbl (%edx), %edi
# ifdef PIC
movl _nl_C_LC_CTYPE_tolower@GOTOFF+128*4(%ebx,%ecx,4), %ecx
movl _nl_C_LC_CTYPE_tolower@GOTOFF+128*4(%ebx,%edi,4), %edi
# else
movl _nl_C_LC_CTYPE_... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/strcmp-sse4.S | LGPL-2.1 | 04e750e75b73957cf1c791535a3f4319534a52fc | github | libc | https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/i386/i686/multiarch/strcmp-sse4.S | 601 | 660 |
bminor/glibc:sysdeps/i386/i686/multiarch/strcmp-sse4.S:17 | cmpb %cl, 1(%edx)
#endif
jne L(neq)
cmpl $0, %ecx
je L(eq)
#if defined USE_AS_STRNCMP || defined USE_AS_STRNCASECMP_L
cmp $2, REM
je L(eq)
#endif
movzbl 2(%eax), %ecx
#if defined USE_AS_STRCASECMP_L || defined USE_AS_STRNCASECMP_L
movzbl 2(%edx), %edi
# ifdef PIC
movl _nl_C_LC_CTYPE_tolower@GOTOFF+128*4(%ebx,... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/strcmp-sse4.S | LGPL-2.1 | 04e750e75b73957cf1c791535a3f4319534a52fc | github | libc | https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/i386/i686/multiarch/strcmp-sse4.S | 641 | 700 |
bminor/glibc:sysdeps/i386/i686/multiarch/strcmp-sse4.S:18 | movl _nl_C_LC_CTYPE_tolower+128*4(,%ecx,4), %ecx
movl _nl_C_LC_CTYPE_tolower+128*4(,%edi,4), %edi
# endif
cmpl %ecx, %edi
#else
cmpb %cl, 3(%edx)
#endif
jne L(neq)
cmpl $0, %ecx
je L(eq)
L(more4bytes):
#if defined USE_AS_STRNCMP || defined USE_AS_STRNCASECMP_L
cmp $4, REM
je L(eq)
#endif
movzbl 4(%eax), %ecx
... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/strcmp-sse4.S | LGPL-2.1 | 04e750e75b73957cf1c791535a3f4319534a52fc | github | libc | https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/i386/i686/multiarch/strcmp-sse4.S | 681 | 740 |
bminor/glibc:sysdeps/i386/i686/multiarch/strcmp-sse4.S:19 | #if defined USE_AS_STRCASECMP_L || defined USE_AS_STRNCASECMP_L
movzbl 5(%edx), %edi
# ifdef PIC
movl _nl_C_LC_CTYPE_tolower@GOTOFF+128*4(%ebx,%ecx,4), %ecx
movl _nl_C_LC_CTYPE_tolower@GOTOFF+128*4(%ebx,%edi,4), %edi
# else
movl _nl_C_LC_CTYPE_tolower+128*4(,%ecx,4), %ecx
movl _nl_C_LC_CTYPE_tolower+128*4(,%edi,4)... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/strcmp-sse4.S | LGPL-2.1 | 04e750e75b73957cf1c791535a3f4319534a52fc | github | libc | https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/i386/i686/multiarch/strcmp-sse4.S | 721 | 780 |
bminor/glibc:sysdeps/i386/i686/multiarch/strcmp-sse4.S:20 | cmp $7, REM
je L(eq)
#endif
movzbl 7(%eax), %ecx
#if defined USE_AS_STRCASECMP_L || defined USE_AS_STRNCASECMP_L
movzbl 7(%edx), %edi
# ifdef PIC
movl _nl_C_LC_CTYPE_tolower@GOTOFF+128*4(%ebx,%ecx,4), %ecx
movl _nl_C_LC_CTYPE_tolower@GOTOFF+128*4(%ebx,%edi,4), %edi
# else
movl _nl_C_LC_CTYPE_tolower+128*4(,%ecx,4... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/strcmp-sse4.S | LGPL-2.1 | 04e750e75b73957cf1c791535a3f4319534a52fc | github | libc | https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/i386/i686/multiarch/strcmp-sse4.S | 761 | 783 |
bminor/glibc:sysdeps/i386/i686/multiarch/strcmp-sse4.S:1 | /* strcmp with SSE4.2
Copyright (C) 2010-2025 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/strcmp-sse4.S | LGPL-2.1 | 2642002380aafb71a1d3b569b6d7ebeab3284816 | github | libc | https://github.com/bminor/glibc/blob/2642002380aafb71a1d3b569b6d7ebeab3284816/sysdeps/i386/i686/multiarch/strcmp-sse4.S | 1 | 60 |
bminor/glibc:sysdeps/i386/i686/multiarch/strcmp-sse4.S:1 | /* strcmp with SSE4.2
Copyright (C) 2010-2024 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/strcmp-sse4.S | LGPL-2.1 | dff8da6b3e89b986bb7f6b1ec18cf65d5972e307 | github | libc | https://github.com/bminor/glibc/blob/dff8da6b3e89b986bb7f6b1ec18cf65d5972e307/sysdeps/i386/i686/multiarch/strcmp-sse4.S | 1 | 60 |
bminor/glibc:sysdeps/i386/i686/multiarch/strcmp-sse4.S:1 | /* strcmp with SSE4.2
Copyright (C) 2010-2023 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/strcmp-sse4.S | LGPL-2.1 | 6d7e8eda9b85b08f207a6dc6f187e94e4817270f | github | libc | https://github.com/bminor/glibc/blob/6d7e8eda9b85b08f207a6dc6f187e94e4817270f/sysdeps/i386/i686/multiarch/strcmp-sse4.S | 1 | 60 |
bminor/glibc:sysdeps/i386/i686/multiarch/strcmp-sse4.S:1 | /* strcmp with SSE4.2
Copyright (C) 2010-2022 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/strcmp-sse4.S | LGPL-2.1 | 581c785bf31bc74430320c7856bbfa3875d025fe | github | libc | https://github.com/bminor/glibc/blob/581c785bf31bc74430320c7856bbfa3875d025fe/sysdeps/i386/i686/multiarch/strcmp-sse4.S | 1 | 60 |
bminor/glibc:sysdeps/i386/i686/multiarch/strcmp-sse4.S:1 | /* strcmp with SSE4.2
Copyright (C) 2010-2021 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/strcmp-sse4.S | LGPL-2.1 | 30891f35fa7da832b66d80d0807610df361851f3 | github | libc | https://github.com/bminor/glibc/blob/30891f35fa7da832b66d80d0807610df361851f3/sysdeps/i386/i686/multiarch/strcmp-sse4.S | 1 | 60 |
bminor/glibc:sysdeps/i386/i686/multiarch/strcmp-sse4.S:1 | /* strcmp with SSE4.2
Copyright (C) 2010-2021 Free Software Foundation, Inc.
Contributed by Intel Corporation.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by ... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/strcmp-sse4.S | LGPL-2.1 | 2b778ceb4010c28d70de9b8eab20e8d88eed586b | github | libc | https://github.com/bminor/glibc/blob/2b778ceb4010c28d70de9b8eab20e8d88eed586b/sysdeps/i386/i686/multiarch/strcmp-sse4.S | 1 | 60 |
bminor/glibc:sysdeps/i386/i686/multiarch/strcmp-sse4.S:3 | # else
# define RETURN POP (%edi); POP (REM); ret; \
.p2align 4; CFI_PUSH (REM); CFI_PUSH (%edi)
# endif
# define REM %ebp
# define NONASCII __strncasecmp_nonascii
#else
# ifndef STRCMP
# define STRCMP __strcmp_sse4_2
# endif
# define STR1 4
# define STR2 STR1+4
# define RETURN ret; .p2align 4
#endif
.sectio... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/strcmp-sse4.S | LGPL-2.1 | 2b778ceb4010c28d70de9b8eab20e8d88eed586b | github | libc | https://github.com/bminor/glibc/blob/2b778ceb4010c28d70de9b8eab20e8d88eed586b/sysdeps/i386/i686/multiarch/strcmp-sse4.S | 81 | 140 |
bminor/glibc:sysdeps/i386/i686/multiarch/strcmp-sse4.S:4 | # endif
END (__strcasecmp_sse4_2)
#endif
#ifdef USE_AS_STRNCASECMP_L
ENTRY (__strncasecmp_sse4_2)
# ifdef PIC
PUSH (%ebx)
LOAD_PIC_REG(bx)
movl __libc_tsd_LOCALE@GOTNTPOFF(%ebx), %eax
movl %gs:(%eax), %eax
# else
movl %gs:__libc_tsd_LOCALE@NTPOFF, %eax
# endif
# if LOCALE_T___LOCALES != 0 || LC_CTYPE != 0
movl L... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/strcmp-sse4.S | LGPL-2.1 | 2b778ceb4010c28d70de9b8eab20e8d88eed586b | github | libc | https://github.com/bminor/glibc/blob/2b778ceb4010c28d70de9b8eab20e8d88eed586b/sysdeps/i386/i686/multiarch/strcmp-sse4.S | 121 | 180 |
bminor/glibc:sysdeps/i386/i686/multiarch/strcmp-sse4.S:5 | jne NONASCII
# ifdef PIC
PUSH (%ebx)
LOAD_PIC_REG(bx)
# endif
L(ascii):
.section .rodata.cst16,"aM",@progbits,16
.align 16
.Lbelowupper:
.quad 0x4040404040404040
.quad 0x4040404040404040
.Ltopupper:
.quad 0x5b5b5b5b5b5b5b5b
.quad 0x5b5b5b5b5b5b5b5b
.Ltouppermask:
.quad 0x2020202020202020
.quad 0x202020202020... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/strcmp-sse4.S | LGPL-2.1 | 2b778ceb4010c28d70de9b8eab20e8d88eed586b | github | libc | https://github.com/bminor/glibc/blob/2b778ceb4010c28d70de9b8eab20e8d88eed586b/sysdeps/i386/i686/multiarch/strcmp-sse4.S | 161 | 220 |
bminor/glibc:sysdeps/i386/i686/multiarch/strcmp-sse4.S:6 | movl CNT(%esp), REM
test REM, REM
je L(eq)
#endif
mov %dx, %cx
and $0xfff, %cx
cmp $0xff0, %cx
ja L(first4bytes)
movdqu (%edx), %xmm2
mov %eax, %ecx
and $0xfff, %ecx
cmp $0xff0, %ecx
ja L(first4bytes)
#if defined USE_AS_STRCASECMP_L || defined USE_AS_STRNCASECMP_L
# define TOLOWER(reg1, reg2) \
movdqa reg1,... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/strcmp-sse4.S | LGPL-2.1 | 2b778ceb4010c28d70de9b8eab20e8d88eed586b | github | libc | https://github.com/bminor/glibc/blob/2b778ceb4010c28d70de9b8eab20e8d88eed586b/sysdeps/i386/i686/multiarch/strcmp-sse4.S | 201 | 260 |
bminor/glibc:sysdeps/i386/i686/multiarch/strcmp-sse4.S:7 | movd %xmm2, %ecx
cmp (%eax), %ecx
#endif
jne L(less4bytes)
#if !defined USE_AS_STRCASECMP_L && !defined USE_AS_STRNCASECMP_L
movdqu (%eax), %xmm1
#endif
pxor %xmm2, %xmm1
pxor %xmm0, %xmm0
ptest %xmm1, %xmm0
jnc L(less16bytes)
pcmpeqb %xmm0, %xmm2
ptest %xmm2, %xmm0
jnc L(less16bytes)
#if defined USE_AS_STRN... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/strcmp-sse4.S | LGPL-2.1 | 2b778ceb4010c28d70de9b8eab20e8d88eed586b | github | libc | https://github.com/bminor/glibc/blob/2b778ceb4010c28d70de9b8eab20e8d88eed586b/sysdeps/i386/i686/multiarch/strcmp-sse4.S | 241 | 300 |
bminor/glibc:sysdeps/i386/i686/multiarch/strcmp-sse4.S:8 | #if defined USE_AS_STRNCMP || defined USE_AS_STRNCASECMP_L
cmp $1, REM
je L(eq)
#endif
movzbl 1(%eax), %ecx
#if defined USE_AS_STRCASECMP_L || defined USE_AS_STRNCASECMP_L
movzbl 1(%edx), %edi
# ifdef PIC
movl _nl_C_LC_CTYPE_tolower@GOTOFF+128*4(%ebx,%ecx,4), %ecx
movl _nl_C_LC_CTYPE_tolower@GOTOFF+128*4(%ebx,%e... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/strcmp-sse4.S | LGPL-2.1 | 2b778ceb4010c28d70de9b8eab20e8d88eed586b | github | libc | https://github.com/bminor/glibc/blob/2b778ceb4010c28d70de9b8eab20e8d88eed586b/sysdeps/i386/i686/multiarch/strcmp-sse4.S | 281 | 340 |
bminor/glibc:sysdeps/i386/i686/multiarch/strcmp-sse4.S:9 | #endif
jne L(neq)
cmpl $0, %ecx
je L(eq)
#if defined USE_AS_STRNCMP || defined USE_AS_STRNCASECMP_L
cmp $3, REM
je L(eq)
#endif
movzbl 3(%eax), %ecx
#if defined USE_AS_STRCASECMP_L || defined USE_AS_STRNCASECMP_L
movzbl 3(%edx), %edi
# ifdef PIC
movl _nl_C_LC_CTYPE_tolower@GOTOFF+128*4(%ebx,%ecx,4), %ecx
movl... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/strcmp-sse4.S | LGPL-2.1 | 2b778ceb4010c28d70de9b8eab20e8d88eed586b | github | libc | https://github.com/bminor/glibc/blob/2b778ceb4010c28d70de9b8eab20e8d88eed586b/sysdeps/i386/i686/multiarch/strcmp-sse4.S | 321 | 380 |
bminor/glibc:sysdeps/i386/i686/multiarch/strcmp-sse4.S:10 | # endif
cmpl %ecx, %edi
#else
cmpb %cl, 4(%edx)
#endif
jne L(neq)
cmpl $0, %ecx
je L(eq)
#if defined USE_AS_STRNCMP || defined USE_AS_STRNCASECMP_L
cmp $5, REM
je L(eq)
#endif
movzbl 5(%eax), %ecx
#if defined USE_AS_STRCASECMP_L || defined USE_AS_STRNCASECMP_L
movzbl 5(%edx), %edi
# ifdef PIC
movl _nl_C_LC_C... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/strcmp-sse4.S | LGPL-2.1 | 2b778ceb4010c28d70de9b8eab20e8d88eed586b | github | libc | https://github.com/bminor/glibc/blob/2b778ceb4010c28d70de9b8eab20e8d88eed586b/sysdeps/i386/i686/multiarch/strcmp-sse4.S | 361 | 420 |
bminor/glibc:sysdeps/i386/i686/multiarch/strcmp-sse4.S:11 | movl _nl_C_LC_CTYPE_tolower@GOTOFF+128*4(%ebx,%edi,4), %edi
# else
movl _nl_C_LC_CTYPE_tolower+128*4(,%ecx,4), %ecx
movl _nl_C_LC_CTYPE_tolower+128*4(,%edi,4), %edi
# endif
cmpl %ecx, %edi
#else
cmpb %cl, 6(%edx)
#endif
jne L(neq)
cmpl $0, %ecx
je L(eq)
#if defined USE_AS_STRNCMP || defined USE_AS_STRNCASECMP_L... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/strcmp-sse4.S | LGPL-2.1 | 2b778ceb4010c28d70de9b8eab20e8d88eed586b | github | libc | https://github.com/bminor/glibc/blob/2b778ceb4010c28d70de9b8eab20e8d88eed586b/sysdeps/i386/i686/multiarch/strcmp-sse4.S | 401 | 460 |
bminor/glibc:sysdeps/i386/i686/multiarch/strcmp-sse4.S:12 | add $8, %edx
#if !defined USE_AS_STRCASECMP_L && !defined USE_AS_STRNCASECMP_L
PUSH (%edi)
#endif
PUSH (%esi)
#if defined USE_AS_STRNCMP || defined USE_AS_STRNCASECMP_L
cfi_remember_state
#endif
mov %edx, %edi
mov %eax, %esi
xorl %eax, %eax
L(check_offset):
movl %edi, %edx
movl %esi, %ecx
andl $0xfff, %edx
a... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/strcmp-sse4.S | LGPL-2.1 | 2b778ceb4010c28d70de9b8eab20e8d88eed586b | github | libc | https://github.com/bminor/glibc/blob/2b778ceb4010c28d70de9b8eab20e8d88eed586b/sysdeps/i386/i686/multiarch/strcmp-sse4.S | 441 | 500 |
bminor/glibc:sysdeps/i386/i686/multiarch/strcmp-sse4.S:13 | movzbl (%esi,%edx), %ecx
#if defined USE_AS_STRCASECMP_L || defined USE_AS_STRNCASECMP_L
# ifdef PIC
movl _nl_C_LC_CTYPE_tolower@GOTOFF+128*4(%ebx,%eax,4), %eax
movl _nl_C_LC_CTYPE_tolower@GOTOFF+128*4(%ebx,%ecx,4), %ecx
# else
movl _nl_C_LC_CTYPE_tolower+128*4(,%eax,4), %eax
movl _nl_C_LC_CTYPE_tolower+128*4(,%ecx... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/strcmp-sse4.S | LGPL-2.1 | 2b778ceb4010c28d70de9b8eab20e8d88eed586b | github | libc | https://github.com/bminor/glibc/blob/2b778ceb4010c28d70de9b8eab20e8d88eed586b/sysdeps/i386/i686/multiarch/strcmp-sse4.S | 481 | 540 |
bminor/glibc:sysdeps/i386/i686/multiarch/strcmp-sse4.S:14 | movl _nl_C_LC_CTYPE_tolower+128*4(,%eax,4), %eax
movl _nl_C_LC_CTYPE_tolower+128*4(,%ecx,4), %ecx
# endif
#endif
subl %ecx, %eax
L(ret):
POP (%esi)
POP (%edi)
#if defined USE_AS_STRNCMP || defined USE_AS_STRNCASECMP_L
POP (REM)
#endif
#if defined USE_AS_STRCASECMP_L || defined USE_AS_STRNCASECMP_L
# ifdef PIC
POP... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/strcmp-sse4.S | LGPL-2.1 | 2b778ceb4010c28d70de9b8eab20e8d88eed586b | github | libc | https://github.com/bminor/glibc/blob/2b778ceb4010c28d70de9b8eab20e8d88eed586b/sysdeps/i386/i686/multiarch/strcmp-sse4.S | 521 | 580 |
bminor/glibc:sysdeps/i386/i686/multiarch/strcmp-sse4.S:15 | jnc L(less4bytes)
#if defined USE_AS_STRCASECMP_L || defined USE_AS_STRNCASECMP_L
movd %xmm3, %edi
xor %edi, %ecx
#else
xor (%edx), %ecx
#endif
or $0xfefefeff, %ecx
add $1, %ecx
jnz L(less4bytes)
#if defined USE_AS_STRNCMP || defined USE_AS_STRNCASECMP_L
cmp $4, REM
jbe L(eq)
#endif
#if defined USE_AS_STRCASEC... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/strcmp-sse4.S | LGPL-2.1 | 2b778ceb4010c28d70de9b8eab20e8d88eed586b | github | libc | https://github.com/bminor/glibc/blob/2b778ceb4010c28d70de9b8eab20e8d88eed586b/sysdeps/i386/i686/multiarch/strcmp-sse4.S | 561 | 620 |
bminor/glibc:sysdeps/i386/i686/multiarch/strcmp-sse4.S:16 | jbe L(eq)
#endif
add $8, %edx
add $8, %eax
L(less4bytes):
movzbl (%eax), %ecx
#if defined USE_AS_STRCASECMP_L || defined USE_AS_STRNCASECMP_L
movzbl (%edx), %edi
# ifdef PIC
movl _nl_C_LC_CTYPE_tolower@GOTOFF+128*4(%ebx,%ecx,4), %ecx
movl _nl_C_LC_CTYPE_tolower@GOTOFF+128*4(%ebx,%edi,4), %edi
# else
movl _nl_C... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/strcmp-sse4.S | LGPL-2.1 | 2b778ceb4010c28d70de9b8eab20e8d88eed586b | github | libc | https://github.com/bminor/glibc/blob/2b778ceb4010c28d70de9b8eab20e8d88eed586b/sysdeps/i386/i686/multiarch/strcmp-sse4.S | 601 | 660 |
bminor/glibc:sysdeps/i386/i686/multiarch/strcmp-sse4.S:17 | #else
cmpb %cl, 1(%edx)
#endif
jne L(neq)
cmpl $0, %ecx
je L(eq)
#if defined USE_AS_STRNCMP || defined USE_AS_STRNCASECMP_L
cmp $2, REM
je L(eq)
#endif
movzbl 2(%eax), %ecx
#if defined USE_AS_STRCASECMP_L || defined USE_AS_STRNCASECMP_L
movzbl 2(%edx), %edi
# ifdef PIC
movl _nl_C_LC_CTYPE_tolower@GOTOFF+128*... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/strcmp-sse4.S | LGPL-2.1 | 2b778ceb4010c28d70de9b8eab20e8d88eed586b | github | libc | https://github.com/bminor/glibc/blob/2b778ceb4010c28d70de9b8eab20e8d88eed586b/sysdeps/i386/i686/multiarch/strcmp-sse4.S | 641 | 700 |
bminor/glibc:sysdeps/i386/i686/multiarch/strcmp-sse4.S:18 | # else
movl _nl_C_LC_CTYPE_tolower+128*4(,%ecx,4), %ecx
movl _nl_C_LC_CTYPE_tolower+128*4(,%edi,4), %edi
# endif
cmpl %ecx, %edi
#else
cmpb %cl, 3(%edx)
#endif
jne L(neq)
cmpl $0, %ecx
je L(eq)
L(more4bytes):
#if defined USE_AS_STRNCMP || defined USE_AS_STRNCASECMP_L
cmp $4, REM
je L(eq)
#endif
movzbl 4(%eax... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/strcmp-sse4.S | LGPL-2.1 | 2b778ceb4010c28d70de9b8eab20e8d88eed586b | github | libc | https://github.com/bminor/glibc/blob/2b778ceb4010c28d70de9b8eab20e8d88eed586b/sysdeps/i386/i686/multiarch/strcmp-sse4.S | 681 | 740 |
bminor/glibc:sysdeps/i386/i686/multiarch/strcmp-sse4.S:19 | movzbl 5(%eax), %ecx
#if defined USE_AS_STRCASECMP_L || defined USE_AS_STRNCASECMP_L
movzbl 5(%edx), %edi
# ifdef PIC
movl _nl_C_LC_CTYPE_tolower@GOTOFF+128*4(%ebx,%ecx,4), %ecx
movl _nl_C_LC_CTYPE_tolower@GOTOFF+128*4(%ebx,%edi,4), %edi
# else
movl _nl_C_LC_CTYPE_tolower+128*4(,%ecx,4), %ecx
movl _nl_C_LC_CTYPE_t... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/strcmp-sse4.S | LGPL-2.1 | 2b778ceb4010c28d70de9b8eab20e8d88eed586b | github | libc | https://github.com/bminor/glibc/blob/2b778ceb4010c28d70de9b8eab20e8d88eed586b/sysdeps/i386/i686/multiarch/strcmp-sse4.S | 721 | 780 |
bminor/glibc:sysdeps/i386/i686/multiarch/strcmp-sse4.S:20 | #if defined USE_AS_STRNCMP || defined USE_AS_STRNCASECMP_L
cmp $7, REM
je L(eq)
#endif
movzbl 7(%eax), %ecx
#if defined USE_AS_STRCASECMP_L || defined USE_AS_STRNCASECMP_L
movzbl 7(%edx), %edi
# ifdef PIC
movl _nl_C_LC_CTYPE_tolower@GOTOFF+128*4(%ebx,%ecx,4), %ecx
movl _nl_C_LC_CTYPE_tolower@GOTOFF+128*4(%ebx,%ed... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/strcmp-sse4.S | LGPL-2.1 | 2b778ceb4010c28d70de9b8eab20e8d88eed586b | github | libc | https://github.com/bminor/glibc/blob/2b778ceb4010c28d70de9b8eab20e8d88eed586b/sysdeps/i386/i686/multiarch/strcmp-sse4.S | 761 | 784 |
bminor/glibc:sysdeps/i386/i686/multiarch/strcmp-sse4.S:1 | /* strcmp with SSE4.2
Copyright (C) 2010-2020 Free Software Foundation, Inc.
Contributed by Intel Corporation.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by ... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/strcmp-sse4.S | LGPL-2.1 | fff30716a7517a2d1d4682c5b94e56b0e87f6a67 | github | libc | https://github.com/bminor/glibc/blob/fff30716a7517a2d1d4682c5b94e56b0e87f6a67/sysdeps/i386/i686/multiarch/strcmp-sse4.S | 1 | 60 |
bminor/glibc:sysdeps/i386/i686/multiarch/strcmp-sse4.S:3 | # else
# define RETURN POP (%edi); POP (REM); ret; \
.p2align 4; CFI_PUSH (REM); CFI_PUSH (%edi)
# endif
# define REM %ebp
# define NONASCII __strncasecmp_nonascii
#else
# ifndef STRCMP
# define STRCMP __strcmp_sse4_2
# endif
# define STR1 4
# define STR2 STR1+4
# define RETURN ret; .p2align 4
#endif
.sectio... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/strcmp-sse4.S | LGPL-2.1 | d614a7539657941a9201c236b2f15afac18e1213 | github | libc | https://github.com/bminor/glibc/blob/d614a7539657941a9201c236b2f15afac18e1213/sysdeps/i386/i686/multiarch/strcmp-sse4.S | 81 | 140 |
bminor/glibc:sysdeps/i386/i686/multiarch/strcmp-sse4.S:4 | movl (%eax), %eax
# endif
testl $1, LOCALE_DATA_VALUES+_NL_CTYPE_NONASCII_CASE*SIZEOF_VALUES(%eax)
# ifdef PIC
je L(ascii)
POP (%ebx)
jmp __strcasecmp_nonascii
# else
jne __strcasecmp_nonascii
jmp L(ascii)
# endif
END (__strcasecmp_sse4_2)
#endif
#ifdef USE_AS_STRNCASECMP_L
ENTRY (__strncasecmp_sse4_2)
# ifdef P... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/strcmp-sse4.S | LGPL-2.1 | d614a7539657941a9201c236b2f15afac18e1213 | github | libc | https://github.com/bminor/glibc/blob/d614a7539657941a9201c236b2f15afac18e1213/sysdeps/i386/i686/multiarch/strcmp-sse4.S | 121 | 180 |
bminor/glibc:sysdeps/i386/i686/multiarch/strcmp-sse4.S:5 | # ifdef PIC
je L(ascii)
POP (%ebx)
jmp __strncasecmp_nonascii
# else
jne __strncasecmp_nonascii
jmp L(ascii)
# endif
END (__strncasecmp_sse4_2)
#endif
ENTRY (STRCMP)
#if defined USE_AS_STRCASECMP_L || defined USE_AS_STRNCASECMP_L
movl LOCALE(%esp), %eax
# if LOCALE_T___LOCALES != 0 || LC_CTYPE != 0
movl LOCALE... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/strcmp-sse4.S | LGPL-2.1 | d614a7539657941a9201c236b2f15afac18e1213 | github | libc | https://github.com/bminor/glibc/blob/d614a7539657941a9201c236b2f15afac18e1213/sysdeps/i386/i686/multiarch/strcmp-sse4.S | 161 | 220 |
bminor/glibc:sysdeps/i386/i686/multiarch/strcmp-sse4.S:6 | # ifdef PIC
# define UCLOW_reg .Lbelowupper@GOTOFF(%ebx)
# define UCHIGH_reg .Ltopupper@GOTOFF(%ebx)
# define LCQWORD_reg .Ltouppermask@GOTOFF(%ebx)
# else
# define UCLOW_reg .Lbelowupper
# define UCHIGH_reg .Ltopupper
# define LCQWORD_reg .Ltouppermask
# endif
#endif
#if defined USE_AS_STRNCMP || defined USE_AS... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/strcmp-sse4.S | LGPL-2.1 | d614a7539657941a9201c236b2f15afac18e1213 | github | libc | https://github.com/bminor/glibc/blob/d614a7539657941a9201c236b2f15afac18e1213/sysdeps/i386/i686/multiarch/strcmp-sse4.S | 201 | 260 |
bminor/glibc:sysdeps/i386/i686/multiarch/strcmp-sse4.S:7 | pcmpgtb reg1, %xmm4; \
pcmpgtb UCLOW_reg, %xmm5; \
pcmpgtb reg2, %xmm6; \
pand %xmm4, %xmm3; \
pand %xmm6, %xmm5; \
pand LCQWORD_reg, %xmm3; \
pand LCQWORD_reg, %xmm5; \
por %xmm3, reg1; \
por %xmm5, reg2
movdqu (%eax), %xmm1... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/strcmp-sse4.S | LGPL-2.1 | d614a7539657941a9201c236b2f15afac18e1213 | github | libc | https://github.com/bminor/glibc/blob/d614a7539657941a9201c236b2f15afac18e1213/sysdeps/i386/i686/multiarch/strcmp-sse4.S | 241 | 300 |
bminor/glibc:sysdeps/i386/i686/multiarch/strcmp-sse4.S:8 | add $16, %eax
L(first4bytes):
movzbl (%eax), %ecx
#if defined USE_AS_STRCASECMP_L || defined USE_AS_STRNCASECMP_L
movzbl (%edx), %edi
# ifdef PIC
movl _nl_C_LC_CTYPE_tolower@GOTOFF+128*4(%ebx,%ecx,4), %ecx
movl _nl_C_LC_CTYPE_tolower@GOTOFF+128*4(%ebx,%edi,4), %edi
# else
movl _nl_C_LC_CTYPE_tolower+128*4(,%ecx,4)... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/strcmp-sse4.S | LGPL-2.1 | d614a7539657941a9201c236b2f15afac18e1213 | github | libc | https://github.com/bminor/glibc/blob/d614a7539657941a9201c236b2f15afac18e1213/sysdeps/i386/i686/multiarch/strcmp-sse4.S | 281 | 340 |
bminor/glibc:sysdeps/i386/i686/multiarch/strcmp-sse4.S:9 | cmpl $0, %ecx
je L(eq)
#if defined USE_AS_STRNCMP || defined USE_AS_STRNCASECMP_L
cmp $2, REM
je L(eq)
#endif
movzbl 2(%eax), %ecx
#if defined USE_AS_STRCASECMP_L || defined USE_AS_STRNCASECMP_L
movzbl 2(%edx), %edi
# ifdef PIC
movl _nl_C_LC_CTYPE_tolower@GOTOFF+128*4(%ebx,%ecx,4), %ecx
movl _nl_C_LC_CTYPE_tolo... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/strcmp-sse4.S | LGPL-2.1 | d614a7539657941a9201c236b2f15afac18e1213 | github | libc | https://github.com/bminor/glibc/blob/d614a7539657941a9201c236b2f15afac18e1213/sysdeps/i386/i686/multiarch/strcmp-sse4.S | 321 | 380 |
bminor/glibc:sysdeps/i386/i686/multiarch/strcmp-sse4.S:10 | #else
cmpb %cl, 3(%edx)
#endif
jne L(neq)
cmpl $0, %ecx
je L(eq)
#if defined USE_AS_STRNCMP || defined USE_AS_STRNCASECMP_L
cmp $4, REM
je L(eq)
#endif
movzbl 4(%eax), %ecx
#if defined USE_AS_STRCASECMP_L || defined USE_AS_STRNCASECMP_L
movzbl 4(%edx), %edi
# ifdef PIC
movl _nl_C_LC_CTYPE_tolower@GOTOFF+128*4... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/strcmp-sse4.S | LGPL-2.1 | d614a7539657941a9201c236b2f15afac18e1213 | github | libc | https://github.com/bminor/glibc/blob/d614a7539657941a9201c236b2f15afac18e1213/sysdeps/i386/i686/multiarch/strcmp-sse4.S | 361 | 420 |
bminor/glibc:sysdeps/i386/i686/multiarch/strcmp-sse4.S:11 | movl _nl_C_LC_CTYPE_tolower+128*4(,%ecx,4), %ecx
movl _nl_C_LC_CTYPE_tolower+128*4(,%edi,4), %edi
# endif
cmpl %ecx, %edi
#else
cmpb %cl, 5(%edx)
#endif
jne L(neq)
cmpl $0, %ecx
je L(eq)
#if defined USE_AS_STRNCMP || defined USE_AS_STRNCASECMP_L
cmp $6, REM
je L(eq)
#endif
movzbl 6(%eax), %ecx
#if defined USE... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/strcmp-sse4.S | LGPL-2.1 | d614a7539657941a9201c236b2f15afac18e1213 | github | libc | https://github.com/bminor/glibc/blob/d614a7539657941a9201c236b2f15afac18e1213/sysdeps/i386/i686/multiarch/strcmp-sse4.S | 401 | 460 |
bminor/glibc:sysdeps/i386/i686/multiarch/strcmp-sse4.S:12 | # ifdef PIC
movl _nl_C_LC_CTYPE_tolower@GOTOFF+128*4(%ebx,%ecx,4), %ecx
movl _nl_C_LC_CTYPE_tolower@GOTOFF+128*4(%ebx,%edi,4), %edi
# else
movl _nl_C_LC_CTYPE_tolower+128*4(,%ecx,4), %ecx
movl _nl_C_LC_CTYPE_tolower+128*4(,%edi,4), %edi
# endif
cmpl %ecx, %edi
#else
cmpb %cl, 7(%edx)
#endif
jne L(neq)
cmpl $0, ... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/strcmp-sse4.S | LGPL-2.1 | d614a7539657941a9201c236b2f15afac18e1213 | github | libc | https://github.com/bminor/glibc/blob/d614a7539657941a9201c236b2f15afac18e1213/sysdeps/i386/i686/multiarch/strcmp-sse4.S | 441 | 500 |
bminor/glibc:sysdeps/i386/i686/multiarch/strcmp-sse4.S:13 | sub %edx, %edi
sub %edx, %esi
testl %edx, %edx
jg L(crosspage)
L(loop):
movdqu (%esi,%edx), %xmm2
movdqu (%edi,%edx), %xmm1
TOLOWER (%xmm2, %xmm1)
pcmpistri $0x1a, %xmm2, %xmm1
jbe L(end)
#if defined USE_AS_STRNCMP || defined USE_AS_STRNCASECMP_L
sub $16, REM
jbe L(more16byteseq)
#endif
add $16, %edx
jle ... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/strcmp-sse4.S | LGPL-2.1 | d614a7539657941a9201c236b2f15afac18e1213 | github | libc | https://github.com/bminor/glibc/blob/d614a7539657941a9201c236b2f15afac18e1213/sysdeps/i386/i686/multiarch/strcmp-sse4.S | 481 | 540 |
bminor/glibc:sysdeps/i386/i686/multiarch/strcmp-sse4.S:14 | jle L(crosspage)
add %edx, %edi
add %edx, %esi
jmp L(check_offset)
.p2align 4
L(end):
jnc L(ret)
#if defined USE_AS_STRNCMP || defined USE_AS_STRNCASECMP_L
sub %ecx, REM
jbe L(more16byteseq)
#endif
lea (%ecx,%edx), %ecx
movzbl (%edi,%ecx), %eax
movzbl (%esi,%ecx), %ecx
#if defined USE_AS_STRCASECMP_L || defi... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/strcmp-sse4.S | LGPL-2.1 | d614a7539657941a9201c236b2f15afac18e1213 | github | libc | https://github.com/bminor/glibc/blob/d614a7539657941a9201c236b2f15afac18e1213/sysdeps/i386/i686/multiarch/strcmp-sse4.S | 521 | 580 |
bminor/glibc:sysdeps/i386/i686/multiarch/strcmp-sse4.S:15 | cfi_restore_state
L(more16byteseq):
POP (%esi)
# ifdef USE_AS_STRNCMP
POP (%edi)
# endif
#endif
L(eq):
xorl %eax, %eax
RETURN
L(neq):
mov $1, %eax
ja L(neq_bigger)
neg %eax
L(neq_bigger):
RETURN
L(less16bytes):
add $0xfefefeff, %ecx
jnc L(less4bytes)
#if defined USE_AS_STRCASECMP_L || defined USE_AS_STRNCAS... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/strcmp-sse4.S | LGPL-2.1 | d614a7539657941a9201c236b2f15afac18e1213 | github | libc | https://github.com/bminor/glibc/blob/d614a7539657941a9201c236b2f15afac18e1213/sysdeps/i386/i686/multiarch/strcmp-sse4.S | 561 | 620 |
bminor/glibc:sysdeps/i386/i686/multiarch/strcmp-sse4.S:16 | cmp %edi, %ecx
mov %ecx, %edi
#else
mov 4(%edx), %ecx
cmp 4(%eax), %ecx
#endif
jne L(more4bytes)
add $0xfefefeff, %ecx
jnc L(more4bytes)
#if defined USE_AS_STRCASECMP_L || defined USE_AS_STRNCASECMP_L
xor %edi, %ecx
#else
xor 4(%edx), %ecx
#endif
or $0xfefefeff, %ecx
add $1, %ecx
jnz L(more4bytes)
#if defin... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/strcmp-sse4.S | LGPL-2.1 | d614a7539657941a9201c236b2f15afac18e1213 | github | libc | https://github.com/bminor/glibc/blob/d614a7539657941a9201c236b2f15afac18e1213/sysdeps/i386/i686/multiarch/strcmp-sse4.S | 601 | 660 |
bminor/glibc:sysdeps/i386/i686/multiarch/strcmp-sse4.S:17 | #endif
jne L(neq)
cmpl $0, %ecx
je L(eq)
#if defined USE_AS_STRNCMP || defined USE_AS_STRNCASECMP_L
cmp $1, REM
je L(eq)
#endif
movzbl 1(%eax), %ecx
#if defined USE_AS_STRCASECMP_L || defined USE_AS_STRNCASECMP_L
movzbl 1(%edx), %edi
# ifdef PIC
movl _nl_C_LC_CTYPE_tolower@GOTOFF+128*4(%ebx,%ecx,4), %ecx
movl... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/strcmp-sse4.S | LGPL-2.1 | d614a7539657941a9201c236b2f15afac18e1213 | github | libc | https://github.com/bminor/glibc/blob/d614a7539657941a9201c236b2f15afac18e1213/sysdeps/i386/i686/multiarch/strcmp-sse4.S | 641 | 700 |
bminor/glibc:sysdeps/i386/i686/multiarch/strcmp-sse4.S:18 | movl _nl_C_LC_CTYPE_tolower+128*4(,%edi,4), %edi
# endif
cmpl %ecx, %edi
#else
cmpb %cl, 2(%edx)
#endif
jne L(neq)
cmpl $0, %ecx
je L(eq)
#if defined USE_AS_STRNCMP || defined USE_AS_STRNCASECMP_L
cmp $3, REM
je L(eq)
#endif
movzbl 3(%eax), %ecx
#if defined USE_AS_STRCASECMP_L || defined USE_AS_STRNCASECMP_L
... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/strcmp-sse4.S | LGPL-2.1 | d614a7539657941a9201c236b2f15afac18e1213 | github | libc | https://github.com/bminor/glibc/blob/d614a7539657941a9201c236b2f15afac18e1213/sysdeps/i386/i686/multiarch/strcmp-sse4.S | 681 | 740 |
bminor/glibc:sysdeps/i386/i686/multiarch/strcmp-sse4.S:19 | # ifdef PIC
movl _nl_C_LC_CTYPE_tolower@GOTOFF+128*4(%ebx,%ecx,4), %ecx
movl _nl_C_LC_CTYPE_tolower@GOTOFF+128*4(%ebx,%edi,4), %edi
# else
movl _nl_C_LC_CTYPE_tolower+128*4(,%ecx,4), %ecx
movl _nl_C_LC_CTYPE_tolower+128*4(,%edi,4), %edi
# endif
cmpl %ecx, %edi
#else
cmpb %cl, 4(%edx)
#endif
jne L(neq)
cmpl $0, ... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/strcmp-sse4.S | LGPL-2.1 | d614a7539657941a9201c236b2f15afac18e1213 | github | libc | https://github.com/bminor/glibc/blob/d614a7539657941a9201c236b2f15afac18e1213/sysdeps/i386/i686/multiarch/strcmp-sse4.S | 721 | 780 |
bminor/glibc:sysdeps/i386/i686/multiarch/strcmp-sse4.S:20 | je L(eq)
#endif
movzbl 6(%eax), %ecx
#if defined USE_AS_STRCASECMP_L || defined USE_AS_STRNCASECMP_L
movzbl 6(%edx), %edi
# ifdef PIC
movl _nl_C_LC_CTYPE_tolower@GOTOFF+128*4(%ebx,%ecx,4), %ecx
movl _nl_C_LC_CTYPE_tolower@GOTOFF+128*4(%ebx,%edi,4), %edi
# else
movl _nl_C_LC_CTYPE_tolower+128*4(,%ecx,4), %ecx
movl... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/strcmp-sse4.S | LGPL-2.1 | d614a7539657941a9201c236b2f15afac18e1213 | github | libc | https://github.com/bminor/glibc/blob/d614a7539657941a9201c236b2f15afac18e1213/sysdeps/i386/i686/multiarch/strcmp-sse4.S | 761 | 804 |
bminor/glibc:sysdeps/i386/i686/multiarch/strcmp-sse4.S:1 | /* strcmp with SSE4.2
Copyright (C) 2010-2019 Free Software Foundation, Inc.
Contributed by Intel Corporation.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by ... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/strcmp-sse4.S | LGPL-2.1 | 5a82c74822d3272df2f5929133680478c0cfb4bd | github | libc | https://github.com/bminor/glibc/blob/5a82c74822d3272df2f5929133680478c0cfb4bd/sysdeps/i386/i686/multiarch/strcmp-sse4.S | 1 | 60 |
bminor/glibc:sysdeps/i386/i686/multiarch/strcmp-sse4.S:1 | /* strcmp with SSE4.2
Copyright (C) 2010-2019 Free Software Foundation, Inc.
Contributed by Intel Corporation.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by ... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/strcmp-sse4.S | LGPL-2.1 | 04277e02d7f54d3582bebcf8386b317018cd5e1d | github | libc | https://github.com/bminor/glibc/blob/04277e02d7f54d3582bebcf8386b317018cd5e1d/sysdeps/i386/i686/multiarch/strcmp-sse4.S | 1 | 60 |
bminor/glibc:sysdeps/i386/i686/multiarch/strcmp-sse4.S:1 | /* strcmp with SSE4.2
Copyright (C) 2010-2018 Free Software Foundation, Inc.
Contributed by Intel Corporation.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by ... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/strcmp-sse4.S | LGPL-2.1 | 688903eb3ef01301d239ab753d309d45720610a7 | github | libc | https://github.com/bminor/glibc/blob/688903eb3ef01301d239ab753d309d45720610a7/sysdeps/i386/i686/multiarch/strcmp-sse4.S | 1 | 60 |
bminor/glibc:sysdeps/i386/i686/multiarch/strcmp-sse4.S:1 | /* strcmp with SSE4.2
Copyright (C) 2010-2017 Free Software Foundation, Inc.
Contributed by Intel Corporation.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by ... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/strcmp-sse4.S | LGPL-2.1 | bfff8b1becd7d01c074177df7196ab327cd8c844 | github | libc | https://github.com/bminor/glibc/blob/bfff8b1becd7d01c074177df7196ab327cd8c844/sysdeps/i386/i686/multiarch/strcmp-sse4.S | 1 | 60 |
bminor/glibc:sysdeps/i386/i686/multiarch/strcmp-sse4.S:1 | /* strcmp with SSE4.2
Copyright (C) 2010-2016 Free Software Foundation, Inc.
Contributed by Intel Corporation.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by ... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/strcmp-sse4.S | LGPL-2.1 | f7a9f785e547bd599dee496fd906a28bcb4ec7fe | github | libc | https://github.com/bminor/glibc/blob/f7a9f785e547bd599dee496fd906a28bcb4ec7fe/sysdeps/i386/i686/multiarch/strcmp-sse4.S | 1 | 60 |
bminor/glibc:sysdeps/i386/i686/multiarch/strcmp-sse4.S:1 | /* strcmp with SSE4.2
Copyright (C) 2010-2015 Free Software Foundation, Inc.
Contributed by Intel Corporation.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by ... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/strcmp-sse4.S | LGPL-2.1 | 890b7a4b33d482b5c768ab47d70758b80227e9bc | github | libc | https://github.com/bminor/glibc/blob/890b7a4b33d482b5c768ab47d70758b80227e9bc/sysdeps/i386/i686/multiarch/strcmp-sse4.S | 1 | 60 |
bminor/glibc:sysdeps/i386/i686/multiarch/strcmp.S:1 | /* Multiple versions of strcmp
All versions must be listed in ifunc-impl-list.c.
Copyright (C) 2010-2017 Free Software Foundation, Inc.
Contributed by Intel Corporation.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the term... | x86 | gas-like | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/strcmp.S | LGPL-2.1 | bfff8b1becd7d01c074177df7196ab327cd8c844 | github | libc | https://github.com/bminor/glibc/blob/bfff8b1becd7d01c074177df7196ab327cd8c844/sysdeps/i386/i686/multiarch/strcmp.S | 1 | 60 |
bminor/glibc:sysdeps/i386/i686/multiarch/strcmp.S:2 | # define __STRCMP_SSE4_2 __strncasecmp_l_sse4_2
#else
# define STRCMP strcmp
# define __GI_STRCMP __GI_strcmp
# define __STRCMP_IA32 __strcmp_ia32
# define __STRCMP_SSSE3 __strcmp_ssse3
# define __STRCMP_SSE4_2 __strcmp_sse4_2
#endif
/* Define multiple versions only for the definition in libc. Don't
define mu... | x86 | gas-like | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/strcmp.S | LGPL-2.1 | bfff8b1becd7d01c074177df7196ab327cd8c844 | github | libc | https://github.com/bminor/glibc/blob/bfff8b1becd7d01c074177df7196ab327cd8c844/sysdeps/i386/i686/multiarch/strcmp.S | 41 | 95 |
bminor/glibc:sysdeps/i386/i686/multiarch/strcmp.S:3 | # ifdef SHARED
# undef libc_hidden_builtin_def
/* IFUNC doesn't work with the hidden functions in shared library since
they will be called without setting up EBX needed for PLT which is
used by IFUNC. */
# define libc_hidden_builtin_def(name) \
.globl __GI_STRCMP; __GI_STRCMP = __STRCMP_IA32
# endif
#endif
#... | x86 | gas-like | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/strcmp.S | LGPL-2.1 | bfff8b1becd7d01c074177df7196ab327cd8c844 | github | libc | https://github.com/bminor/glibc/blob/bfff8b1becd7d01c074177df7196ab327cd8c844/sysdeps/i386/i686/multiarch/strcmp.S | 81 | 95 |
bminor/glibc:sysdeps/i386/i686/multiarch/strcmp.S:1 | /* Multiple versions of strcmp
All versions must be listed in ifunc-impl-list.c.
Copyright (C) 2010-2016 Free Software Foundation, Inc.
Contributed by Intel Corporation.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the term... | x86 | gas-like | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/strcmp.S | LGPL-2.1 | f7a9f785e547bd599dee496fd906a28bcb4ec7fe | github | libc | https://github.com/bminor/glibc/blob/f7a9f785e547bd599dee496fd906a28bcb4ec7fe/sysdeps/i386/i686/multiarch/strcmp.S | 1 | 60 |
bminor/glibc:sysdeps/i386/i686/multiarch/strcmp.S:1 | /* Multiple versions of strcmp
All versions must be listed in ifunc-impl-list.c.
Copyright (C) 2010-2015 Free Software Foundation, Inc.
Contributed by Intel Corporation.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the term... | x86 | gas-like | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/strcmp.S | LGPL-2.1 | 1aee37a22e3977de7a89e734e0a1e112f52045f2 | github | libc | https://github.com/bminor/glibc/blob/1aee37a22e3977de7a89e734e0a1e112f52045f2/sysdeps/i386/i686/multiarch/strcmp.S | 1 | 60 |
bminor/glibc:sysdeps/i386/i686/multiarch/strcmp.S:1 | /* Multiple versions of strcmp
All versions must be listed in ifunc-impl-list.c.
Copyright (C) 2010-2015 Free Software Foundation, Inc.
Contributed by Intel Corporation.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the term... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/strcmp.S | LGPL-2.1 | 890b7a4b33d482b5c768ab47d70758b80227e9bc | github | libc | https://github.com/bminor/glibc/blob/890b7a4b33d482b5c768ab47d70758b80227e9bc/sysdeps/i386/i686/multiarch/strcmp.S | 1 | 60 |
bminor/glibc:sysdeps/i386/i686/multiarch/strcmp.S:2 | # define __STRCMP_SSE4_2 __strncasecmp_l_sse4_2
#else
# define STRCMP strcmp
# define __GI_STRCMP __GI_strcmp
# define __STRCMP_IA32 __strcmp_ia32
# define __STRCMP_SSSE3 __strcmp_ssse3
# define __STRCMP_SSE4_2 __strcmp_sse4_2
#endif
/* Define multiple versions only for the definition in libc. Don't
define mu... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/strcmp.S | LGPL-2.1 | 890b7a4b33d482b5c768ab47d70758b80227e9bc | github | libc | https://github.com/bminor/glibc/blob/890b7a4b33d482b5c768ab47d70758b80227e9bc/sysdeps/i386/i686/multiarch/strcmp.S | 41 | 100 |
bminor/glibc:sysdeps/i386/i686/multiarch/strcmp.S:3 | ENTRY(STRCMP)
.type STRCMP, @gnu_indirect_function
cmpl $0, KIND_OFFSET+__cpu_features
jne 1f
call __init_cpu_features
1: leal __STRCMP_IA32, %eax
testl $bit_SSSE3, CPUID_OFFSET+index_SSSE3+__cpu_features
jz 2f
leal __STRCMP_SSSE3, %eax
testl $bit_SSE4_2, CPUID_OFFSET+index_SSE4_2+__cpu_features
jz 2f
testl $... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/strcmp.S | LGPL-2.1 | 890b7a4b33d482b5c768ab47d70758b80227e9bc | github | libc | https://github.com/bminor/glibc/blob/890b7a4b33d482b5c768ab47d70758b80227e9bc/sysdeps/i386/i686/multiarch/strcmp.S | 81 | 124 |
bminor/glibc:sysdeps/i386/i686/multiarch/strcpy-ia32.S:1 | /* strcpy optimized for i686.
All versions must be listed in ifunc-impl-list.c.
Copyright (C) 2017-2026 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
... | x86 | gas-like | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/strcpy-ia32.S | LGPL-2.1 | 04e750e75b73957cf1c791535a3f4319534a52fc | github | libc | https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/i386/i686/multiarch/strcpy-ia32.S | 1 | 33 |
bminor/glibc:sysdeps/i386/i686/multiarch/strcpy-ia32.S:1 | /* strcpy optimized for i686.
All versions must be listed in ifunc-impl-list.c.
Copyright (C) 2017-2025 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
... | x86 | gas-like | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/strcpy-ia32.S | LGPL-2.1 | 2642002380aafb71a1d3b569b6d7ebeab3284816 | github | libc | https://github.com/bminor/glibc/blob/2642002380aafb71a1d3b569b6d7ebeab3284816/sysdeps/i386/i686/multiarch/strcpy-ia32.S | 1 | 33 |
bminor/glibc:sysdeps/i386/i686/multiarch/strcpy-ia32.S:1 | /* strcpy optimized for i686.
All versions must be listed in ifunc-impl-list.c.
Copyright (C) 2017-2024 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
... | x86 | gas-like | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/strcpy-ia32.S | LGPL-2.1 | dff8da6b3e89b986bb7f6b1ec18cf65d5972e307 | github | libc | https://github.com/bminor/glibc/blob/dff8da6b3e89b986bb7f6b1ec18cf65d5972e307/sysdeps/i386/i686/multiarch/strcpy-ia32.S | 1 | 33 |
bminor/glibc:sysdeps/i386/i686/multiarch/strcpy-ia32.S:1 | /* strcpy optimized for i686.
All versions must be listed in ifunc-impl-list.c.
Copyright (C) 2017-2023 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
... | x86 | gas-like | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/strcpy-ia32.S | LGPL-2.1 | 6d7e8eda9b85b08f207a6dc6f187e94e4817270f | github | libc | https://github.com/bminor/glibc/blob/6d7e8eda9b85b08f207a6dc6f187e94e4817270f/sysdeps/i386/i686/multiarch/strcpy-ia32.S | 1 | 33 |
bminor/glibc:sysdeps/i386/i686/multiarch/strcpy-ia32.S:1 | /* strcpy optimized for i686.
All versions must be listed in ifunc-impl-list.c.
Copyright (C) 2017-2022 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
... | x86 | gas-like | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/strcpy-ia32.S | LGPL-2.1 | 581c785bf31bc74430320c7856bbfa3875d025fe | github | libc | https://github.com/bminor/glibc/blob/581c785bf31bc74430320c7856bbfa3875d025fe/sysdeps/i386/i686/multiarch/strcpy-ia32.S | 1 | 33 |
bminor/glibc:sysdeps/i386/i686/multiarch/strcpy-ia32.S:1 | /* strcpy optimized for i686.
All versions must be listed in ifunc-impl-list.c.
Copyright (C) 2017-2021 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
... | x86 | gas-like | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/strcpy-ia32.S | LGPL-2.1 | 2b778ceb4010c28d70de9b8eab20e8d88eed586b | github | libc | https://github.com/bminor/glibc/blob/2b778ceb4010c28d70de9b8eab20e8d88eed586b/sysdeps/i386/i686/multiarch/strcpy-ia32.S | 1 | 33 |
bminor/glibc:sysdeps/i386/i686/multiarch/strcpy-ia32.S:1 | /* strcpy optimized for i686.
All versions must be listed in ifunc-impl-list.c.
Copyright (C) 2017-2020 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
... | x86 | gas-like | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/strcpy-ia32.S | LGPL-2.1 | d614a7539657941a9201c236b2f15afac18e1213 | github | libc | https://github.com/bminor/glibc/blob/d614a7539657941a9201c236b2f15afac18e1213/sysdeps/i386/i686/multiarch/strcpy-ia32.S | 1 | 33 |
bminor/glibc:sysdeps/i386/i686/multiarch/strcpy-ia32.S:1 | /* strcpy optimized for i686.
All versions must be listed in ifunc-impl-list.c.
Copyright (C) 2017-2019 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
... | x86 | gas-like | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/strcpy-ia32.S | LGPL-2.1 | 5a82c74822d3272df2f5929133680478c0cfb4bd | github | libc | https://github.com/bminor/glibc/blob/5a82c74822d3272df2f5929133680478c0cfb4bd/sysdeps/i386/i686/multiarch/strcpy-ia32.S | 1 | 33 |
bminor/glibc:sysdeps/i386/i686/multiarch/strcpy-ia32.S:1 | /* strcpy optimized for i686.
All versions must be listed in ifunc-impl-list.c.
Copyright (C) 2017-2019 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
... | x86 | gas-like | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/strcpy-ia32.S | LGPL-2.1 | 04277e02d7f54d3582bebcf8386b317018cd5e1d | github | libc | https://github.com/bminor/glibc/blob/04277e02d7f54d3582bebcf8386b317018cd5e1d/sysdeps/i386/i686/multiarch/strcpy-ia32.S | 1 | 33 |
bminor/glibc:sysdeps/i386/i686/multiarch/strcpy-ia32.S:1 | /* strcpy optimized for i686.
All versions must be listed in ifunc-impl-list.c.
Copyright (C) 2017-2018 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
... | x86 | gas-like | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/strcpy-ia32.S | LGPL-2.1 | 688903eb3ef01301d239ab753d309d45720610a7 | github | libc | https://github.com/bminor/glibc/blob/688903eb3ef01301d239ab753d309d45720610a7/sysdeps/i386/i686/multiarch/strcpy-ia32.S | 1 | 33 |
bminor/glibc:sysdeps/i386/i686/multiarch/strcpy-sse2.S:1 | /* strcpy with SSE2 and unaligned load
Copyright (C) 2011-2026 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Fo... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/strcpy-sse2.S | LGPL-2.1 | 04e750e75b73957cf1c791535a3f4319534a52fc | github | libc | https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/i386/i686/multiarch/strcpy-sse2.S | 1 | 60 |
bminor/glibc:sysdeps/i386/i686/multiarch/strcpy-sse2.S:2 | # define STR2 STR1+4
# define LEN STR2+4
# ifdef USE_AS_STRNCPY
# define PARMS 16
# define ENTRANCE PUSH(%ebx); PUSH(%esi); PUSH(%edi)
# define RETURN POP(%edi); POP(%esi); POP(%ebx); ret; \
CFI_PUSH(%ebx); CFI_PUSH(%esi); CFI_PUSH(%edi);
# ifdef PIC
# define JMPTBL(I, B) I - B
/* Load an entry in ... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/strcpy-sse2.S | LGPL-2.1 | 04e750e75b73957cf1c791535a3f4319534a52fc | github | libc | https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/i386/i686/multiarch/strcpy-sse2.S | 41 | 100 |
bminor/glibc:sysdeps/i386/i686/multiarch/strcpy-sse2.S:3 | ENTRANCE
mov STR1(%esp), %edi
mov STR2(%esp), %esi
movl LEN(%esp), %ebx
test %ebx, %ebx
jz L(ExitZero)
mov %esi, %ecx
# ifndef USE_AS_STPCPY
mov %edi, %eax /* save result */
# endif
and $15, %ecx
jz L(SourceStringAlignmentZero)
and $-16, %esi
pxor %xmm0, %xmm0
pxor %xmm1, %xmm1
pcmpeqb (%esi), %xmm... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/strcpy-sse2.S | LGPL-2.1 | 04e750e75b73957cf1c791535a3f4319534a52fc | github | libc | https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/i386/i686/multiarch/strcpy-sse2.S | 81 | 140 |
bminor/glibc:sysdeps/i386/i686/multiarch/strcpy-sse2.S:4 | # endif
test %edx, %edx
jnz L(CopyFrom1To32Bytes)
movdqu (%esi, %ecx), %xmm1 /* copy 16 bytes */
movdqu %xmm1, (%edi)
sub %ecx, %edi
/* If source address alignment != destination address alignment */
.p2align 4
L(Unalign16Both):
mov $16, %ecx
movdqa (%esi, %ecx), %xmm1
movaps 16(%esi, %ecx), %xmm2
movdqu... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/strcpy-sse2.S | LGPL-2.1 | 04e750e75b73957cf1c791535a3f4319534a52fc | github | libc | https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/i386/i686/multiarch/strcpy-sse2.S | 121 | 180 |
bminor/glibc:sysdeps/i386/i686/multiarch/strcpy-sse2.S:5 | jbe L(CopyFrom1To16BytesCase2OrCase3)
test %edx, %edx
jnz L(CopyFrom1To16BytesUnalignedXmm4)
movaps 16(%esi, %ecx), %xmm1
movdqu %xmm4, (%edi, %ecx)
pcmpeqb %xmm1, %xmm0
pmovmskb %xmm0, %edx
add $16, %ecx
sub $16, %ebx
jbe L(CopyFrom1To16BytesCase2OrCase3)
test %edx, %edx
jnz L(CopyFrom1To16BytesUnalignedXm... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/strcpy-sse2.S | LGPL-2.1 | 04e750e75b73957cf1c791535a3f4319534a52fc | github | libc | https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/i386/i686/multiarch/strcpy-sse2.S | 161 | 220 |
bminor/glibc:sysdeps/i386/i686/multiarch/strcpy-sse2.S:6 | lea 128(%ebx, %edx), %ebx
L(Unaligned64Loop):
movaps (%esi), %xmm2
movaps %xmm2, %xmm4
movaps 16(%esi), %xmm5
movaps 32(%esi), %xmm3
movaps %xmm3, %xmm6
movaps 48(%esi), %xmm7
pminub %xmm5, %xmm2
pminub %xmm7, %xmm3
pminub %xmm2, %xmm3
pcmpeqb %xmm0, %xmm3
pmovmskb %xmm3, %edx
sub $64, %ebx
jbe L(Unaligne... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/strcpy-sse2.S | LGPL-2.1 | 04e750e75b73957cf1c791535a3f4319534a52fc | github | libc | https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/i386/i686/multiarch/strcpy-sse2.S | 201 | 260 |
bminor/glibc:sysdeps/i386/i686/multiarch/strcpy-sse2.S:7 | L(Unaligned64Leave):
pxor %xmm1, %xmm1
pcmpeqb %xmm4, %xmm0
pcmpeqb %xmm5, %xmm1
pmovmskb %xmm0, %edx
pmovmskb %xmm1, %ecx
test %edx, %edx
jnz L(CopyFrom1To16BytesUnaligned_0)
test %ecx, %ecx
jnz L(CopyFrom1To16BytesUnaligned_16)
pcmpeqb %xmm6, %xmm0
pcmpeqb %xmm7, %xmm1
pmovmskb %xmm0, %edx
pmovmskb %xm... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/strcpy-sse2.S | LGPL-2.1 | 04e750e75b73957cf1c791535a3f4319534a52fc | github | libc | https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/i386/i686/multiarch/strcpy-sse2.S | 241 | 300 |
bminor/glibc:sysdeps/i386/i686/multiarch/strcpy-sse2.S:8 | cmp $16, %ebx
jbe L(CopyFrom1To16BytesTail1Case2OrCase3)
# else
cmp $17, %ebx
jbe L(CopyFrom1To16BytesTail1Case2OrCase3)
# endif
test %edx, %edx
jnz L(CopyFrom1To16BytesTail1)
pcmpeqb 16(%esi), %xmm0
movdqu %xmm1, (%edi)
pmovmskb %xmm0, %edx
# ifdef USE_AS_STPCPY
cmp $32, %ebx
jbe L(CopyFrom1To32Bytes1Case2O... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/strcpy-sse2.S | LGPL-2.1 | 04e750e75b73957cf1c791535a3f4319534a52fc | github | libc | https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/i386/i686/multiarch/strcpy-sse2.S | 281 | 340 |
bminor/glibc:sysdeps/i386/i686/multiarch/strcpy-sse2.S:9 | bsf %edx, %edx
BRANCH_TO_JMPTBL_ENTRY (L(ExitTable), %edx, 4)
.p2align 4
L(CopyFrom1To32Bytes):
sub %ecx, %ebx
bsf %edx, %edx
add %ecx, %esi
add $16, %edx
sub %ecx, %edx
BRANCH_TO_JMPTBL_ENTRY (L(ExitTable), %edx, 4)
.p2align 4
L(CopyFrom1To16BytesUnaligned_0):
bsf %edx, %edx
# ifdef USE_AS_STPCPY
lea (%ed... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/strcpy-sse2.S | LGPL-2.1 | 04e750e75b73957cf1c791535a3f4319534a52fc | github | libc | https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/i386/i686/multiarch/strcpy-sse2.S | 321 | 380 |
bminor/glibc:sysdeps/i386/i686/multiarch/strcpy-sse2.S:10 | movdqu %xmm4, (%edi)
movdqu %xmm5, 16(%edi)
# ifdef USE_AS_STPCPY
lea 32(%edi, %edx), %eax
# endif
movdqu %xmm6, 32(%edi)
add $31, %ebx
sub %edx, %ebx
lea 33(%edi, %edx), %edi
jmp L(StrncpyFillTailWithZero)
.p2align 4
L(CopyFrom1To16BytesUnalignedXmm6):
movdqu %xmm6, (%edi, %ecx)
jmp L(CopyFrom1To16BytesXmmE... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/strcpy-sse2.S | LGPL-2.1 | 04e750e75b73957cf1c791535a3f4319534a52fc | github | libc | https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/i386/i686/multiarch/strcpy-sse2.S | 361 | 420 |
bminor/glibc:sysdeps/i386/i686/multiarch/strcpy-sse2.S:11 | /* Case2 */
.p2align 4
L(CopyFrom1To16BytesCase2):
add $16, %ebx
add %ecx, %edi
add %ecx, %esi
bsf %edx, %edx
cmp %ebx, %edx
jb L(CopyFrom1To16BytesExit)
BRANCH_TO_JMPTBL_ENTRY (L(ExitStrncpyTable), %ebx, 4)
.p2align 4
L(CopyFrom1To32BytesCase2):
sub %ecx, %ebx
add %ecx, %esi
bsf %edx, %edx
add $16, %edx... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/strcpy-sse2.S | LGPL-2.1 | 04e750e75b73957cf1c791535a3f4319534a52fc | github | libc | https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/i386/i686/multiarch/strcpy-sse2.S | 401 | 460 |
bminor/glibc:sysdeps/i386/i686/multiarch/strcpy-sse2.S:12 | L(CopyFrom1To16BytesCase2OrCase3):
test %edx, %edx
jnz L(CopyFrom1To16BytesCase2)
L(CopyFrom1To16BytesCase3):
add $16, %ebx
add %ecx, %edi
add %ecx, %esi
BRANCH_TO_JMPTBL_ENTRY (L(ExitStrncpyTable), %ebx, 4)
.p2align 4
L(CopyFrom1To32BytesCase2OrCase3):
test %edx, %edx
jnz L(CopyFrom1To32BytesCase2)
sub %ecx... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/strcpy-sse2.S | LGPL-2.1 | 04e750e75b73957cf1c791535a3f4319534a52fc | github | libc | https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/i386/i686/multiarch/strcpy-sse2.S | 441 | 500 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.