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/memchr.S:1 | /* Multiple versions of memchr
All versions must be listed in ifunc-impl-list.c.
Copyright (C) 2011-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/memchr.S | LGPL-2.1 | 1aee37a22e3977de7a89e734e0a1e112f52045f2 | github | libc | https://github.com/bminor/glibc/blob/1aee37a22e3977de7a89e734e0a1e112f52045f2/sysdeps/i386/i686/multiarch/memchr.S | 1 | 60 |
bminor/glibc:sysdeps/i386/i686/multiarch/memchr.S:1 | /* Multiple versions of memchr
All versions must be listed in ifunc-impl-list.c.
Copyright (C) 2011-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/memchr.S | LGPL-2.1 | 890b7a4b33d482b5c768ab47d70758b80227e9bc | github | libc | https://github.com/bminor/glibc/blob/890b7a4b33d482b5c768ab47d70758b80227e9bc/sysdeps/i386/i686/multiarch/memchr.S | 1 | 60 |
bminor/glibc:sysdeps/i386/i686/multiarch/memchr.S:2 | call __init_cpu_features
1: testl $bit_SSE2, CPUID_OFFSET+index_SSE2+__cpu_features@GOTOFF(%ebx)
jz 2f
testl $bit_Slow_BSF, FEATURE_OFFSET+index_Slow_BSF+__cpu_features@GOTOFF(%ebx)
jz 3f
leal __memchr_sse2@GOTOFF(%ebx), %eax
popl %ebx
CFI_POP (%ebx)
ret
CFI_PUSH (%ebx)
2: leal __memchr_ia32@GOTOFF(%ebx), %... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/memchr.S | LGPL-2.1 | 890b7a4b33d482b5c768ab47d70758b80227e9bc | github | libc | https://github.com/bminor/glibc/blob/890b7a4b33d482b5c768ab47d70758b80227e9bc/sysdeps/i386/i686/multiarch/memchr.S | 41 | 89 |
bminor/glibc:sysdeps/i386/i686/multiarch/memcmp-ia32.S:1 | /* memcmp optimized for i686.
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
License as published by the Free Software Foundation;... | x86 | gas-like | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/memcmp-ia32.S | LGPL-2.1 | 04e750e75b73957cf1c791535a3f4319534a52fc | github | libc | https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/i386/i686/multiarch/memcmp-ia32.S | 1 | 42 |
bminor/glibc:sysdeps/i386/i686/multiarch/memcmp-ia32.S:1 | /* memcmp optimized for i686.
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
License as published by the Free Software Foundation;... | x86 | gas-like | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/memcmp-ia32.S | LGPL-2.1 | 2642002380aafb71a1d3b569b6d7ebeab3284816 | github | libc | https://github.com/bminor/glibc/blob/2642002380aafb71a1d3b569b6d7ebeab3284816/sysdeps/i386/i686/multiarch/memcmp-ia32.S | 1 | 42 |
bminor/glibc:sysdeps/i386/i686/multiarch/memcmp-ia32.S:1 | /* memcmp optimized for i686.
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
License as published by the Free Software Foundation;... | x86 | gas-like | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/memcmp-ia32.S | LGPL-2.1 | dff8da6b3e89b986bb7f6b1ec18cf65d5972e307 | github | libc | https://github.com/bminor/glibc/blob/dff8da6b3e89b986bb7f6b1ec18cf65d5972e307/sysdeps/i386/i686/multiarch/memcmp-ia32.S | 1 | 42 |
bminor/glibc:sysdeps/i386/i686/multiarch/memcmp-ia32.S:1 | /* memcmp optimized for i686.
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
License as published by the Free Software Foundation;... | x86 | gas-like | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/memcmp-ia32.S | LGPL-2.1 | 6d7e8eda9b85b08f207a6dc6f187e94e4817270f | github | libc | https://github.com/bminor/glibc/blob/6d7e8eda9b85b08f207a6dc6f187e94e4817270f/sysdeps/i386/i686/multiarch/memcmp-ia32.S | 1 | 42 |
bminor/glibc:sysdeps/i386/i686/multiarch/memcmp-ia32.S:1 | /* memcmp optimized for i686.
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
License as published by the Free Software Foundation;... | x86 | gas-like | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/memcmp-ia32.S | LGPL-2.1 | 581c785bf31bc74430320c7856bbfa3875d025fe | github | libc | https://github.com/bminor/glibc/blob/581c785bf31bc74430320c7856bbfa3875d025fe/sysdeps/i386/i686/multiarch/memcmp-ia32.S | 1 | 42 |
bminor/glibc:sysdeps/i386/i686/multiarch/memcmp-ia32.S:1 | /* memcmp optimized for i686.
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
License as published by the Free Software Foundation;... | x86 | gas-like | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/memcmp-ia32.S | LGPL-2.1 | 9894127d202d8c0c821d852658057a03ba3cc3d2 | github | libc | https://github.com/bminor/glibc/blob/9894127d202d8c0c821d852658057a03ba3cc3d2/sysdeps/i386/i686/multiarch/memcmp-ia32.S | 1 | 42 |
bminor/glibc:sysdeps/i386/i686/multiarch/memcmp-ia32.S:1 | /* memcmp optimized for i686.
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
License as published by the Free Software Foundation;... | x86 | gas-like | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/memcmp-ia32.S | LGPL-2.1 | 44829b3ddb64e99e37343a0f25b2c082387d31a5 | github | libc | https://github.com/bminor/glibc/blob/44829b3ddb64e99e37343a0f25b2c082387d31a5/sysdeps/i386/i686/multiarch/memcmp-ia32.S | 1 | 38 |
bminor/glibc:sysdeps/i386/i686/multiarch/memcmp-ia32.S:1 | /* memcmp optimized for i686.
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
License as published by the Free Software Foundation;... | x86 | gas-like | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/memcmp-ia32.S | LGPL-2.1 | 2b778ceb4010c28d70de9b8eab20e8d88eed586b | github | libc | https://github.com/bminor/glibc/blob/2b778ceb4010c28d70de9b8eab20e8d88eed586b/sysdeps/i386/i686/multiarch/memcmp-ia32.S | 1 | 35 |
bminor/glibc:sysdeps/i386/i686/multiarch/memcmp-ia32.S:1 | /* memcmp optimized for i686.
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
License as published by the Free Software Foundation;... | x86 | gas-like | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/memcmp-ia32.S | LGPL-2.1 | d614a7539657941a9201c236b2f15afac18e1213 | github | libc | https://github.com/bminor/glibc/blob/d614a7539657941a9201c236b2f15afac18e1213/sysdeps/i386/i686/multiarch/memcmp-ia32.S | 1 | 35 |
bminor/glibc:sysdeps/i386/i686/multiarch/memcmp-ia32.S:1 | /* memcmp optimized for i686.
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
License as published by the Free Software Foundation;... | x86 | gas-like | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/memcmp-ia32.S | LGPL-2.1 | 5a82c74822d3272df2f5929133680478c0cfb4bd | github | libc | https://github.com/bminor/glibc/blob/5a82c74822d3272df2f5929133680478c0cfb4bd/sysdeps/i386/i686/multiarch/memcmp-ia32.S | 1 | 35 |
bminor/glibc:sysdeps/i386/i686/multiarch/memcmp-ia32.S:1 | /* memcmp optimized for i686.
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
License as published by the Free Software Foundation;... | x86 | gas-like | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/memcmp-ia32.S | LGPL-2.1 | 04277e02d7f54d3582bebcf8386b317018cd5e1d | github | libc | https://github.com/bminor/glibc/blob/04277e02d7f54d3582bebcf8386b317018cd5e1d/sysdeps/i386/i686/multiarch/memcmp-ia32.S | 1 | 35 |
bminor/glibc:sysdeps/i386/i686/multiarch/memcmp-ia32.S:1 | /* memcmp optimized for i686.
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
License as published by the Free Software Foundation;... | x86 | gas-like | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/memcmp-ia32.S | LGPL-2.1 | 688903eb3ef01301d239ab753d309d45720610a7 | github | libc | https://github.com/bminor/glibc/blob/688903eb3ef01301d239ab753d309d45720610a7/sysdeps/i386/i686/multiarch/memcmp-ia32.S | 1 | 35 |
bminor/glibc:sysdeps/i386/i686/multiarch/memcmp-ia32.S:1 | /* memcmp optimized for i686.
Copyright (C) 2017 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; eith... | x86 | gas-like | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/memcmp-ia32.S | LGPL-2.1 | 973da22a356ed072133562e6f1ecd833c31fa9a0 | github | libc | https://github.com/bminor/glibc/blob/973da22a356ed072133562e6f1ecd833c31fa9a0/sysdeps/i386/i686/multiarch/memcmp-ia32.S | 1 | 35 |
bminor/glibc:sysdeps/i386/i686/multiarch/memcmp-sse4.S:1 | /* memcmp with SSE4.2, wmemcmp 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 Softwar... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/memcmp-sse4.S | LGPL-2.1 | 04e750e75b73957cf1c791535a3f4319534a52fc | github | libc | https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/i386/i686/multiarch/memcmp-sse4.S | 1 | 60 |
bminor/glibc:sysdeps/i386/i686/multiarch/memcmp-sse4.S:2 | # define LEN BLK2 + 4
# define RETURN POP (%ebx); ret; CFI_PUSH (%ebx)
# ifdef PIC
# define JMPTBL(I, B) I - B
/* Load an entry in a jump table into EBX and branch to it. TABLE is a
jump table with relative offsets. INDEX is a register contains the
index into the jump table. SCALE is the scale of INDEX. */
#... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/memcmp-sse4.S | LGPL-2.1 | 04e750e75b73957cf1c791535a3f4319534a52fc | github | libc | https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/i386/i686/multiarch/memcmp-sse4.S | 41 | 100 |
bminor/glibc:sysdeps/i386/i686/multiarch/memcmp-sse4.S:3 | movl BLK2(%esp), %edx
movl LEN(%esp), %ecx
# ifdef USE_AS_WMEMCMP
shl $2, %ecx
test %ecx, %ecx
jz L(return0)
# else
cmp $1, %ecx
jbe L(less1bytes)
# endif
pxor %xmm0, %xmm0
cmp $64, %ecx
ja L(64bytesormore)
cmp $8, %ecx
# ifndef USE_AS_WMEMCMP
PUSH (%ebx)
jb L(less8bytes)
# else
jb L(less8bytes)
PUSH (... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/memcmp-sse4.S | LGPL-2.1 | 04e750e75b73957cf1c791535a3f4319534a52fc | github | libc | https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/i386/i686/multiarch/memcmp-sse4.S | 81 | 140 |
bminor/glibc:sysdeps/i386/i686/multiarch/memcmp-sse4.S:4 | cmp $2, %ecx
jz L(0bytes)
mov 2(%eax), %bl
cmpb 2(%edx), %bl
jne L(nonzero)
cmp $3, %ecx
jz L(0bytes)
mov 3(%eax), %bl
cmpb 3(%edx), %bl
jne L(nonzero)
cmp $4, %ecx
jz L(0bytes)
mov 4(%eax), %bl
cmpb 4(%edx), %bl
jne L(nonzero)
cmp $5, %ecx
jz L(0bytes)
mov 5(%eax), %bl
cmpb 5(%edx), %bl
jne L... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/memcmp-sse4.S | LGPL-2.1 | 04e750e75b73957cf1c791535a3f4319534a52fc | github | libc | https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/i386/i686/multiarch/memcmp-sse4.S | 121 | 180 |
bminor/glibc:sysdeps/i386/i686/multiarch/memcmp-sse4.S:5 | L(above):
ret
CFI_PUSH (%ebx)
# endif
.p2align 4
L(0bytes):
POP (%ebx)
xor %eax, %eax
ret
# ifdef USE_AS_WMEMCMP
/* for wmemcmp, case N == 1 */
.p2align 4
L(less8bytes):
mov (%eax), %ecx
cmp (%edx), %ecx
je L(return0)
mov $1, %eax
jg L(find_diff_bigger)
neg %eax
ret
.p2align 4
L(find_diff_bigger):
... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/memcmp-sse4.S | LGPL-2.1 | 04e750e75b73957cf1c791535a3f4319534a52fc | github | libc | https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/i386/i686/multiarch/memcmp-sse4.S | 161 | 220 |
bminor/glibc:sysdeps/i386/i686/multiarch/memcmp-sse4.S:6 | movzbl (%edx), %edx
sub %edx, %eax
ret
.p2align 4
L(0bytesend):
xor %eax, %eax
ret
# endif
.p2align 4
L(64bytesormore):
PUSH (%ebx)
mov %ecx, %ebx
mov $64, %ecx
sub $64, %ebx
L(64bytesormore_loop):
movdqu (%eax), %xmm1
movdqu (%edx), %xmm2
pxor %xmm1, %xmm2
ptest %xmm2, %xmm0
jnc L(find_16diff)
movdqu... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/memcmp-sse4.S | LGPL-2.1 | 04e750e75b73957cf1c791535a3f4319534a52fc | github | libc | https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/i386/i686/multiarch/memcmp-sse4.S | 201 | 260 |
bminor/glibc:sysdeps/i386/i686/multiarch/memcmp-sse4.S:7 | add %ecx, %edx
sub %ecx, %ebx
jae L(64bytesormore_loop)
add %ebx, %ecx
add %ecx, %edx
add %ecx, %eax
BRANCH_TO_JMPTBL_ENTRY(L(table_64bytes), %ecx, 4)
# ifdef USE_AS_WMEMCMP
/* Label needs only for table_64bytes filling */
L(unreal_case):
/* no code here */
# endif
.p2align 4
L(find_16diff):
sub $16, %ecx
L(... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/memcmp-sse4.S | LGPL-2.1 | 04e750e75b73957cf1c791535a3f4319534a52fc | github | libc | https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/i386/i686/multiarch/memcmp-sse4.S | 241 | 300 |
bminor/glibc:sysdeps/i386/i686/multiarch/memcmp-sse4.S:8 | mov -8(%edx), %ebx
cmp %ebx, %ecx
jne L(find_diff)
L(4bytes):
mov -4(%eax), %ecx
mov -4(%edx), %ebx
cmp %ebx, %ecx
mov $0, %eax
jne L(find_diff)
RETURN
# else
.p2align 4
L(16bytes):
mov -16(%eax), %ecx
cmp -16(%edx), %ecx
jne L(find_diff)
L(12bytes):
mov -12(%eax), %ecx
cmp -12(%edx), %ecx
jne L(find_dif... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/memcmp-sse4.S | LGPL-2.1 | 04e750e75b73957cf1c791535a3f4319534a52fc | github | libc | https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/i386/i686/multiarch/memcmp-sse4.S | 281 | 340 |
bminor/glibc:sysdeps/i386/i686/multiarch/memcmp-sse4.S:9 | jnc L(less16bytes)
L(33bytes):
movdqu -33(%eax), %xmm1
movdqu -33(%edx), %xmm2
mov $-33, %ebx
pxor %xmm1, %xmm2
ptest %xmm2, %xmm0
jnc L(less16bytes)
L(17bytes):
mov -17(%eax), %ecx
mov -17(%edx), %ebx
cmp %ebx, %ecx
jne L(find_diff)
L(13bytes):
mov -13(%eax), %ecx
mov -13(%edx), %ebx
cmp %ebx, %ecx
jne L... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/memcmp-sse4.S | LGPL-2.1 | 04e750e75b73957cf1c791535a3f4319534a52fc | github | libc | https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/i386/i686/multiarch/memcmp-sse4.S | 321 | 380 |
bminor/glibc:sysdeps/i386/i686/multiarch/memcmp-sse4.S:10 | ptest %xmm2, %xmm0
jnc L(less16bytes)
L(34bytes):
mov $-34, %ebx
movdqu -34(%eax), %xmm1
movdqu -34(%edx), %xmm2
pxor %xmm1, %xmm2
ptest %xmm2, %xmm0
jnc L(less16bytes)
L(18bytes):
mov -18(%eax), %ecx
mov -18(%edx), %ebx
cmp %ebx, %ecx
jne L(find_diff)
L(14bytes):
mov -14(%eax), %ecx
mov -14(%edx), %ebx
c... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/memcmp-sse4.S | LGPL-2.1 | 04e750e75b73957cf1c791535a3f4319534a52fc | github | libc | https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/i386/i686/multiarch/memcmp-sse4.S | 361 | 420 |
bminor/glibc:sysdeps/i386/i686/multiarch/memcmp-sse4.S:11 | L(51bytes):
mov $-51, %ebx
movdqu -51(%eax), %xmm1
movdqu -51(%edx), %xmm2
pxor %xmm1, %xmm2
ptest %xmm2, %xmm0
jnc L(less16bytes)
L(35bytes):
mov $-35, %ebx
movdqu -35(%eax), %xmm1
movdqu -35(%edx), %xmm2
pxor %xmm1, %xmm2
ptest %xmm2, %xmm0
jnc L(less16bytes)
L(19bytes):
movl -19(%eax), %ecx
movl -19(%e... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/memcmp-sse4.S | LGPL-2.1 | 04e750e75b73957cf1c791535a3f4319534a52fc | github | libc | https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/i386/i686/multiarch/memcmp-sse4.S | 401 | 460 |
bminor/glibc:sysdeps/i386/i686/multiarch/memcmp-sse4.S:12 | jne L(end)
L(1bytes):
movzbl -1(%eax), %eax
cmpb -1(%edx), %al
mov $0, %eax
jne L(end)
RETURN
# endif
.p2align 4
L(52bytes):
movdqu -52(%eax), %xmm1
movdqu -52(%edx), %xmm2
mov $-52, %ebx
pxor %xmm1, %xmm2
ptest %xmm2, %xmm0
jnc L(less16bytes)
L(36bytes):
movdqu -36(%eax), %xmm1
movdqu -36(%edx), %xmm2
m... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/memcmp-sse4.S | LGPL-2.1 | 04e750e75b73957cf1c791535a3f4319534a52fc | github | libc | https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/i386/i686/multiarch/memcmp-sse4.S | 441 | 500 |
bminor/glibc:sysdeps/i386/i686/multiarch/memcmp-sse4.S:13 | # ifndef USE_AS_WMEMCMP
.p2align 4
L(53bytes):
movdqu -53(%eax), %xmm1
movdqu -53(%edx), %xmm2
mov $-53, %ebx
pxor %xmm1, %xmm2
ptest %xmm2, %xmm0
jnc L(less16bytes)
L(37bytes):
mov $-37, %ebx
movdqu -37(%eax), %xmm1
movdqu -37(%edx), %xmm2
pxor %xmm1, %xmm2
ptest %xmm2, %xmm0
jnc L(less16bytes)
L(21bytes)... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/memcmp-sse4.S | LGPL-2.1 | 04e750e75b73957cf1c791535a3f4319534a52fc | github | libc | https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/i386/i686/multiarch/memcmp-sse4.S | 481 | 540 |
bminor/glibc:sysdeps/i386/i686/multiarch/memcmp-sse4.S:14 | ptest %xmm2, %xmm0
jnc L(less16bytes)
L(38bytes):
mov $-38, %ebx
movdqu -38(%eax), %xmm1
movdqu -38(%edx), %xmm2
pxor %xmm1, %xmm2
ptest %xmm2, %xmm0
jnc L(less16bytes)
L(22bytes):
mov $-22, %ebx
movdqu -22(%eax), %xmm1
movdqu -22(%edx), %xmm2
pxor %xmm1, %xmm2
ptest %xmm2, %xmm0
jnc L(less16bytes)
mov -... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/memcmp-sse4.S | LGPL-2.1 | 04e750e75b73957cf1c791535a3f4319534a52fc | github | libc | https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/i386/i686/multiarch/memcmp-sse4.S | 521 | 580 |
bminor/glibc:sysdeps/i386/i686/multiarch/memcmp-sse4.S:15 | movdqu -39(%eax), %xmm1
movdqu -39(%edx), %xmm2
pxor %xmm1, %xmm2
ptest %xmm2, %xmm0
jnc L(less16bytes)
L(23bytes):
mov $-23, %ebx
movdqu -23(%eax), %xmm1
movdqu -23(%edx), %xmm2
pxor %xmm1, %xmm2
ptest %xmm2, %xmm0
jnc L(less16bytes)
movl -7(%eax), %ecx
movl -7(%edx), %ebx
cmp %ebx, %ecx
jne L(find_diff)... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/memcmp-sse4.S | LGPL-2.1 | 04e750e75b73957cf1c791535a3f4319534a52fc | github | libc | https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/i386/i686/multiarch/memcmp-sse4.S | 561 | 620 |
bminor/glibc:sysdeps/i386/i686/multiarch/memcmp-sse4.S:16 | pxor %xmm1, %xmm2
ptest %xmm2, %xmm0
jnc L(less16bytes)
L(24bytes):
mov $-24, %ebx
movdqu -24(%eax), %xmm1
movdqu -24(%edx), %xmm2
pxor %xmm1, %xmm2
ptest %xmm2, %xmm0
jnc L(less16bytes)
mov -8(%eax), %ecx
# ifndef USE_AS_WMEMCMP
mov -8(%edx), %ebx
cmp %ebx, %ecx
# else
cmp -8(%edx), %ecx
# endif
jne L(fi... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/memcmp-sse4.S | LGPL-2.1 | 04e750e75b73957cf1c791535a3f4319534a52fc | github | libc | https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/i386/i686/multiarch/memcmp-sse4.S | 601 | 660 |
bminor/glibc:sysdeps/i386/i686/multiarch/memcmp-sse4.S:17 | L(41bytes):
mov $-41, %ebx
movdqu -41(%eax), %xmm1
movdqu -41(%edx), %xmm2
pxor %xmm1, %xmm2
ptest %xmm2, %xmm0
jnc L(less16bytes)
L(25bytes):
mov $-25, %ebx
movdqu -25(%eax), %xmm1
movdqu -25(%edx), %xmm2
pxor %xmm1, %xmm2
ptest %xmm2, %xmm0
jnc L(less16bytes)
mov -9(%eax), %ecx
mov -9(%edx), %ebx
cmp %... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/memcmp-sse4.S | LGPL-2.1 | 04e750e75b73957cf1c791535a3f4319534a52fc | github | libc | https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/i386/i686/multiarch/memcmp-sse4.S | 641 | 700 |
bminor/glibc:sysdeps/i386/i686/multiarch/memcmp-sse4.S:18 | pxor %xmm1, %xmm2
ptest %xmm2, %xmm0
jnc L(less16bytes)
L(26bytes):
mov $-26, %ebx
movdqu -26(%eax), %xmm1
movdqu -26(%edx), %xmm2
pxor %xmm1, %xmm2
ptest %xmm2, %xmm0
jnc L(less16bytes)
mov -10(%eax), %ecx
mov -10(%edx), %ebx
cmp %ebx, %ecx
jne L(find_diff)
mov -6(%eax), %ecx
mov -6(%edx), %ebx
cmp %e... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/memcmp-sse4.S | LGPL-2.1 | 04e750e75b73957cf1c791535a3f4319534a52fc | github | libc | https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/i386/i686/multiarch/memcmp-sse4.S | 681 | 740 |
bminor/glibc:sysdeps/i386/i686/multiarch/memcmp-sse4.S:19 | movdqu -43(%eax), %xmm1
movdqu -43(%edx), %xmm2
pxor %xmm1, %xmm2
ptest %xmm2, %xmm0
jnc L(less16bytes)
L(27bytes):
mov $-27, %ebx
movdqu -27(%eax), %xmm1
movdqu -27(%edx), %xmm2
pxor %xmm1, %xmm2
ptest %xmm2, %xmm0
jnc L(less16bytes)
movl -11(%eax), %ecx
movl -11(%edx), %ebx
cmp %ebx, %ecx
jne L(find_dif... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/memcmp-sse4.S | LGPL-2.1 | 04e750e75b73957cf1c791535a3f4319534a52fc | github | libc | https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/i386/i686/multiarch/memcmp-sse4.S | 721 | 780 |
bminor/glibc:sysdeps/i386/i686/multiarch/memcmp-sse4.S:20 | L(44bytes):
mov $-44, %ebx
movdqu -44(%eax), %xmm1
movdqu -44(%edx), %xmm2
pxor %xmm1, %xmm2
ptest %xmm2, %xmm0
jnc L(less16bytes)
L(28bytes):
mov $-28, %ebx
movdqu -28(%eax), %xmm1
movdqu -28(%edx), %xmm2
pxor %xmm1, %xmm2
ptest %xmm2, %xmm0
jnc L(less16bytes)
mov -12(%eax), %ecx
# ifndef USE_AS_WMEMCMP
... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/memcmp-sse4.S | LGPL-2.1 | 04e750e75b73957cf1c791535a3f4319534a52fc | github | libc | https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/i386/i686/multiarch/memcmp-sse4.S | 761 | 820 |
bminor/glibc:sysdeps/i386/i686/multiarch/memcmp-sse4.S:21 | mov $0, %eax
jne L(find_diff)
RETURN
# ifndef USE_AS_WMEMCMP
.p2align 4
L(61bytes):
movdqu -61(%eax), %xmm1
movdqu -61(%edx), %xmm2
mov $-61, %ebx
pxor %xmm1, %xmm2
ptest %xmm2, %xmm0
jnc L(less16bytes)
L(45bytes):
mov $-45, %ebx
movdqu -45(%eax), %xmm1
movdqu -45(%edx), %xmm2
pxor %xmm1, %xmm2
ptest %xm... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/memcmp-sse4.S | LGPL-2.1 | 04e750e75b73957cf1c791535a3f4319534a52fc | github | libc | https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/i386/i686/multiarch/memcmp-sse4.S | 801 | 860 |
bminor/glibc:sysdeps/i386/i686/multiarch/memcmp-sse4.S:22 | cmp %ebx, %ecx
jne L(find_diff)
movzbl -1(%eax), %ecx
cmp -1(%edx), %cl
mov $0, %eax
jne L(end)
RETURN
.p2align 4
L(62bytes):
movdqu -62(%eax), %xmm1
movdqu -62(%edx), %xmm2
mov $-62, %ebx
pxor %xmm1, %xmm2
ptest %xmm2, %xmm0
jnc L(less16bytes)
L(46bytes):
mov $-46, %ebx
movdqu -46(%eax), %xmm1
movdqu ... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/memcmp-sse4.S | LGPL-2.1 | 04e750e75b73957cf1c791535a3f4319534a52fc | github | libc | https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/i386/i686/multiarch/memcmp-sse4.S | 841 | 900 |
bminor/glibc:sysdeps/i386/i686/multiarch/memcmp-sse4.S:23 | cmp %ebx, %ecx
jne L(find_diff)
movzwl -2(%eax), %ecx
movzwl -2(%edx), %ebx
cmp %bl, %cl
jne L(end)
cmp %bh, %ch
mov $0, %eax
jne L(end)
RETURN
.p2align 4
L(63bytes):
movdqu -63(%eax), %xmm1
movdqu -63(%edx), %xmm2
mov $-63, %ebx
pxor %xmm1, %xmm2
ptest %xmm2, %xmm0
jnc L(less16bytes)
L(47bytes):
mov ... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/memcmp-sse4.S | LGPL-2.1 | 04e750e75b73957cf1c791535a3f4319534a52fc | github | libc | https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/i386/i686/multiarch/memcmp-sse4.S | 881 | 940 |
bminor/glibc:sysdeps/i386/i686/multiarch/memcmp-sse4.S:24 | cmp %ebx, %ecx
jne L(find_diff)
movl -7(%eax), %ecx
movl -7(%edx), %ebx
cmp %ebx, %ecx
jne L(find_diff)
movzwl -3(%eax), %ecx
movzwl -3(%edx), %ebx
cmpb %bl, %cl
jne L(end)
cmp %bx, %cx
jne L(end)
movzbl -1(%eax), %eax
cmpb -1(%edx), %al
mov $0, %eax
jne L(end)
RETURN
# endif
.p2align 4
L(64bytes):
m... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/memcmp-sse4.S | LGPL-2.1 | 04e750e75b73957cf1c791535a3f4319534a52fc | github | libc | https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/i386/i686/multiarch/memcmp-sse4.S | 921 | 980 |
bminor/glibc:sysdeps/i386/i686/multiarch/memcmp-sse4.S:25 | jnc L(less16bytes)
mov -16(%eax), %ecx
# ifndef USE_AS_WMEMCMP
mov -16(%edx), %ebx
cmp %ebx, %ecx
# else
cmp -16(%edx), %ecx
# endif
jne L(find_diff)
mov -12(%eax), %ecx
# ifndef USE_AS_WMEMCMP
mov -12(%edx), %ebx
cmp %ebx, %ecx
# else
cmp -12(%edx), %ecx
# endif
jne L(find_diff)
mov -8(%eax), %ecx
# ifnd... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/memcmp-sse4.S | LGPL-2.1 | 04e750e75b73957cf1c791535a3f4319534a52fc | github | libc | https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/i386/i686/multiarch/memcmp-sse4.S | 961 | 1,020 |
bminor/glibc:sysdeps/i386/i686/multiarch/memcmp-sse4.S:26 | # ifndef USE_AS_WMEMCMP
.p2align 4
L(less16bytes):
add %ebx, %eax
add %ebx, %edx
mov (%eax), %ecx
mov (%edx), %ebx
cmp %ebx, %ecx
jne L(find_diff)
mov 4(%eax), %ecx
mov 4(%edx), %ebx
cmp %ebx, %ecx
jne L(find_diff)
mov 8(%eax), %ecx
mov 8(%edx), %ebx
cmp %ebx, %ecx
jne L(find_diff)
mov 12(%eax), %ec... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/memcmp-sse4.S | LGPL-2.1 | 04e750e75b73957cf1c791535a3f4319534a52fc | github | libc | https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/i386/i686/multiarch/memcmp-sse4.S | 1,001 | 1,060 |
bminor/glibc:sysdeps/i386/i686/multiarch/memcmp-sse4.S:27 | mov 8(%eax), %ecx
cmp 8(%edx), %ecx
jne L(find_diff)
mov 12(%eax), %ecx
cmp 12(%edx), %ecx
mov $0, %eax
jne L(find_diff)
RETURN
# endif
.p2align 4
L(find_diff):
# ifndef USE_AS_WMEMCMP
cmpb %bl, %cl
jne L(end)
cmp %bx, %cx
jne L(end)
shr $16,%ecx
shr $16,%ebx
cmp %bl, %cl
jne L(end)
cmp %bx, %cx
L(e... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/memcmp-sse4.S | LGPL-2.1 | 04e750e75b73957cf1c791535a3f4319534a52fc | github | libc | https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/i386/i686/multiarch/memcmp-sse4.S | 1,041 | 1,100 |
bminor/glibc:sysdeps/i386/i686/multiarch/memcmp-sse4.S:28 | L(bigger):
ret
# endif
END (MEMCMP)
.section .rodata.sse4.2,"a",@progbits
.p2align 2
.type L(table_64bytes), @object
# ifndef USE_AS_WMEMCMP
L(table_64bytes):
.int JMPTBL (L(0bytes), L(table_64bytes))
.int JMPTBL (L(1bytes), L(table_64bytes))
.int JMPTBL (L(2bytes), L(table_64bytes))
.int JMPTBL (L(3bytes), L(... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/memcmp-sse4.S | LGPL-2.1 | 04e750e75b73957cf1c791535a3f4319534a52fc | github | libc | https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/i386/i686/multiarch/memcmp-sse4.S | 1,081 | 1,140 |
bminor/glibc:sysdeps/i386/i686/multiarch/memcmp-sse4.S:29 | .int JMPTBL (L(30bytes), L(table_64bytes))
.int JMPTBL (L(31bytes), L(table_64bytes))
.int JMPTBL (L(32bytes), L(table_64bytes))
.int JMPTBL (L(33bytes), L(table_64bytes))
.int JMPTBL (L(34bytes), L(table_64bytes))
.int JMPTBL (L(35bytes), L(table_64bytes))
.int JMPTBL (L(36bytes), L(table_64bytes))
.int JMPTBL ... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/memcmp-sse4.S | LGPL-2.1 | 04e750e75b73957cf1c791535a3f4319534a52fc | github | libc | https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/i386/i686/multiarch/memcmp-sse4.S | 1,121 | 1,180 |
bminor/glibc:sysdeps/i386/i686/multiarch/memcmp-sse4.S:30 | .int JMPTBL (L(unreal_case), L(table_64bytes))
.int JMPTBL (L(4bytes), L(table_64bytes))
.int JMPTBL (L(unreal_case), L(table_64bytes))
.int JMPTBL (L(unreal_case), L(table_64bytes))
.int JMPTBL (L(unreal_case), L(table_64bytes))
.int JMPTBL (L(8bytes), L(table_64bytes))
.int JMPTBL (L(unreal_case), L(table_64byt... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/memcmp-sse4.S | LGPL-2.1 | 04e750e75b73957cf1c791535a3f4319534a52fc | github | libc | https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/i386/i686/multiarch/memcmp-sse4.S | 1,161 | 1,220 |
bminor/glibc:sysdeps/i386/i686/multiarch/memcmp-sse4.S:31 | .int JMPTBL (L(unreal_case), L(table_64bytes))
.int JMPTBL (L(44bytes), L(table_64bytes))
.int JMPTBL (L(unreal_case), L(table_64bytes))
.int JMPTBL (L(unreal_case), L(table_64bytes))
.int JMPTBL (L(unreal_case), L(table_64bytes))
.int JMPTBL (L(48bytes), L(table_64bytes))
.int JMPTBL (L(unreal_case), L(table_64b... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/memcmp-sse4.S | LGPL-2.1 | 04e750e75b73957cf1c791535a3f4319534a52fc | github | libc | https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/i386/i686/multiarch/memcmp-sse4.S | 1,201 | 1,224 |
bminor/glibc:sysdeps/i386/i686/multiarch/memcmp-sse4.S:1 | /* memcmp with SSE4.2, wmemcmp 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 Softwar... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/memcmp-sse4.S | LGPL-2.1 | 2642002380aafb71a1d3b569b6d7ebeab3284816 | github | libc | https://github.com/bminor/glibc/blob/2642002380aafb71a1d3b569b6d7ebeab3284816/sysdeps/i386/i686/multiarch/memcmp-sse4.S | 1 | 60 |
bminor/glibc:sysdeps/i386/i686/multiarch/memcmp-sse4.S:1 | /* memcmp with SSE4.2, wmemcmp 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 Softwar... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/memcmp-sse4.S | LGPL-2.1 | 25f1e16ef03a6a8fb1701c4647d46c564480d88c | github | libc | https://github.com/bminor/glibc/blob/25f1e16ef03a6a8fb1701c4647d46c564480d88c/sysdeps/i386/i686/multiarch/memcmp-sse4.S | 1 | 60 |
bminor/glibc:sysdeps/i386/i686/multiarch/memcmp-sse4.S:2 | # define LEN BLK2 + 4
# define RETURN POP (%ebx); ret; CFI_PUSH (%ebx)
# ifdef PIC
# define JMPTBL(I, B) I - B
/* Load an entry in a jump table into EBX and branch to it. TABLE is a
jump table with relative offsets. INDEX is a register contains the
index into the jump table. SCALE is the scale of INDEX. */
#... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/memcmp-sse4.S | LGPL-2.1 | dff8da6b3e89b986bb7f6b1ec18cf65d5972e307 | github | libc | https://github.com/bminor/glibc/blob/dff8da6b3e89b986bb7f6b1ec18cf65d5972e307/sysdeps/i386/i686/multiarch/memcmp-sse4.S | 41 | 100 |
bminor/glibc:sysdeps/i386/i686/multiarch/memcmp-sse4.S:1 | /* memcmp with SSE4.2, wmemcmp 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 Softwar... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/memcmp-sse4.S | LGPL-2.1 | 65cc53fe7c6556b90159b8c3da1eb283792387db | github | libc | https://github.com/bminor/glibc/blob/65cc53fe7c6556b90159b8c3da1eb283792387db/sysdeps/i386/i686/multiarch/memcmp-sse4.S | 1 | 60 |
bminor/glibc:sysdeps/i386/i686/multiarch/memcmp-sse4.S:2 | # define LEN BLK2 + 4
# define RETURN POP (%ebx); ret; CFI_PUSH (%ebx)
# ifdef PIC
# define JMPTBL(I, B) I - B
/* Load an entry in a jump table into EBX and branch to it. TABLE is a
jump table with relative offsets. INDEX is a register contains the
index into the jump table. SCALE is the scale of INDEX. */
#... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/memcmp-sse4.S | LGPL-2.1 | 6d7e8eda9b85b08f207a6dc6f187e94e4817270f | github | libc | https://github.com/bminor/glibc/blob/6d7e8eda9b85b08f207a6dc6f187e94e4817270f/sysdeps/i386/i686/multiarch/memcmp-sse4.S | 41 | 100 |
bminor/glibc:sysdeps/i386/i686/multiarch/memcmp-sse4.S:1 | /* memcmp with SSE4.2, wmemcmp 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 Softwar... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/memcmp-sse4.S | LGPL-2.1 | 581c785bf31bc74430320c7856bbfa3875d025fe | github | libc | https://github.com/bminor/glibc/blob/581c785bf31bc74430320c7856bbfa3875d025fe/sysdeps/i386/i686/multiarch/memcmp-sse4.S | 1 | 60 |
bminor/glibc:sysdeps/i386/i686/multiarch/memcmp-sse4.S:1 | /* memcmp with SSE4.2, wmemcmp 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 Softwar... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/memcmp-sse4.S | LGPL-2.1 | 30891f35fa7da832b66d80d0807610df361851f3 | github | libc | https://github.com/bminor/glibc/blob/30891f35fa7da832b66d80d0807610df361851f3/sysdeps/i386/i686/multiarch/memcmp-sse4.S | 1 | 60 |
bminor/glibc:sysdeps/i386/i686/multiarch/memcmp-sse4.S:1 | /* memcmp with SSE4.2, wmemcmp 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
Lic... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/memcmp-sse4.S | LGPL-2.1 | 2b778ceb4010c28d70de9b8eab20e8d88eed586b | github | libc | https://github.com/bminor/glibc/blob/2b778ceb4010c28d70de9b8eab20e8d88eed586b/sysdeps/i386/i686/multiarch/memcmp-sse4.S | 1 | 60 |
bminor/glibc:sysdeps/i386/i686/multiarch/memcmp-sse4.S:2 | # define BLK2 BLK1 + 4
# define LEN BLK2 + 4
# define RETURN POP (%ebx); ret; CFI_PUSH (%ebx)
# ifdef PIC
# define JMPTBL(I, B) I - B
/* Load an entry in a jump table into EBX and branch to it. TABLE is a
jump table with relative offsets. INDEX is a register contains the
index into the jump table. SCALE is th... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/memcmp-sse4.S | LGPL-2.1 | 2b778ceb4010c28d70de9b8eab20e8d88eed586b | github | libc | https://github.com/bminor/glibc/blob/2b778ceb4010c28d70de9b8eab20e8d88eed586b/sysdeps/i386/i686/multiarch/memcmp-sse4.S | 41 | 100 |
bminor/glibc:sysdeps/i386/i686/multiarch/memcmp-sse4.S:3 | movl BLK1(%esp), %eax
movl BLK2(%esp), %edx
movl LEN(%esp), %ecx
# ifdef USE_AS_WMEMCMP
shl $2, %ecx
test %ecx, %ecx
jz L(return0)
# else
cmp $1, %ecx
jbe L(less1bytes)
# endif
pxor %xmm0, %xmm0
cmp $64, %ecx
ja L(64bytesormore)
cmp $8, %ecx
# ifndef USE_AS_WMEMCMP
PUSH (%ebx)
jb L(less8bytes)
# else
j... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/memcmp-sse4.S | LGPL-2.1 | 2b778ceb4010c28d70de9b8eab20e8d88eed586b | github | libc | https://github.com/bminor/glibc/blob/2b778ceb4010c28d70de9b8eab20e8d88eed586b/sysdeps/i386/i686/multiarch/memcmp-sse4.S | 81 | 140 |
bminor/glibc:sysdeps/i386/i686/multiarch/memcmp-sse4.S:4 | cmp $2, %ecx
jz L(0bytes)
mov 2(%eax), %bl
cmpb 2(%edx), %bl
jne L(nonzero)
cmp $3, %ecx
jz L(0bytes)
mov 3(%eax), %bl
cmpb 3(%edx), %bl
jne L(nonzero)
cmp $4, %ecx
jz L(0bytes)
mov 4(%eax), %bl
cmpb 4(%edx), %bl
jne L(nonzero)
cmp $5, %ecx
jz L(0bytes)
mov 5(%eax), %bl
cmpb 5(%edx), %bl
jne L... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/memcmp-sse4.S | LGPL-2.1 | 2b778ceb4010c28d70de9b8eab20e8d88eed586b | github | libc | https://github.com/bminor/glibc/blob/2b778ceb4010c28d70de9b8eab20e8d88eed586b/sysdeps/i386/i686/multiarch/memcmp-sse4.S | 121 | 180 |
bminor/glibc:sysdeps/i386/i686/multiarch/memcmp-sse4.S:5 | neg %eax
L(above):
ret
CFI_PUSH (%ebx)
# endif
.p2align 4
L(0bytes):
POP (%ebx)
xor %eax, %eax
ret
# ifdef USE_AS_WMEMCMP
/* for wmemcmp, case N == 1 */
.p2align 4
L(less8bytes):
mov (%eax), %ecx
cmp (%edx), %ecx
je L(return0)
mov $1, %eax
jg L(find_diff_bigger)
neg %eax
ret
.p2align 4
L(find_diff_b... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/memcmp-sse4.S | LGPL-2.1 | 2b778ceb4010c28d70de9b8eab20e8d88eed586b | github | libc | https://github.com/bminor/glibc/blob/2b778ceb4010c28d70de9b8eab20e8d88eed586b/sysdeps/i386/i686/multiarch/memcmp-sse4.S | 161 | 220 |
bminor/glibc:sysdeps/i386/i686/multiarch/memcmp-sse4.S:6 | movzbl (%eax), %eax
movzbl (%edx), %edx
sub %edx, %eax
ret
.p2align 4
L(0bytesend):
xor %eax, %eax
ret
# endif
.p2align 4
L(64bytesormore):
PUSH (%ebx)
mov %ecx, %ebx
mov $64, %ecx
sub $64, %ebx
L(64bytesormore_loop):
movdqu (%eax), %xmm1
movdqu (%edx), %xmm2
pxor %xmm1, %xmm2
ptest %xmm2, %xmm0
jnc L(... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/memcmp-sse4.S | LGPL-2.1 | 2b778ceb4010c28d70de9b8eab20e8d88eed586b | github | libc | https://github.com/bminor/glibc/blob/2b778ceb4010c28d70de9b8eab20e8d88eed586b/sysdeps/i386/i686/multiarch/memcmp-sse4.S | 201 | 260 |
bminor/glibc:sysdeps/i386/i686/multiarch/memcmp-sse4.S:7 | add %ecx, %eax
add %ecx, %edx
sub %ecx, %ebx
jae L(64bytesormore_loop)
add %ebx, %ecx
add %ecx, %edx
add %ecx, %eax
BRANCH_TO_JMPTBL_ENTRY(L(table_64bytes), %ecx, 4)
# ifdef USE_AS_WMEMCMP
/* Label needs only for table_64bytes filling */
L(unreal_case):
/* no code here */
# endif
.p2align 4
L(find_16diff):
... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/memcmp-sse4.S | LGPL-2.1 | 2b778ceb4010c28d70de9b8eab20e8d88eed586b | github | libc | https://github.com/bminor/glibc/blob/2b778ceb4010c28d70de9b8eab20e8d88eed586b/sysdeps/i386/i686/multiarch/memcmp-sse4.S | 241 | 300 |
bminor/glibc:sysdeps/i386/i686/multiarch/memcmp-sse4.S:8 | mov -8(%eax), %ecx
mov -8(%edx), %ebx
cmp %ebx, %ecx
jne L(find_diff)
L(4bytes):
mov -4(%eax), %ecx
mov -4(%edx), %ebx
cmp %ebx, %ecx
mov $0, %eax
jne L(find_diff)
RETURN
# else
.p2align 4
L(16bytes):
mov -16(%eax), %ecx
cmp -16(%edx), %ecx
jne L(find_diff)
L(12bytes):
mov -12(%eax), %ecx
cmp -12(%edx), ... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/memcmp-sse4.S | LGPL-2.1 | 2b778ceb4010c28d70de9b8eab20e8d88eed586b | github | libc | https://github.com/bminor/glibc/blob/2b778ceb4010c28d70de9b8eab20e8d88eed586b/sysdeps/i386/i686/multiarch/memcmp-sse4.S | 281 | 340 |
bminor/glibc:sysdeps/i386/i686/multiarch/memcmp-sse4.S:9 | ptest %xmm2, %xmm0
jnc L(less16bytes)
L(33bytes):
movdqu -33(%eax), %xmm1
movdqu -33(%edx), %xmm2
mov $-33, %ebx
pxor %xmm1, %xmm2
ptest %xmm2, %xmm0
jnc L(less16bytes)
L(17bytes):
mov -17(%eax), %ecx
mov -17(%edx), %ebx
cmp %ebx, %ecx
jne L(find_diff)
L(13bytes):
mov -13(%eax), %ecx
mov -13(%edx), %ebx
c... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/memcmp-sse4.S | LGPL-2.1 | 2b778ceb4010c28d70de9b8eab20e8d88eed586b | github | libc | https://github.com/bminor/glibc/blob/2b778ceb4010c28d70de9b8eab20e8d88eed586b/sysdeps/i386/i686/multiarch/memcmp-sse4.S | 321 | 380 |
bminor/glibc:sysdeps/i386/i686/multiarch/memcmp-sse4.S:10 | pxor %xmm1, %xmm2
ptest %xmm2, %xmm0
jnc L(less16bytes)
L(34bytes):
mov $-34, %ebx
movdqu -34(%eax), %xmm1
movdqu -34(%edx), %xmm2
pxor %xmm1, %xmm2
ptest %xmm2, %xmm0
jnc L(less16bytes)
L(18bytes):
mov -18(%eax), %ecx
mov -18(%edx), %ebx
cmp %ebx, %ecx
jne L(find_diff)
L(14bytes):
mov -14(%eax), %ecx
mov... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/memcmp-sse4.S | LGPL-2.1 | 2b778ceb4010c28d70de9b8eab20e8d88eed586b | github | libc | https://github.com/bminor/glibc/blob/2b778ceb4010c28d70de9b8eab20e8d88eed586b/sysdeps/i386/i686/multiarch/memcmp-sse4.S | 361 | 420 |
bminor/glibc:sysdeps/i386/i686/multiarch/memcmp-sse4.S:11 | .p2align 4
L(51bytes):
mov $-51, %ebx
movdqu -51(%eax), %xmm1
movdqu -51(%edx), %xmm2
pxor %xmm1, %xmm2
ptest %xmm2, %xmm0
jnc L(less16bytes)
L(35bytes):
mov $-35, %ebx
movdqu -35(%eax), %xmm1
movdqu -35(%edx), %xmm2
pxor %xmm1, %xmm2
ptest %xmm2, %xmm0
jnc L(less16bytes)
L(19bytes):
movl -19(%eax), %ecx
... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/memcmp-sse4.S | LGPL-2.1 | 2b778ceb4010c28d70de9b8eab20e8d88eed586b | github | libc | https://github.com/bminor/glibc/blob/2b778ceb4010c28d70de9b8eab20e8d88eed586b/sysdeps/i386/i686/multiarch/memcmp-sse4.S | 401 | 460 |
bminor/glibc:sysdeps/i386/i686/multiarch/memcmp-sse4.S:12 | cmp %bx, %cx
jne L(end)
L(1bytes):
movzbl -1(%eax), %eax
cmpb -1(%edx), %al
mov $0, %eax
jne L(end)
RETURN
# endif
.p2align 4
L(52bytes):
movdqu -52(%eax), %xmm1
movdqu -52(%edx), %xmm2
mov $-52, %ebx
pxor %xmm1, %xmm2
ptest %xmm2, %xmm0
jnc L(less16bytes)
L(36bytes):
movdqu -36(%eax), %xmm1
movdqu -36(%... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/memcmp-sse4.S | LGPL-2.1 | 2b778ceb4010c28d70de9b8eab20e8d88eed586b | github | libc | https://github.com/bminor/glibc/blob/2b778ceb4010c28d70de9b8eab20e8d88eed586b/sysdeps/i386/i686/multiarch/memcmp-sse4.S | 441 | 500 |
bminor/glibc:sysdeps/i386/i686/multiarch/memcmp-sse4.S:13 | RETURN
# ifndef USE_AS_WMEMCMP
.p2align 4
L(53bytes):
movdqu -53(%eax), %xmm1
movdqu -53(%edx), %xmm2
mov $-53, %ebx
pxor %xmm1, %xmm2
ptest %xmm2, %xmm0
jnc L(less16bytes)
L(37bytes):
mov $-37, %ebx
movdqu -37(%eax), %xmm1
movdqu -37(%edx), %xmm2
pxor %xmm1, %xmm2
ptest %xmm2, %xmm0
jnc L(less16bytes)
L(... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/memcmp-sse4.S | LGPL-2.1 | 2b778ceb4010c28d70de9b8eab20e8d88eed586b | github | libc | https://github.com/bminor/glibc/blob/2b778ceb4010c28d70de9b8eab20e8d88eed586b/sysdeps/i386/i686/multiarch/memcmp-sse4.S | 481 | 540 |
bminor/glibc:sysdeps/i386/i686/multiarch/memcmp-sse4.S:14 | pxor %xmm1, %xmm2
ptest %xmm2, %xmm0
jnc L(less16bytes)
L(38bytes):
mov $-38, %ebx
movdqu -38(%eax), %xmm1
movdqu -38(%edx), %xmm2
pxor %xmm1, %xmm2
ptest %xmm2, %xmm0
jnc L(less16bytes)
L(22bytes):
mov $-22, %ebx
movdqu -22(%eax), %xmm1
movdqu -22(%edx), %xmm2
pxor %xmm1, %xmm2
ptest %xmm2, %xmm0
jnc L(l... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/memcmp-sse4.S | LGPL-2.1 | 2b778ceb4010c28d70de9b8eab20e8d88eed586b | github | libc | https://github.com/bminor/glibc/blob/2b778ceb4010c28d70de9b8eab20e8d88eed586b/sysdeps/i386/i686/multiarch/memcmp-sse4.S | 521 | 580 |
bminor/glibc:sysdeps/i386/i686/multiarch/memcmp-sse4.S:15 | mov $-39, %ebx
movdqu -39(%eax), %xmm1
movdqu -39(%edx), %xmm2
pxor %xmm1, %xmm2
ptest %xmm2, %xmm0
jnc L(less16bytes)
L(23bytes):
mov $-23, %ebx
movdqu -23(%eax), %xmm1
movdqu -23(%edx), %xmm2
pxor %xmm1, %xmm2
ptest %xmm2, %xmm0
jnc L(less16bytes)
movl -7(%eax), %ecx
movl -7(%edx), %ebx
cmp %ebx, %ecx
... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/memcmp-sse4.S | LGPL-2.1 | 2b778ceb4010c28d70de9b8eab20e8d88eed586b | github | libc | https://github.com/bminor/glibc/blob/2b778ceb4010c28d70de9b8eab20e8d88eed586b/sysdeps/i386/i686/multiarch/memcmp-sse4.S | 561 | 620 |
bminor/glibc:sysdeps/i386/i686/multiarch/memcmp-sse4.S:16 | movdqu -40(%edx), %xmm2
pxor %xmm1, %xmm2
ptest %xmm2, %xmm0
jnc L(less16bytes)
L(24bytes):
mov $-24, %ebx
movdqu -24(%eax), %xmm1
movdqu -24(%edx), %xmm2
pxor %xmm1, %xmm2
ptest %xmm2, %xmm0
jnc L(less16bytes)
mov -8(%eax), %ecx
# ifndef USE_AS_WMEMCMP
mov -8(%edx), %ebx
cmp %ebx, %ecx
# else
cmp -8(%edx... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/memcmp-sse4.S | LGPL-2.1 | 2b778ceb4010c28d70de9b8eab20e8d88eed586b | github | libc | https://github.com/bminor/glibc/blob/2b778ceb4010c28d70de9b8eab20e8d88eed586b/sysdeps/i386/i686/multiarch/memcmp-sse4.S | 601 | 660 |
bminor/glibc:sysdeps/i386/i686/multiarch/memcmp-sse4.S:17 | jnc L(less16bytes)
L(41bytes):
mov $-41, %ebx
movdqu -41(%eax), %xmm1
movdqu -41(%edx), %xmm2
pxor %xmm1, %xmm2
ptest %xmm2, %xmm0
jnc L(less16bytes)
L(25bytes):
mov $-25, %ebx
movdqu -25(%eax), %xmm1
movdqu -25(%edx), %xmm2
pxor %xmm1, %xmm2
ptest %xmm2, %xmm0
jnc L(less16bytes)
mov -9(%eax), %ecx
mov -9... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/memcmp-sse4.S | LGPL-2.1 | 2b778ceb4010c28d70de9b8eab20e8d88eed586b | github | libc | https://github.com/bminor/glibc/blob/2b778ceb4010c28d70de9b8eab20e8d88eed586b/sysdeps/i386/i686/multiarch/memcmp-sse4.S | 641 | 700 |
bminor/glibc:sysdeps/i386/i686/multiarch/memcmp-sse4.S:18 | movdqu -42(%edx), %xmm2
pxor %xmm1, %xmm2
ptest %xmm2, %xmm0
jnc L(less16bytes)
L(26bytes):
mov $-26, %ebx
movdqu -26(%eax), %xmm1
movdqu -26(%edx), %xmm2
pxor %xmm1, %xmm2
ptest %xmm2, %xmm0
jnc L(less16bytes)
mov -10(%eax), %ecx
mov -10(%edx), %ebx
cmp %ebx, %ecx
jne L(find_diff)
mov -6(%eax), %ecx
m... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/memcmp-sse4.S | LGPL-2.1 | 2b778ceb4010c28d70de9b8eab20e8d88eed586b | github | libc | https://github.com/bminor/glibc/blob/2b778ceb4010c28d70de9b8eab20e8d88eed586b/sysdeps/i386/i686/multiarch/memcmp-sse4.S | 681 | 740 |
bminor/glibc:sysdeps/i386/i686/multiarch/memcmp-sse4.S:19 | mov $-43, %ebx
movdqu -43(%eax), %xmm1
movdqu -43(%edx), %xmm2
pxor %xmm1, %xmm2
ptest %xmm2, %xmm0
jnc L(less16bytes)
L(27bytes):
mov $-27, %ebx
movdqu -27(%eax), %xmm1
movdqu -27(%edx), %xmm2
pxor %xmm1, %xmm2
ptest %xmm2, %xmm0
jnc L(less16bytes)
movl -11(%eax), %ecx
movl -11(%edx), %ebx
cmp %ebx, %ecx... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/memcmp-sse4.S | LGPL-2.1 | 2b778ceb4010c28d70de9b8eab20e8d88eed586b | github | libc | https://github.com/bminor/glibc/blob/2b778ceb4010c28d70de9b8eab20e8d88eed586b/sysdeps/i386/i686/multiarch/memcmp-sse4.S | 721 | 780 |
bminor/glibc:sysdeps/i386/i686/multiarch/memcmp-sse4.S:20 | jnc L(less16bytes)
L(44bytes):
mov $-44, %ebx
movdqu -44(%eax), %xmm1
movdqu -44(%edx), %xmm2
pxor %xmm1, %xmm2
ptest %xmm2, %xmm0
jnc L(less16bytes)
L(28bytes):
mov $-28, %ebx
movdqu -28(%eax), %xmm1
movdqu -28(%edx), %xmm2
pxor %xmm1, %xmm2
ptest %xmm2, %xmm0
jnc L(less16bytes)
mov -12(%eax), %ecx
# ifn... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/memcmp-sse4.S | LGPL-2.1 | 2b778ceb4010c28d70de9b8eab20e8d88eed586b | github | libc | https://github.com/bminor/glibc/blob/2b778ceb4010c28d70de9b8eab20e8d88eed586b/sysdeps/i386/i686/multiarch/memcmp-sse4.S | 761 | 820 |
bminor/glibc:sysdeps/i386/i686/multiarch/memcmp-sse4.S:21 | # endif
mov $0, %eax
jne L(find_diff)
RETURN
# ifndef USE_AS_WMEMCMP
.p2align 4
L(61bytes):
movdqu -61(%eax), %xmm1
movdqu -61(%edx), %xmm2
mov $-61, %ebx
pxor %xmm1, %xmm2
ptest %xmm2, %xmm0
jnc L(less16bytes)
L(45bytes):
mov $-45, %ebx
movdqu -45(%eax), %xmm1
movdqu -45(%edx), %xmm2
pxor %xmm1, %xmm2
... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/memcmp-sse4.S | LGPL-2.1 | 2b778ceb4010c28d70de9b8eab20e8d88eed586b | github | libc | https://github.com/bminor/glibc/blob/2b778ceb4010c28d70de9b8eab20e8d88eed586b/sysdeps/i386/i686/multiarch/memcmp-sse4.S | 801 | 860 |
bminor/glibc:sysdeps/i386/i686/multiarch/memcmp-sse4.S:22 | mov -5(%edx), %ebx
cmp %ebx, %ecx
jne L(find_diff)
movzbl -1(%eax), %ecx
cmp -1(%edx), %cl
mov $0, %eax
jne L(end)
RETURN
.p2align 4
L(62bytes):
movdqu -62(%eax), %xmm1
movdqu -62(%edx), %xmm2
mov $-62, %ebx
pxor %xmm1, %xmm2
ptest %xmm2, %xmm0
jnc L(less16bytes)
L(46bytes):
mov $-46, %ebx
movdqu -46(%... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/memcmp-sse4.S | LGPL-2.1 | 2b778ceb4010c28d70de9b8eab20e8d88eed586b | github | libc | https://github.com/bminor/glibc/blob/2b778ceb4010c28d70de9b8eab20e8d88eed586b/sysdeps/i386/i686/multiarch/memcmp-sse4.S | 841 | 900 |
bminor/glibc:sysdeps/i386/i686/multiarch/memcmp-sse4.S:23 | mov -6(%edx), %ebx
cmp %ebx, %ecx
jne L(find_diff)
movzwl -2(%eax), %ecx
movzwl -2(%edx), %ebx
cmp %bl, %cl
jne L(end)
cmp %bh, %ch
mov $0, %eax
jne L(end)
RETURN
.p2align 4
L(63bytes):
movdqu -63(%eax), %xmm1
movdqu -63(%edx), %xmm2
mov $-63, %ebx
pxor %xmm1, %xmm2
ptest %xmm2, %xmm0
jnc L(less16byte... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/memcmp-sse4.S | LGPL-2.1 | 2b778ceb4010c28d70de9b8eab20e8d88eed586b | github | libc | https://github.com/bminor/glibc/blob/2b778ceb4010c28d70de9b8eab20e8d88eed586b/sysdeps/i386/i686/multiarch/memcmp-sse4.S | 881 | 940 |
bminor/glibc:sysdeps/i386/i686/multiarch/memcmp-sse4.S:24 | movl -11(%edx), %ebx
cmp %ebx, %ecx
jne L(find_diff)
movl -7(%eax), %ecx
movl -7(%edx), %ebx
cmp %ebx, %ecx
jne L(find_diff)
movzwl -3(%eax), %ecx
movzwl -3(%edx), %ebx
cmpb %bl, %cl
jne L(end)
cmp %bx, %cx
jne L(end)
movzbl -1(%eax), %eax
cmpb -1(%edx), %al
mov $0, %eax
jne L(end)
RETURN
# endif
.p2... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/memcmp-sse4.S | LGPL-2.1 | 2b778ceb4010c28d70de9b8eab20e8d88eed586b | github | libc | https://github.com/bminor/glibc/blob/2b778ceb4010c28d70de9b8eab20e8d88eed586b/sysdeps/i386/i686/multiarch/memcmp-sse4.S | 921 | 980 |
bminor/glibc:sysdeps/i386/i686/multiarch/memcmp-sse4.S:25 | ptest %xmm2, %xmm0
jnc L(less16bytes)
mov -16(%eax), %ecx
# ifndef USE_AS_WMEMCMP
mov -16(%edx), %ebx
cmp %ebx, %ecx
# else
cmp -16(%edx), %ecx
# endif
jne L(find_diff)
mov -12(%eax), %ecx
# ifndef USE_AS_WMEMCMP
mov -12(%edx), %ebx
cmp %ebx, %ecx
# else
cmp -12(%edx), %ecx
# endif
jne L(find_diff)
mov -... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/memcmp-sse4.S | LGPL-2.1 | 2b778ceb4010c28d70de9b8eab20e8d88eed586b | github | libc | https://github.com/bminor/glibc/blob/2b778ceb4010c28d70de9b8eab20e8d88eed586b/sysdeps/i386/i686/multiarch/memcmp-sse4.S | 961 | 1,020 |
bminor/glibc:sysdeps/i386/i686/multiarch/memcmp-sse4.S:26 | # ifndef USE_AS_WMEMCMP
.p2align 4
L(less16bytes):
add %ebx, %eax
add %ebx, %edx
mov (%eax), %ecx
mov (%edx), %ebx
cmp %ebx, %ecx
jne L(find_diff)
mov 4(%eax), %ecx
mov 4(%edx), %ebx
cmp %ebx, %ecx
jne L(find_diff)
mov 8(%eax), %ecx
mov 8(%edx), %ebx
cmp %ebx, %ecx
jne L(find_diff)
mov 12(%eax), %ec... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/memcmp-sse4.S | LGPL-2.1 | 2b778ceb4010c28d70de9b8eab20e8d88eed586b | github | libc | https://github.com/bminor/glibc/blob/2b778ceb4010c28d70de9b8eab20e8d88eed586b/sysdeps/i386/i686/multiarch/memcmp-sse4.S | 1,001 | 1,060 |
bminor/glibc:sysdeps/i386/i686/multiarch/memcmp-sse4.S:27 | jne L(find_diff)
mov 8(%eax), %ecx
cmp 8(%edx), %ecx
jne L(find_diff)
mov 12(%eax), %ecx
cmp 12(%edx), %ecx
mov $0, %eax
jne L(find_diff)
RETURN
# endif
.p2align 4
L(find_diff):
# ifndef USE_AS_WMEMCMP
cmpb %bl, %cl
jne L(end)
cmp %bx, %cx
jne L(end)
shr $16,%ecx
shr $16,%ebx
cmp %bl, %cl
jne L(end... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/memcmp-sse4.S | LGPL-2.1 | 2b778ceb4010c28d70de9b8eab20e8d88eed586b | github | libc | https://github.com/bminor/glibc/blob/2b778ceb4010c28d70de9b8eab20e8d88eed586b/sysdeps/i386/i686/multiarch/memcmp-sse4.S | 1,041 | 1,100 |
bminor/glibc:sysdeps/i386/i686/multiarch/memcmp-sse4.S:28 | .p2align 4
L(bigger):
ret
# endif
END (MEMCMP)
.section .rodata.sse4.2,"a",@progbits
.p2align 2
.type L(table_64bytes), @object
# ifndef USE_AS_WMEMCMP
L(table_64bytes):
.int JMPTBL (L(0bytes), L(table_64bytes))
.int JMPTBL (L(1bytes), L(table_64bytes))
.int JMPTBL (L(2bytes), L(table_64bytes))
.int JMPTBL (L(... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/memcmp-sse4.S | LGPL-2.1 | 2b778ceb4010c28d70de9b8eab20e8d88eed586b | github | libc | https://github.com/bminor/glibc/blob/2b778ceb4010c28d70de9b8eab20e8d88eed586b/sysdeps/i386/i686/multiarch/memcmp-sse4.S | 1,081 | 1,140 |
bminor/glibc:sysdeps/i386/i686/multiarch/memcmp-sse4.S:29 | .int JMPTBL (L(29bytes), L(table_64bytes))
.int JMPTBL (L(30bytes), L(table_64bytes))
.int JMPTBL (L(31bytes), L(table_64bytes))
.int JMPTBL (L(32bytes), L(table_64bytes))
.int JMPTBL (L(33bytes), L(table_64bytes))
.int JMPTBL (L(34bytes), L(table_64bytes))
.int JMPTBL (L(35bytes), L(table_64bytes))
.int JMPTBL ... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/memcmp-sse4.S | LGPL-2.1 | 2b778ceb4010c28d70de9b8eab20e8d88eed586b | github | libc | https://github.com/bminor/glibc/blob/2b778ceb4010c28d70de9b8eab20e8d88eed586b/sysdeps/i386/i686/multiarch/memcmp-sse4.S | 1,121 | 1,180 |
bminor/glibc:sysdeps/i386/i686/multiarch/memcmp-sse4.S:30 | .int JMPTBL (L(unreal_case), L(table_64bytes))
.int JMPTBL (L(unreal_case), L(table_64bytes))
.int JMPTBL (L(4bytes), L(table_64bytes))
.int JMPTBL (L(unreal_case), L(table_64bytes))
.int JMPTBL (L(unreal_case), L(table_64bytes))
.int JMPTBL (L(unreal_case), L(table_64bytes))
.int JMPTBL (L(8bytes), L(table_64byt... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/memcmp-sse4.S | LGPL-2.1 | 2b778ceb4010c28d70de9b8eab20e8d88eed586b | github | libc | https://github.com/bminor/glibc/blob/2b778ceb4010c28d70de9b8eab20e8d88eed586b/sysdeps/i386/i686/multiarch/memcmp-sse4.S | 1,161 | 1,220 |
bminor/glibc:sysdeps/i386/i686/multiarch/memcmp-sse4.S:31 | .int JMPTBL (L(unreal_case), L(table_64bytes))
.int JMPTBL (L(unreal_case), L(table_64bytes))
.int JMPTBL (L(44bytes), L(table_64bytes))
.int JMPTBL (L(unreal_case), L(table_64bytes))
.int JMPTBL (L(unreal_case), L(table_64bytes))
.int JMPTBL (L(unreal_case), L(table_64bytes))
.int JMPTBL (L(48bytes), L(table_64b... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/memcmp-sse4.S | LGPL-2.1 | 2b778ceb4010c28d70de9b8eab20e8d88eed586b | github | libc | https://github.com/bminor/glibc/blob/2b778ceb4010c28d70de9b8eab20e8d88eed586b/sysdeps/i386/i686/multiarch/memcmp-sse4.S | 1,201 | 1,225 |
bminor/glibc:sysdeps/i386/i686/multiarch/memcmp-sse4.S:1 | /* memcmp with SSE4.2, wmemcmp 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
Lic... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/memcmp-sse4.S | LGPL-2.1 | d614a7539657941a9201c236b2f15afac18e1213 | github | libc | https://github.com/bminor/glibc/blob/d614a7539657941a9201c236b2f15afac18e1213/sysdeps/i386/i686/multiarch/memcmp-sse4.S | 1 | 60 |
bminor/glibc:sysdeps/i386/i686/multiarch/memcmp-sse4.S:1 | /* memcmp with SSE4.2, wmemcmp 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
Lic... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/memcmp-sse4.S | LGPL-2.1 | 5a82c74822d3272df2f5929133680478c0cfb4bd | github | libc | https://github.com/bminor/glibc/blob/5a82c74822d3272df2f5929133680478c0cfb4bd/sysdeps/i386/i686/multiarch/memcmp-sse4.S | 1 | 60 |
bminor/glibc:sysdeps/i386/i686/multiarch/memcmp-sse4.S:1 | /* memcmp with SSE4.2, wmemcmp 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
Lic... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/memcmp-sse4.S | LGPL-2.1 | 04277e02d7f54d3582bebcf8386b317018cd5e1d | github | libc | https://github.com/bminor/glibc/blob/04277e02d7f54d3582bebcf8386b317018cd5e1d/sysdeps/i386/i686/multiarch/memcmp-sse4.S | 1 | 60 |
bminor/glibc:sysdeps/i386/i686/multiarch/memcmp-sse4.S:1 | /* memcmp with SSE4.2, wmemcmp 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
Lic... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/memcmp-sse4.S | LGPL-2.1 | 177824e23274591dd549db0c0a4b569ee4ccd96b | github | libc | https://github.com/bminor/glibc/blob/177824e23274591dd549db0c0a4b569ee4ccd96b/sysdeps/i386/i686/multiarch/memcmp-sse4.S | 1 | 60 |
bminor/glibc:sysdeps/i386/i686/multiarch/memcmp-sse4.S:2 | # define BLK2 BLK1 + 4
# define LEN BLK2 + 4
# define RETURN POP (%ebx); ret; CFI_PUSH (%ebx)
# ifdef PIC
# define JMPTBL(I, B) I - B
/* Load an entry in a jump table into EBX and branch to it. TABLE is a
jump table with relative offsets. INDEX is a register contains the
index into the jump table. SCALE is th... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/memcmp-sse4.S | LGPL-2.1 | 688903eb3ef01301d239ab753d309d45720610a7 | github | libc | https://github.com/bminor/glibc/blob/688903eb3ef01301d239ab753d309d45720610a7/sysdeps/i386/i686/multiarch/memcmp-sse4.S | 41 | 100 |
bminor/glibc:sysdeps/i386/i686/multiarch/memcmp-sse4.S:1 | /* memcmp with SSE4.2, wmemcmp 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
Lic... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/memcmp-sse4.S | LGPL-2.1 | dfc93c41eebef639ba2d1f304f4d52ab6b834684 | github | libc | https://github.com/bminor/glibc/blob/dfc93c41eebef639ba2d1f304f4d52ab6b834684/sysdeps/i386/i686/multiarch/memcmp-sse4.S | 1 | 60 |
bminor/glibc:sysdeps/i386/i686/multiarch/memcmp-sse4.S:1 | /* memcmp with SSE4.2, wmemcmp 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
Lic... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/memcmp-sse4.S | LGPL-2.1 | bfff8b1becd7d01c074177df7196ab327cd8c844 | github | libc | https://github.com/bminor/glibc/blob/bfff8b1becd7d01c074177df7196ab327cd8c844/sysdeps/i386/i686/multiarch/memcmp-sse4.S | 1 | 60 |
bminor/glibc:sysdeps/i386/i686/multiarch/memcmp-sse4.S:2 | # define BLK2 BLK1 + 4
# define LEN BLK2 + 4
# define RETURN POP (%ebx); ret; CFI_PUSH (%ebx)
# ifdef SHARED
# define JMPTBL(I, B) I - B
/* Load an entry in a jump table into EBX and branch to it. TABLE is a
jump table with relative offsets. INDEX is a register contains the
index into the jump table. SCALE is... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/memcmp-sse4.S | LGPL-2.1 | bfff8b1becd7d01c074177df7196ab327cd8c844 | github | libc | https://github.com/bminor/glibc/blob/bfff8b1becd7d01c074177df7196ab327cd8c844/sysdeps/i386/i686/multiarch/memcmp-sse4.S | 41 | 100 |
bminor/glibc:sysdeps/i386/i686/multiarch/memcmp-sse4.S:1 | /* memcmp with SSE4.2, wmemcmp 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
Lic... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/memcmp-sse4.S | LGPL-2.1 | f7a9f785e547bd599dee496fd906a28bcb4ec7fe | github | libc | https://github.com/bminor/glibc/blob/f7a9f785e547bd599dee496fd906a28bcb4ec7fe/sysdeps/i386/i686/multiarch/memcmp-sse4.S | 1 | 60 |
bminor/glibc:sysdeps/i386/i686/multiarch/memcmp-sse4.S:1 | /* memcmp with SSE4.2, wmemcmp 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
Lic... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/memcmp-sse4.S | LGPL-2.1 | 890b7a4b33d482b5c768ab47d70758b80227e9bc | github | libc | https://github.com/bminor/glibc/blob/890b7a4b33d482b5c768ab47d70758b80227e9bc/sysdeps/i386/i686/multiarch/memcmp-sse4.S | 1 | 60 |
bminor/glibc:sysdeps/i386/i686/multiarch/memcmp-ssse3.S:1 | /* memcmp with SSSE3, wmemcmp with SSSE3
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 ... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/memcmp-ssse3.S | LGPL-2.1 | 04e750e75b73957cf1c791535a3f4319534a52fc | github | libc | https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/i386/i686/multiarch/memcmp-ssse3.S | 1 | 60 |
bminor/glibc:sysdeps/i386/i686/multiarch/memcmp-ssse3.S:2 | # define LEN BLK2+4
# define RETURN_END POP (%edi); POP (%esi); POP (%ebx); ret
# define RETURN RETURN_END; cfi_restore_state; cfi_remember_state
/* Warning!
wmemcmp has to use SIGNED comparison for elements.
memcmp has to use UNSIGNED comparison for elements.
*/
atom_text_section
ENTRY (MEMC... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/memcmp-ssse3.S | LGPL-2.1 | 04e750e75b73957cf1c791535a3f4319534a52fc | github | libc | https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/i386/i686/multiarch/memcmp-ssse3.S | 41 | 100 |
bminor/glibc:sysdeps/i386/i686/multiarch/memcmp-ssse3.S:3 | movb (%eax), %cl
cmp (%edx), %cl
je L(zero)
mov $1, %eax
ja L(1bytesend)
neg %eax
L(1bytesend):
ret
# endif
.p2align 4
L(zero):
xor %eax, %eax
ret
.p2align 4
L(48bytesormore):
PUSH (%ebx)
PUSH (%esi)
PUSH (%edi)
cfi_remember_state
movdqu (%eax), %xmm3
movdqu (%edx), %xmm0
movl %eax, %edi
movl %edx, ... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/memcmp-ssse3.S | LGPL-2.1 | 04e750e75b73957cf1c791535a3f4319534a52fc | github | libc | https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/i386/i686/multiarch/memcmp-ssse3.S | 81 | 140 |
bminor/glibc:sysdeps/i386/i686/multiarch/memcmp-ssse3.S:4 | xor %edx, %esi
# ifndef USE_AS_WMEMCMP
cmp $8, %edx
jae L(next_unaligned_table)
cmp $0, %edx
je L(shr_0)
cmp $1, %edx
je L(shr_1)
cmp $2, %edx
je L(shr_2)
cmp $3, %edx
je L(shr_3)
cmp $4, %edx
je L(shr_4)
cmp $5, %edx
je L(shr_5)
cmp $6, %edx
je L(shr_6)
jmp L(shr_7)
.p2align 2
L(next_unaligned_tabl... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/memcmp-ssse3.S | LGPL-2.1 | 04e750e75b73957cf1c791535a3f4319534a52fc | github | libc | https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/i386/i686/multiarch/memcmp-ssse3.S | 121 | 180 |
bminor/glibc:sysdeps/i386/i686/multiarch/memcmp-ssse3.S:5 | je L(shr_0)
cmp $4, %edx
je L(shr_4)
cmp $8, %edx
je L(shr_8)
jmp L(shr_12)
# endif
.p2align 4
L(shr_0):
cmp $80, %ecx
jae L(shr_0_gobble)
lea -48(%ecx), %ecx
xor %eax, %eax
movaps (%esi), %xmm1
pcmpeqb (%edi), %xmm1
movaps 16(%esi), %xmm2
pcmpeqb 16(%edi), %xmm2
pand %xmm1, %xmm2
pmovmskb %xmm2, %edx
... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/i686/multiarch/memcmp-ssse3.S | LGPL-2.1 | 04e750e75b73957cf1c791535a3f4319534a52fc | github | libc | https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/i386/i686/multiarch/memcmp-ssse3.S | 161 | 220 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.