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/strchrnul.S:4
L(1): addl $16, %eax /* adjust pointer for whole round */ L(11): movl (%eax), %ecx /* get word (= 4 bytes) in question */ xorl %edx, %ecx /* XOR with word c|c|c|c => bytes of str == c are now 0 */ movl $0xfefefeff, %edi /* magic value */ addl %ecx, %edi /* add the magic value to the word. We get c...
x86
gas-att
handwritten
bminor/glibc
sysdeps/i386/strchrnul.S
LGPL-2.1
2b778ceb4010c28d70de9b8eab20e8d88eed586b
github
libc
https://github.com/bminor/glibc/blob/2b778ceb4010c28d70de9b8eab20e8d88eed586b/sysdeps/i386/strchrnul.S
121
180
bminor/glibc:sysdeps/i386/strchrnul.S:5
xorl %ecx, %edi /* (word+magic)^word */ orl $0xfefefeff, %edi /* set all non-carry bits */ incl %edi /* add 1: if one carry bit was *not* set the addition will not result in 0. */ jnz L(7) /* found NUL => return NULL */ movl 4(%eax), %ecx /* get word (= 4 bytes) in question */ xorl %edx, %ecx /* XOR w...
x86
gas-att
handwritten
bminor/glibc
sysdeps/i386/strchrnul.S
LGPL-2.1
2b778ceb4010c28d70de9b8eab20e8d88eed586b
github
libc
https://github.com/bminor/glibc/blob/2b778ceb4010c28d70de9b8eab20e8d88eed586b/sysdeps/i386/strchrnul.S
161
220
bminor/glibc:sysdeps/i386/strchrnul.S:6
orl $0xfefefeff, %edi /* set all non-carry bits */ incl %edi /* add 1: if one carry bit was *not* set the addition will not result in 0. */ jnz L(72) /* found it => return pointer */ xorl %edx, %ecx /* restore original dword without reload */ movl $0xfefefeff, %edi /* magic value */ addl %ecx, %edi /* ...
x86
gas-att
handwritten
bminor/glibc
sysdeps/i386/strchrnul.S
LGPL-2.1
2b778ceb4010c28d70de9b8eab20e8d88eed586b
github
libc
https://github.com/bminor/glibc/blob/2b778ceb4010c28d70de9b8eab20e8d88eed586b/sysdeps/i386/strchrnul.S
201
260
bminor/glibc:sysdeps/i386/strchrnul.S:7
L(73): addl $4, %eax /* adjust pointer */ L(72): addl $4, %eax L(71): addl $4, %eax /* We now scan for the byte in which the character was matched. But we have to take care of the case that a NUL char is found before this in the dword. */ L(7): testb %cl, %cl /* is first byte CHR? */ jz L(6) /* yes => ...
x86
gas-att
handwritten
bminor/glibc
sysdeps/i386/strchrnul.S
LGPL-2.1
2b778ceb4010c28d70de9b8eab20e8d88eed586b
github
libc
https://github.com/bminor/glibc/blob/2b778ceb4010c28d70de9b8eab20e8d88eed586b/sysdeps/i386/strchrnul.S
241
278
bminor/glibc:sysdeps/i386/strchrnul.S:1
/* strchrnul (str, chr) -- Return pointer to first occurrence of CHR in STR or the final NUL byte. For Intel 80x86, x>=3. Copyright (C) 1994-2020 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Ulrich Drepper <drepper@gnu.org> Some optimisations by Alan Modra <Ala...
x86
gas-att
handwritten
bminor/glibc
sysdeps/i386/strchrnul.S
LGPL-2.1
d614a7539657941a9201c236b2f15afac18e1213
github
libc
https://github.com/bminor/glibc/blob/d614a7539657941a9201c236b2f15afac18e1213/sysdeps/i386/strchrnul.S
1
60
bminor/glibc:sysdeps/i386/strchrnul.S:1
/* strchrnul (str, chr) -- Return pointer to first occurrence of CHR in STR or the final NUL byte. For Intel 80x86, x>=3. Copyright (C) 1994-2019 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Ulrich Drepper <drepper@gnu.org> Some optimisations by Alan Modra <Ala...
x86
gas-att
handwritten
bminor/glibc
sysdeps/i386/strchrnul.S
LGPL-2.1
5a82c74822d3272df2f5929133680478c0cfb4bd
github
libc
https://github.com/bminor/glibc/blob/5a82c74822d3272df2f5929133680478c0cfb4bd/sysdeps/i386/strchrnul.S
1
60
bminor/glibc:sysdeps/i386/strchrnul.S:1
/* strchrnul (str, chr) -- Return pointer to first occurrence of CHR in STR or the final NUL byte. For Intel 80x86, x>=3. Copyright (C) 1994-2019 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Ulrich Drepper <drepper@gnu.org> Some optimisations by Alan Modra <Ala...
x86
gas-att
handwritten
bminor/glibc
sysdeps/i386/strchrnul.S
LGPL-2.1
04277e02d7f54d3582bebcf8386b317018cd5e1d
github
libc
https://github.com/bminor/glibc/blob/04277e02d7f54d3582bebcf8386b317018cd5e1d/sysdeps/i386/strchrnul.S
1
60
bminor/glibc:sysdeps/i386/strchrnul.S:1
/* strchrnul (str, chr) -- Return pointer to first occurrence of CHR in STR or the final NUL byte. For Intel 80x86, x>=3. Copyright (C) 1994-2018 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Ulrich Drepper <drepper@gnu.org> Some optimisations by Alan Modra <Ala...
x86
gas-att
handwritten
bminor/glibc
sysdeps/i386/strchrnul.S
LGPL-2.1
688903eb3ef01301d239ab753d309d45720610a7
github
libc
https://github.com/bminor/glibc/blob/688903eb3ef01301d239ab753d309d45720610a7/sysdeps/i386/strchrnul.S
1
60
bminor/glibc:sysdeps/i386/strchrnul.S:1
/* strchrnul (str, chr) -- Return pointer to first occurrence of CHR in STR or the final NUL byte. For Intel 80x86, x>=3. Copyright (C) 1994-2017 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Ulrich Drepper <drepper@gnu.org> Some optimisations by Alan Modra <Ala...
x86
gas-att
handwritten
bminor/glibc
sysdeps/i386/strchrnul.S
LGPL-2.1
bfff8b1becd7d01c074177df7196ab327cd8c844
github
libc
https://github.com/bminor/glibc/blob/bfff8b1becd7d01c074177df7196ab327cd8c844/sysdeps/i386/strchrnul.S
1
60
bminor/glibc:sysdeps/i386/strchrnul.S:1
/* strchrnul (str, chr) -- Return pointer to first occurrence of CHR in STR or the final NUL byte. For Intel 80x86, x>=3. Copyright (C) 1994-2016 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Ulrich Drepper <drepper@gnu.org> Some optimisations by Alan Modra <Ala...
x86
gas-att
handwritten
bminor/glibc
sysdeps/i386/strchrnul.S
LGPL-2.1
f7a9f785e547bd599dee496fd906a28bcb4ec7fe
github
libc
https://github.com/bminor/glibc/blob/f7a9f785e547bd599dee496fd906a28bcb4ec7fe/sysdeps/i386/strchrnul.S
1
60
bminor/glibc:sysdeps/i386/strchrnul.S:1
/* strchrnul (str, chr) -- Return pointer to first occurrence of CHR in STR or the final NUL byte. For Intel 80x86, x>=3. Copyright (C) 1994-2015 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Ulrich Drepper <drepper@gnu.org> Some optimisations by Alan Modra <Ala...
x86
gas-att
handwritten
bminor/glibc
sysdeps/i386/strchrnul.S
LGPL-2.1
890b7a4b33d482b5c768ab47d70758b80227e9bc
github
libc
https://github.com/bminor/glibc/blob/890b7a4b33d482b5c768ab47d70758b80227e9bc/sysdeps/i386/strchrnul.S
1
60
bminor/glibc:sysdeps/i386/strcspn.S:1
/* strcspn (str, ss) -- Return the length of the initial segment of STR which contains no characters from SS. For Intel 80x86, x>=3. Copyright (C) 1994-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...
x86
gas-att
handwritten
bminor/glibc
sysdeps/i386/strcspn.S
LGPL-2.1
04e750e75b73957cf1c791535a3f4319534a52fc
github
libc
https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/i386/strcspn.S
1
60
bminor/glibc:sysdeps/i386/strcspn.S:5
pushl $0 /* get a better performance of the loop. */ cfi_adjust_cfa_offset (4) pushl $0 cfi_adjust_cfa_offset (4) pushl $0 cfi_adjust_cfa_offset (4) pushl $0 cfi_adjust_cfa_offset (4) /* For understanding the following code remember that %ecx == 0 now. Although all the following instruction only modify %cl...
x86
gas-att
handwritten
bminor/glibc
sysdeps/i386/strcspn.S
LGPL-2.1
04e750e75b73957cf1c791535a3f4319534a52fc
github
libc
https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/i386/strcspn.S
161
220
bminor/glibc:sysdeps/i386/strcspn.S:6
have to test for two termination conditions 1. a character in the stopset was found and 2. the end of the string was found But as a sign that the character is in the stopset we store its value in the table. But the value of NUL is NUL so the loop terminates for NUL in every case. */ L(3): add...
x86
gas-att
handwritten
bminor/glibc
sysdeps/i386/strcspn.S
LGPL-2.1
04e750e75b73957cf1c791535a3f4319534a52fc
github
libc
https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/i386/strcspn.S
201
238
bminor/glibc:sysdeps/i386/strcspn.S:1
/* strcspn (str, ss) -- Return the length of the initial segment of STR which contains no characters from SS. For Intel 80x86, x>=3. Copyright (C) 1994-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...
x86
gas-att
handwritten
bminor/glibc
sysdeps/i386/strcspn.S
LGPL-2.1
2642002380aafb71a1d3b569b6d7ebeab3284816
github
libc
https://github.com/bminor/glibc/blob/2642002380aafb71a1d3b569b6d7ebeab3284816/sysdeps/i386/strcspn.S
1
60
bminor/glibc:sysdeps/i386/strcspn.S:1
/* strcspn (str, ss) -- Return the length of the initial segment of STR which contains no characters from SS. For Intel 80x86, x>=3. Copyright (C) 1994-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...
x86
gas-att
handwritten
bminor/glibc
sysdeps/i386/strcspn.S
LGPL-2.1
dff8da6b3e89b986bb7f6b1ec18cf65d5972e307
github
libc
https://github.com/bminor/glibc/blob/dff8da6b3e89b986bb7f6b1ec18cf65d5972e307/sysdeps/i386/strcspn.S
1
60
bminor/glibc:sysdeps/i386/strcspn.S:1
/* strcspn (str, ss) -- Return the length of the initial segment of STR which contains no characters from SS. For Intel 80x86, x>=3. Copyright (C) 1994-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...
x86
gas-att
handwritten
bminor/glibc
sysdeps/i386/strcspn.S
LGPL-2.1
6d7e8eda9b85b08f207a6dc6f187e94e4817270f
github
libc
https://github.com/bminor/glibc/blob/6d7e8eda9b85b08f207a6dc6f187e94e4817270f/sysdeps/i386/strcspn.S
1
60
bminor/glibc:sysdeps/i386/strcspn.S:1
/* strcspn (str, ss) -- Return the length of the initial segment of STR which contains no characters from SS. For Intel 80x86, x>=3. Copyright (C) 1994-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...
x86
gas-att
handwritten
bminor/glibc
sysdeps/i386/strcspn.S
LGPL-2.1
581c785bf31bc74430320c7856bbfa3875d025fe
github
libc
https://github.com/bminor/glibc/blob/581c785bf31bc74430320c7856bbfa3875d025fe/sysdeps/i386/strcspn.S
1
60
bminor/glibc:sysdeps/i386/strcspn.S:1
/* strcspn (str, ss) -- Return the length of the initial segment of STR which contains no characters from SS. For Intel 80x86, x>=3. Copyright (C) 1994-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...
x86
gas-att
handwritten
bminor/glibc
sysdeps/i386/strcspn.S
LGPL-2.1
30891f35fa7da832b66d80d0807610df361851f3
github
libc
https://github.com/bminor/glibc/blob/30891f35fa7da832b66d80d0807610df361851f3/sysdeps/i386/strcspn.S
1
60
bminor/glibc:sysdeps/i386/strcspn.S:1
/* strcspn (str, ss) -- Return the length of the initial segment of STR which contains no characters from SS. For Intel 80x86, x>=3. Copyright (C) 1994-2021 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Ulrich Drepper <drepper@gnu.ai.mit.edu> Bug fixes by Alan M...
x86
gas-att
handwritten
bminor/glibc
sysdeps/i386/strcspn.S
LGPL-2.1
2b778ceb4010c28d70de9b8eab20e8d88eed586b
github
libc
https://github.com/bminor/glibc/blob/2b778ceb4010c28d70de9b8eab20e8d88eed586b/sysdeps/i386/strcspn.S
1
60
bminor/glibc:sysdeps/i386/strcspn.S:2
xorl %ecx, %ecx /* %ecx = 0 !!! */ pushl %ecx /* make a 256 bytes long block filled with 0 */ cfi_adjust_cfa_offset (4) pushl %ecx cfi_adjust_cfa_offset (4) pushl %ecx cfi_adjust_cfa_offset (4) pushl %ecx cfi_adjust_cfa_offset (4) pushl %ecx cfi_adjust_cfa_offset (4) pushl %ecx cfi_adjust_cfa_offset (4) ...
x86
gas-att
handwritten
bminor/glibc
sysdeps/i386/strcspn.S
LGPL-2.1
2b778ceb4010c28d70de9b8eab20e8d88eed586b
github
libc
https://github.com/bminor/glibc/blob/2b778ceb4010c28d70de9b8eab20e8d88eed586b/sysdeps/i386/strcspn.S
41
100
bminor/glibc:sysdeps/i386/strcspn.S:4
pushl %ecx cfi_adjust_cfa_offset (4) pushl %ecx cfi_adjust_cfa_offset (4) pushl %ecx cfi_adjust_cfa_offset (4) pushl %ecx cfi_adjust_cfa_offset (4) pushl %ecx cfi_adjust_cfa_offset (4) pushl %ecx cfi_adjust_cfa_offset (4) pushl %ecx cfi_adjust_cfa_offset (4) pushl %ecx cfi_adjust_cfa_offset (4) pushl %e...
x86
gas-att
handwritten
bminor/glibc
sysdeps/i386/strcspn.S
LGPL-2.1
2b778ceb4010c28d70de9b8eab20e8d88eed586b
github
libc
https://github.com/bminor/glibc/blob/2b778ceb4010c28d70de9b8eab20e8d88eed586b/sysdeps/i386/strcspn.S
121
180
bminor/glibc:sysdeps/i386/strcspn.S:5
pushl $0 /* to be aligned on a 16 byte boundary to */ cfi_adjust_cfa_offset (4) pushl $0 /* get a better performance of the loop. */ cfi_adjust_cfa_offset (4) pushl $0 cfi_adjust_cfa_offset (4) pushl $0 cfi_adjust_cfa_offset (4) pushl $0 cfi_adjust_cfa_offset (4) /* For understanding the following code rem...
x86
gas-att
handwritten
bminor/glibc
sysdeps/i386/strcspn.S
LGPL-2.1
2b778ceb4010c28d70de9b8eab20e8d88eed586b
github
libc
https://github.com/bminor/glibc/blob/2b778ceb4010c28d70de9b8eab20e8d88eed586b/sysdeps/i386/strcspn.S
161
220
bminor/glibc:sysdeps/i386/strcspn.S:6
/* We use a neat trick for the following loop. Normally we would have to test for two termination conditions 1. a character in the stopset was found and 2. the end of the string was found But as a sign that the character is in the stopset we store its value in the table. But the value of NUL i...
x86
gas-att
handwritten
bminor/glibc
sysdeps/i386/strcspn.S
LGPL-2.1
2b778ceb4010c28d70de9b8eab20e8d88eed586b
github
libc
https://github.com/bminor/glibc/blob/2b778ceb4010c28d70de9b8eab20e8d88eed586b/sysdeps/i386/strcspn.S
201
240
bminor/glibc:sysdeps/i386/strcspn.S:1
/* strcspn (str, ss) -- Return the length of the initial segment of STR which contains no characters from SS. For Intel 80x86, x>=3. Copyright (C) 1994-2020 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Ulrich Drepper <drepper@gnu.ai.mit.edu> Bug fixes by Alan M...
x86
gas-att
handwritten
bminor/glibc
sysdeps/i386/strcspn.S
LGPL-2.1
d614a7539657941a9201c236b2f15afac18e1213
github
libc
https://github.com/bminor/glibc/blob/d614a7539657941a9201c236b2f15afac18e1213/sysdeps/i386/strcspn.S
1
60
bminor/glibc:sysdeps/i386/strcspn.S:1
/* strcspn (str, ss) -- Return the length of the initial segment of STR which contains no characters from SS. For Intel 80x86, x>=3. Copyright (C) 1994-2019 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Ulrich Drepper <drepper@gnu.ai.mit.edu> Bug fixes by Alan M...
x86
gas-att
handwritten
bminor/glibc
sysdeps/i386/strcspn.S
LGPL-2.1
5a82c74822d3272df2f5929133680478c0cfb4bd
github
libc
https://github.com/bminor/glibc/blob/5a82c74822d3272df2f5929133680478c0cfb4bd/sysdeps/i386/strcspn.S
1
60
bminor/glibc:sysdeps/i386/strcspn.S:1
/* strcspn (str, ss) -- Return the length of the initial segment of STR which contains no characters from SS. For Intel 80x86, x>=3. Copyright (C) 1994-2019 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Ulrich Drepper <drepper@gnu.ai.mit.edu> Bug fixes by Alan M...
x86
gas-att
handwritten
bminor/glibc
sysdeps/i386/strcspn.S
LGPL-2.1
04277e02d7f54d3582bebcf8386b317018cd5e1d
github
libc
https://github.com/bminor/glibc/blob/04277e02d7f54d3582bebcf8386b317018cd5e1d/sysdeps/i386/strcspn.S
1
60
bminor/glibc:sysdeps/i386/strcspn.S:1
/* strcspn (str, ss) -- Return the length of the initial segment of STR which contains no characters from SS. For Intel 80x86, x>=3. Copyright (C) 1994-2018 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Ulrich Drepper <drepper@gnu.ai.mit.edu> Bug fixes by Alan M...
x86
gas-att
handwritten
bminor/glibc
sysdeps/i386/strcspn.S
LGPL-2.1
688903eb3ef01301d239ab753d309d45720610a7
github
libc
https://github.com/bminor/glibc/blob/688903eb3ef01301d239ab753d309d45720610a7/sysdeps/i386/strcspn.S
1
60
bminor/glibc:sysdeps/i386/strcspn.S:1
/* strcspn (str, ss) -- Return the length of the initial segment of STR which contains no characters from SS. For Intel 80x86, x>=3. Copyright (C) 1994-2017 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Ulrich Drepper <drepper@gnu.ai.mit.edu> Bug fixes by Alan M...
x86
gas-att
handwritten
bminor/glibc
sysdeps/i386/strcspn.S
LGPL-2.1
bfff8b1becd7d01c074177df7196ab327cd8c844
github
libc
https://github.com/bminor/glibc/blob/bfff8b1becd7d01c074177df7196ab327cd8c844/sysdeps/i386/strcspn.S
1
60
bminor/glibc:sysdeps/i386/strcspn.S:1
/* strcspn (str, ss) -- Return the length of the initial segment of STR which contains no characters from SS. For Intel 80x86, x>=3. Copyright (C) 1994-2016 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Ulrich Drepper <drepper@gnu.ai.mit.edu> Bug fixes by Alan M...
x86
gas-att
handwritten
bminor/glibc
sysdeps/i386/strcspn.S
LGPL-2.1
f7a9f785e547bd599dee496fd906a28bcb4ec7fe
github
libc
https://github.com/bminor/glibc/blob/f7a9f785e547bd599dee496fd906a28bcb4ec7fe/sysdeps/i386/strcspn.S
1
60
bminor/glibc:sysdeps/i386/strcspn.S:1
/* strcspn (str, ss) -- Return the length of the initial segment of STR which contains no characters from SS. For Intel 80x86, x>=3. Copyright (C) 1994-2015 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Ulrich Drepper <drepper@gnu.ai.mit.edu> Bug fixes by Alan M...
x86
gas-att
handwritten
bminor/glibc
sysdeps/i386/strcspn.S
LGPL-2.1
890b7a4b33d482b5c768ab47d70758b80227e9bc
github
libc
https://github.com/bminor/glibc/blob/890b7a4b33d482b5c768ab47d70758b80227e9bc/sysdeps/i386/strcspn.S
1
60
bminor/glibc:sysdeps/i386/strlen.S:1
/* strlen(str) -- determine the length of the string STR. Optimized for Intel 80x86, x>=4. Copyright (C) 1991-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...
x86
gas-att
handwritten
bminor/glibc
sysdeps/i386/strlen.S
LGPL-2.1
04e750e75b73957cf1c791535a3f4319534a52fc
github
libc
https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/i386/strlen.S
1
60
bminor/glibc:sysdeps/i386/strlen.S:2
je L(2) /* yes => return */ addl $1, %eax /* increment pointer */ subl $1, %ecx /* was alignment = 2? */ jz L(1) /* yes => now it is aligned and start loop */ cmpb %ch, (%eax) /* is byte NUL? */ je L(2) /* yes => return */ /* Don't change the above `addl $1,%eax' and `subl $1, %ecx' into `incl %eax' a...
x86
gas-att
handwritten
bminor/glibc
sysdeps/i386/strlen.S
LGPL-2.1
04e750e75b73957cf1c791535a3f4319534a52fc
github
libc
https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/i386/strlen.S
41
100
bminor/glibc:sysdeps/i386/strlen.S:3
xorl %ecx, %edx /* (word+magic)^word */ orl $0xfefefeff, %edx /* set all non-carry bits */ incl %edx /* add 1: if one carry bit was *not* set the addition will not result in 0. */ jnz L(5) /* found NUL => return pointer */ movl 8(%eax), %ecx /* get word (= 4 bytes) in question */ movl $0xfefefeff, %edx...
x86
gas-att
handwritten
bminor/glibc
sysdeps/i386/strlen.S
LGPL-2.1
04e750e75b73957cf1c791535a3f4319534a52fc
github
libc
https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/i386/strlen.S
81
131
bminor/glibc:sysdeps/i386/strlen.S:4
incl %eax /* increment pointer */ testl $0xff0000, %ecx /* is third byte NUL? */ jz L(2) /* yes => return pointer */ incl %eax /* increment pointer */ L(2): subl STR(%esp), %eax /* compute difference to string start */ ret END (strlen) libc_hidden_builtin_def (strlen)
x86
gas-att
handwritten
bminor/glibc
sysdeps/i386/strlen.S
LGPL-2.1
04e750e75b73957cf1c791535a3f4319534a52fc
github
libc
https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/i386/strlen.S
121
131
bminor/glibc:sysdeps/i386/strlen.S:1
/* strlen(str) -- determine the length of the string STR. Optimized for Intel 80x86, x>=4. Copyright (C) 1991-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...
x86
gas-att
handwritten
bminor/glibc
sysdeps/i386/strlen.S
LGPL-2.1
2642002380aafb71a1d3b569b6d7ebeab3284816
github
libc
https://github.com/bminor/glibc/blob/2642002380aafb71a1d3b569b6d7ebeab3284816/sysdeps/i386/strlen.S
1
60
bminor/glibc:sysdeps/i386/strlen.S:1
/* strlen(str) -- determine the length of the string STR. Optimized for Intel 80x86, x>=4. Copyright (C) 1991-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...
x86
gas-att
handwritten
bminor/glibc
sysdeps/i386/strlen.S
LGPL-2.1
dff8da6b3e89b986bb7f6b1ec18cf65d5972e307
github
libc
https://github.com/bminor/glibc/blob/dff8da6b3e89b986bb7f6b1ec18cf65d5972e307/sysdeps/i386/strlen.S
1
60
bminor/glibc:sysdeps/i386/strlen.S:1
/* strlen(str) -- determine the length of the string STR. Optimized for Intel 80x86, x>=4. Copyright (C) 1991-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...
x86
gas-att
handwritten
bminor/glibc
sysdeps/i386/strlen.S
LGPL-2.1
6d7e8eda9b85b08f207a6dc6f187e94e4817270f
github
libc
https://github.com/bminor/glibc/blob/6d7e8eda9b85b08f207a6dc6f187e94e4817270f/sysdeps/i386/strlen.S
1
60
bminor/glibc:sysdeps/i386/strlen.S:1
/* strlen(str) -- determine the length of the string STR. Optimized for Intel 80x86, x>=4. Copyright (C) 1991-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...
x86
gas-att
handwritten
bminor/glibc
sysdeps/i386/strlen.S
LGPL-2.1
581c785bf31bc74430320c7856bbfa3875d025fe
github
libc
https://github.com/bminor/glibc/blob/581c785bf31bc74430320c7856bbfa3875d025fe/sysdeps/i386/strlen.S
1
60
bminor/glibc:sysdeps/i386/strlen.S:1
/* strlen(str) -- determine the length of the string STR. Optimized for Intel 80x86, x>=4. Copyright (C) 1991-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...
x86
gas-att
handwritten
bminor/glibc
sysdeps/i386/strlen.S
LGPL-2.1
30891f35fa7da832b66d80d0807610df361851f3
github
libc
https://github.com/bminor/glibc/blob/30891f35fa7da832b66d80d0807610df361851f3/sysdeps/i386/strlen.S
1
60
bminor/glibc:sysdeps/i386/strlen.S:1
/* strlen(str) -- determine the length of the string STR. Optimized for Intel 80x86, x>=4. Copyright (C) 1991-2021 Free Software Foundation, Inc. Contributed by Ulrich Drepper <drepper@gnu.ai.mit.edu>. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it an...
x86
gas-att
handwritten
bminor/glibc
sysdeps/i386/strlen.S
LGPL-2.1
2b778ceb4010c28d70de9b8eab20e8d88eed586b
github
libc
https://github.com/bminor/glibc/blob/2b778ceb4010c28d70de9b8eab20e8d88eed586b/sysdeps/i386/strlen.S
1
60
bminor/glibc:sysdeps/i386/strlen.S:2
cmpb %ch, (%eax) /* is byte NUL? */ je L(2) /* yes => return */ addl $1, %eax /* increment pointer */ subl $1, %ecx /* was alignment = 2? */ jz L(1) /* yes => now it is aligned and start loop */ cmpb %ch, (%eax) /* is byte NUL? */ je L(2) /* yes => return */ /* Don't change the above `addl $1,%eax' and ...
x86
gas-att
handwritten
bminor/glibc
sysdeps/i386/strlen.S
LGPL-2.1
2b778ceb4010c28d70de9b8eab20e8d88eed586b
github
libc
https://github.com/bminor/glibc/blob/2b778ceb4010c28d70de9b8eab20e8d88eed586b/sysdeps/i386/strlen.S
41
100
bminor/glibc:sysdeps/i386/strlen.S:3
jnc L(5) /* highest byte is NUL => return pointer */ xorl %ecx, %edx /* (word+magic)^word */ orl $0xfefefeff, %edx /* set all non-carry bits */ incl %edx /* add 1: if one carry bit was *not* set the addition will not result in 0. */ jnz L(5) /* found NUL => return pointer */ movl 8(%eax), %ecx /* get ...
x86
gas-att
handwritten
bminor/glibc
sysdeps/i386/strlen.S
LGPL-2.1
2b778ceb4010c28d70de9b8eab20e8d88eed586b
github
libc
https://github.com/bminor/glibc/blob/2b778ceb4010c28d70de9b8eab20e8d88eed586b/sysdeps/i386/strlen.S
81
132
bminor/glibc:sysdeps/i386/strlen.S:4
jz L(2) /* yes => return */ incl %eax /* increment pointer */ testl $0xff0000, %ecx /* is third byte NUL? */ jz L(2) /* yes => return pointer */ incl %eax /* increment pointer */ L(2): subl STR(%esp), %eax /* compute difference to string start */ ret END (strlen) libc_hidden_builtin_def (strlen)
x86
gas-att
handwritten
bminor/glibc
sysdeps/i386/strlen.S
LGPL-2.1
2b778ceb4010c28d70de9b8eab20e8d88eed586b
github
libc
https://github.com/bminor/glibc/blob/2b778ceb4010c28d70de9b8eab20e8d88eed586b/sysdeps/i386/strlen.S
121
132
bminor/glibc:sysdeps/i386/strlen.S:1
/* strlen(str) -- determine the length of the string STR. Optimized for Intel 80x86, x>=4. Copyright (C) 1991-2020 Free Software Foundation, Inc. Contributed by Ulrich Drepper <drepper@gnu.ai.mit.edu>. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it an...
x86
gas-att
handwritten
bminor/glibc
sysdeps/i386/strlen.S
LGPL-2.1
d614a7539657941a9201c236b2f15afac18e1213
github
libc
https://github.com/bminor/glibc/blob/d614a7539657941a9201c236b2f15afac18e1213/sysdeps/i386/strlen.S
1
60
bminor/glibc:sysdeps/i386/strlen.S:1
/* strlen(str) -- determine the length of the string STR. Optimized for Intel 80x86, x>=4. Copyright (C) 1991-2019 Free Software Foundation, Inc. Contributed by Ulrich Drepper <drepper@gnu.ai.mit.edu>. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it an...
x86
gas-att
handwritten
bminor/glibc
sysdeps/i386/strlen.S
LGPL-2.1
5a82c74822d3272df2f5929133680478c0cfb4bd
github
libc
https://github.com/bminor/glibc/blob/5a82c74822d3272df2f5929133680478c0cfb4bd/sysdeps/i386/strlen.S
1
60
bminor/glibc:sysdeps/i386/strlen.S:1
/* strlen(str) -- determine the length of the string STR. Optimized for Intel 80x86, x>=4. Copyright (C) 1991-2019 Free Software Foundation, Inc. Contributed by Ulrich Drepper <drepper@gnu.ai.mit.edu>. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it an...
x86
gas-att
handwritten
bminor/glibc
sysdeps/i386/strlen.S
LGPL-2.1
04277e02d7f54d3582bebcf8386b317018cd5e1d
github
libc
https://github.com/bminor/glibc/blob/04277e02d7f54d3582bebcf8386b317018cd5e1d/sysdeps/i386/strlen.S
1
60
bminor/glibc:sysdeps/i386/strlen.S:1
/* strlen(str) -- determine the length of the string STR. Optimized for Intel 80x86, x>=4. Copyright (C) 1991-2018 Free Software Foundation, Inc. Contributed by Ulrich Drepper <drepper@gnu.ai.mit.edu>. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it an...
x86
gas-att
handwritten
bminor/glibc
sysdeps/i386/strlen.S
LGPL-2.1
688903eb3ef01301d239ab753d309d45720610a7
github
libc
https://github.com/bminor/glibc/blob/688903eb3ef01301d239ab753d309d45720610a7/sysdeps/i386/strlen.S
1
60
bminor/glibc:sysdeps/i386/strlen.S:1
/* strlen(str) -- determine the length of the string STR. Optimized for Intel 80x86, x>=4. Copyright (C) 1991-2017 Free Software Foundation, Inc. Contributed by Ulrich Drepper <drepper@gnu.ai.mit.edu>. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it an...
x86
gas-att
handwritten
bminor/glibc
sysdeps/i386/strlen.S
LGPL-2.1
bfff8b1becd7d01c074177df7196ab327cd8c844
github
libc
https://github.com/bminor/glibc/blob/bfff8b1becd7d01c074177df7196ab327cd8c844/sysdeps/i386/strlen.S
1
60
bminor/glibc:sysdeps/i386/strlen.S:1
/* strlen(str) -- determine the length of the string STR. Optimized for Intel 80x86, x>=4. Copyright (C) 1991-2016 Free Software Foundation, Inc. Contributed by Ulrich Drepper <drepper@gnu.ai.mit.edu>. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it an...
x86
gas-att
handwritten
bminor/glibc
sysdeps/i386/strlen.S
LGPL-2.1
f7a9f785e547bd599dee496fd906a28bcb4ec7fe
github
libc
https://github.com/bminor/glibc/blob/f7a9f785e547bd599dee496fd906a28bcb4ec7fe/sysdeps/i386/strlen.S
1
60
bminor/glibc:sysdeps/i386/strpbrk.S:1
/* strcspn (str, ss) -- Return the length of the initial segment of STR which contains no characters from SS. For Intel 80x86, x>=3. Copyright (C) 1994-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...
x86
gas-att
handwritten
bminor/glibc
sysdeps/i386/strpbrk.S
LGPL-2.1
04e750e75b73957cf1c791535a3f4319534a52fc
github
libc
https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/i386/strpbrk.S
1
60
bminor/glibc:sysdeps/i386/strpbrk.S:2
pushl %ecx /* make a 256 bytes long block filled with 0 */ cfi_adjust_cfa_offset (4) pushl %ecx cfi_adjust_cfa_offset (4) pushl %ecx cfi_adjust_cfa_offset (4) pushl %ecx cfi_adjust_cfa_offset (4) pushl %ecx cfi_adjust_cfa_offset (4) pushl %ecx cfi_adjust_cfa_offset (4) pushl %ecx cfi_adjust_cfa_offset (4)...
x86
gas-att
handwritten
bminor/glibc
sysdeps/i386/strpbrk.S
LGPL-2.1
04e750e75b73957cf1c791535a3f4319534a52fc
github
libc
https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/i386/strpbrk.S
41
100
bminor/glibc:sysdeps/i386/strpbrk.S:3
cfi_adjust_cfa_offset (4) pushl %ecx cfi_adjust_cfa_offset (4) pushl %ecx cfi_adjust_cfa_offset (4) pushl %ecx cfi_adjust_cfa_offset (4) pushl %ecx cfi_adjust_cfa_offset (4) pushl %ecx cfi_adjust_cfa_offset (4) pushl %ecx cfi_adjust_cfa_offset (4) pushl %ecx cfi_adjust_cfa_offset (4) pushl %ecx cfi_adju...
x86
gas-att
handwritten
bminor/glibc
sysdeps/i386/strpbrk.S
LGPL-2.1
04e750e75b73957cf1c791535a3f4319534a52fc
github
libc
https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/i386/strpbrk.S
81
140
bminor/glibc:sysdeps/i386/strpbrk.S:4
cfi_adjust_cfa_offset (4) pushl %ecx cfi_adjust_cfa_offset (4) pushl %ecx cfi_adjust_cfa_offset (4) pushl %ecx cfi_adjust_cfa_offset (4) pushl %ecx cfi_adjust_cfa_offset (4) pushl %ecx cfi_adjust_cfa_offset (4) pushl %ecx cfi_adjust_cfa_offset (4) pushl %ecx cfi_adjust_cfa_offset (4) pushl %ecx cfi_adju...
x86
gas-att
handwritten
bminor/glibc
sysdeps/i386/strpbrk.S
LGPL-2.1
04e750e75b73957cf1c791535a3f4319534a52fc
github
libc
https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/i386/strpbrk.S
121
180
bminor/glibc:sysdeps/i386/strpbrk.S:5
cfi_adjust_cfa_offset (4) pushl $0 /* get a better performance of the loop. */ cfi_adjust_cfa_offset (4) pushl $0 cfi_adjust_cfa_offset (4) pushl $0 cfi_adjust_cfa_offset (4) pushl $0 cfi_adjust_cfa_offset (4) /* For understanding the following code remember that %ecx == 0 now. Although all the following ...
x86
gas-att
handwritten
bminor/glibc
sysdeps/i386/strpbrk.S
LGPL-2.1
04e750e75b73957cf1c791535a3f4319534a52fc
github
libc
https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/i386/strpbrk.S
161
220
bminor/glibc:sysdeps/i386/strpbrk.S:6
/* We use a neat trick for the following loop. Normally we would have to test for two termination conditions 1. a character in the stopset was found and 2. the end of the string was found But as a sign that the character is in the stopset we store its value in the table. But the value of NUL i...
x86
gas-att
handwritten
bminor/glibc
sysdeps/i386/strpbrk.S
LGPL-2.1
04e750e75b73957cf1c791535a3f4319534a52fc
github
libc
https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/i386/strpbrk.S
201
241
bminor/glibc:sysdeps/i386/strpbrk.S:1
/* strcspn (str, ss) -- Return the length of the initial segment of STR which contains no characters from SS. For Intel 80x86, x>=3. Copyright (C) 1994-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...
x86
gas-att
handwritten
bminor/glibc
sysdeps/i386/strpbrk.S
LGPL-2.1
2642002380aafb71a1d3b569b6d7ebeab3284816
github
libc
https://github.com/bminor/glibc/blob/2642002380aafb71a1d3b569b6d7ebeab3284816/sysdeps/i386/strpbrk.S
1
60
bminor/glibc:sysdeps/i386/strpbrk.S:1
/* strcspn (str, ss) -- Return the length of the initial segment of STR which contains no characters from SS. For Intel 80x86, x>=3. Copyright (C) 1994-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...
x86
gas-att
handwritten
bminor/glibc
sysdeps/i386/strpbrk.S
LGPL-2.1
dff8da6b3e89b986bb7f6b1ec18cf65d5972e307
github
libc
https://github.com/bminor/glibc/blob/dff8da6b3e89b986bb7f6b1ec18cf65d5972e307/sysdeps/i386/strpbrk.S
1
60
bminor/glibc:sysdeps/i386/strpbrk.S:1
/* strcspn (str, ss) -- Return the length of the initial segment of STR which contains no characters from SS. For Intel 80x86, x>=3. Copyright (C) 1994-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...
x86
gas-att
handwritten
bminor/glibc
sysdeps/i386/strpbrk.S
LGPL-2.1
65cc53fe7c6556b90159b8c3da1eb283792387db
github
libc
https://github.com/bminor/glibc/blob/65cc53fe7c6556b90159b8c3da1eb283792387db/sysdeps/i386/strpbrk.S
1
60
bminor/glibc:sysdeps/i386/strpbrk.S:1
/* strcspn (str, ss) -- Return the length of the initial segement of STR which contains no characters from SS. For Intel 80x86, x>=3. Copyright (C) 1994-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 modif...
x86
gas-att
handwritten
bminor/glibc
sysdeps/i386/strpbrk.S
LGPL-2.1
6d7e8eda9b85b08f207a6dc6f187e94e4817270f
github
libc
https://github.com/bminor/glibc/blob/6d7e8eda9b85b08f207a6dc6f187e94e4817270f/sysdeps/i386/strpbrk.S
1
60
bminor/glibc:sysdeps/i386/strpbrk.S:1
/* strcspn (str, ss) -- Return the length of the initial segement of STR which contains no characters from SS. For Intel 80x86, x>=3. Copyright (C) 1994-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 modif...
x86
gas-att
handwritten
bminor/glibc
sysdeps/i386/strpbrk.S
LGPL-2.1
581c785bf31bc74430320c7856bbfa3875d025fe
github
libc
https://github.com/bminor/glibc/blob/581c785bf31bc74430320c7856bbfa3875d025fe/sysdeps/i386/strpbrk.S
1
60
bminor/glibc:sysdeps/i386/strpbrk.S:1
/* strcspn (str, ss) -- Return the length of the initial segement of STR which contains no characters from SS. For Intel 80x86, x>=3. Copyright (C) 1994-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 modif...
x86
gas-att
handwritten
bminor/glibc
sysdeps/i386/strpbrk.S
LGPL-2.1
30891f35fa7da832b66d80d0807610df361851f3
github
libc
https://github.com/bminor/glibc/blob/30891f35fa7da832b66d80d0807610df361851f3/sysdeps/i386/strpbrk.S
1
60
bminor/glibc:sysdeps/i386/strpbrk.S:1
/* strcspn (str, ss) -- Return the length of the initial segement of STR which contains no characters from SS. For Intel 80x86, x>=3. Copyright (C) 1994-2021 Free Software Foundation, Inc. Contributed by Ulrich Drepper <drepper@gnu.ai.mit.edu> Bug fixes by Alan Modra <Alan@SPRI.Levels.UniSA.Edu.Au> Th...
x86
gas-att
handwritten
bminor/glibc
sysdeps/i386/strpbrk.S
LGPL-2.1
2b778ceb4010c28d70de9b8eab20e8d88eed586b
github
libc
https://github.com/bminor/glibc/blob/2b778ceb4010c28d70de9b8eab20e8d88eed586b/sysdeps/i386/strpbrk.S
1
60
bminor/glibc:sysdeps/i386/strpbrk.S:2
table. The unrolled form is much faster than a loop. */ xorl %ecx, %ecx /* %ecx = 0 !!! */ pushl %ecx /* make a 256 bytes long block filled with 0 */ cfi_adjust_cfa_offset (4) pushl %ecx cfi_adjust_cfa_offset (4) pushl %ecx cfi_adjust_cfa_offset (4) pushl %ecx cfi_adjust_cfa_offset (4) pushl %ecx cfi_ad...
x86
gas-att
handwritten
bminor/glibc
sysdeps/i386/strpbrk.S
LGPL-2.1
2b778ceb4010c28d70de9b8eab20e8d88eed586b
github
libc
https://github.com/bminor/glibc/blob/2b778ceb4010c28d70de9b8eab20e8d88eed586b/sysdeps/i386/strpbrk.S
41
100
bminor/glibc:sysdeps/i386/strpbrk.S:4
cfi_adjust_cfa_offset (4) pushl %ecx cfi_adjust_cfa_offset (4) pushl %ecx cfi_adjust_cfa_offset (4) pushl %ecx cfi_adjust_cfa_offset (4) pushl %ecx cfi_adjust_cfa_offset (4) pushl %ecx cfi_adjust_cfa_offset (4) pushl %ecx cfi_adjust_cfa_offset (4) pushl %ecx cfi_adjust_cfa_offset (4) pushl %ecx cfi_adju...
x86
gas-att
handwritten
bminor/glibc
sysdeps/i386/strpbrk.S
LGPL-2.1
2b778ceb4010c28d70de9b8eab20e8d88eed586b
github
libc
https://github.com/bminor/glibc/blob/2b778ceb4010c28d70de9b8eab20e8d88eed586b/sysdeps/i386/strpbrk.S
121
180
bminor/glibc:sysdeps/i386/strpbrk.S:5
cfi_adjust_cfa_offset (4) pushl $0 /* to be aligned on a 16 byte boundary to */ cfi_adjust_cfa_offset (4) pushl $0 /* get a better performance of the loop. */ cfi_adjust_cfa_offset (4) pushl $0 cfi_adjust_cfa_offset (4) pushl $0 cfi_adjust_cfa_offset (4) pushl $0 cfi_adjust_cfa_offset (4) /* For understan...
x86
gas-att
handwritten
bminor/glibc
sysdeps/i386/strpbrk.S
LGPL-2.1
2b778ceb4010c28d70de9b8eab20e8d88eed586b
github
libc
https://github.com/bminor/glibc/blob/2b778ceb4010c28d70de9b8eab20e8d88eed586b/sysdeps/i386/strpbrk.S
161
220
bminor/glibc:sysdeps/i386/strpbrk.S:6
L(1): leal -4(%edx), %eax /* prepare loop */ /* We use a neat trick for the following loop. Normally we would have to test for two termination conditions 1. a character in the stopset was found and 2. the end of the string was found But as a sign that the character is in the stopset we store its ...
x86
gas-att
handwritten
bminor/glibc
sysdeps/i386/strpbrk.S
LGPL-2.1
2b778ceb4010c28d70de9b8eab20e8d88eed586b
github
libc
https://github.com/bminor/glibc/blob/2b778ceb4010c28d70de9b8eab20e8d88eed586b/sysdeps/i386/strpbrk.S
201
243
bminor/glibc:sysdeps/i386/strpbrk.S:1
/* strcspn (str, ss) -- Return the length of the initial segement of STR which contains no characters from SS. For Intel 80x86, x>=3. Copyright (C) 1994-2020 Free Software Foundation, Inc. Contributed by Ulrich Drepper <drepper@gnu.ai.mit.edu> Bug fixes by Alan Modra <Alan@SPRI.Levels.UniSA.Edu.Au> Th...
x86
gas-att
handwritten
bminor/glibc
sysdeps/i386/strpbrk.S
LGPL-2.1
d614a7539657941a9201c236b2f15afac18e1213
github
libc
https://github.com/bminor/glibc/blob/d614a7539657941a9201c236b2f15afac18e1213/sysdeps/i386/strpbrk.S
1
60
bminor/glibc:sysdeps/i386/strpbrk.S:1
/* strcspn (str, ss) -- Return the length of the initial segement of STR which contains no characters from SS. For Intel 80x86, x>=3. Copyright (C) 1994-2019 Free Software Foundation, Inc. Contributed by Ulrich Drepper <drepper@gnu.ai.mit.edu> Bug fixes by Alan Modra <Alan@SPRI.Levels.UniSA.Edu.Au> Th...
x86
gas-att
handwritten
bminor/glibc
sysdeps/i386/strpbrk.S
LGPL-2.1
5a82c74822d3272df2f5929133680478c0cfb4bd
github
libc
https://github.com/bminor/glibc/blob/5a82c74822d3272df2f5929133680478c0cfb4bd/sysdeps/i386/strpbrk.S
1
60
bminor/glibc:sysdeps/i386/strpbrk.S:1
/* strcspn (str, ss) -- Return the length of the initial segement of STR which contains no characters from SS. For Intel 80x86, x>=3. Copyright (C) 1994-2019 Free Software Foundation, Inc. Contributed by Ulrich Drepper <drepper@gnu.ai.mit.edu> Bug fixes by Alan Modra <Alan@SPRI.Levels.UniSA.Edu.Au> Th...
x86
gas-att
handwritten
bminor/glibc
sysdeps/i386/strpbrk.S
LGPL-2.1
04277e02d7f54d3582bebcf8386b317018cd5e1d
github
libc
https://github.com/bminor/glibc/blob/04277e02d7f54d3582bebcf8386b317018cd5e1d/sysdeps/i386/strpbrk.S
1
60
bminor/glibc:sysdeps/i386/strpbrk.S:1
/* strcspn (str, ss) -- Return the length of the initial segement of STR which contains no characters from SS. For Intel 80x86, x>=3. Copyright (C) 1994-2018 Free Software Foundation, Inc. Contributed by Ulrich Drepper <drepper@gnu.ai.mit.edu> Bug fixes by Alan Modra <Alan@SPRI.Levels.UniSA.Edu.Au> Th...
x86
gas-att
handwritten
bminor/glibc
sysdeps/i386/strpbrk.S
LGPL-2.1
688903eb3ef01301d239ab753d309d45720610a7
github
libc
https://github.com/bminor/glibc/blob/688903eb3ef01301d239ab753d309d45720610a7/sysdeps/i386/strpbrk.S
1
60
bminor/glibc:sysdeps/i386/strpbrk.S:1
/* strcspn (str, ss) -- Return the length of the initial segement of STR which contains no characters from SS. For Intel 80x86, x>=3. Copyright (C) 1994-2017 Free Software Foundation, Inc. Contributed by Ulrich Drepper <drepper@gnu.ai.mit.edu> Bug fixes by Alan Modra <Alan@SPRI.Levels.UniSA.Edu.Au> Th...
x86
gas-att
handwritten
bminor/glibc
sysdeps/i386/strpbrk.S
LGPL-2.1
bfff8b1becd7d01c074177df7196ab327cd8c844
github
libc
https://github.com/bminor/glibc/blob/bfff8b1becd7d01c074177df7196ab327cd8c844/sysdeps/i386/strpbrk.S
1
60
bminor/glibc:sysdeps/i386/strpbrk.S:1
/* strcspn (str, ss) -- Return the length of the initial segement of STR which contains no characters from SS. For Intel 80x86, x>=3. Copyright (C) 1994-2016 Free Software Foundation, Inc. Contributed by Ulrich Drepper <drepper@gnu.ai.mit.edu> Bug fixes by Alan Modra <Alan@SPRI.Levels.UniSA.Edu.Au> Th...
x86
gas-att
handwritten
bminor/glibc
sysdeps/i386/strpbrk.S
LGPL-2.1
f7a9f785e547bd599dee496fd906a28bcb4ec7fe
github
libc
https://github.com/bminor/glibc/blob/f7a9f785e547bd599dee496fd906a28bcb4ec7fe/sysdeps/i386/strpbrk.S
1
60
bminor/glibc:sysdeps/i386/strpbrk.S:1
/* strcspn (str, ss) -- Return the length of the initial segement of STR which contains no characters from SS. For Intel 80x86, x>=3. Copyright (C) 1994-2015 Free Software Foundation, Inc. Contributed by Ulrich Drepper <drepper@gnu.ai.mit.edu> Bug fixes by Alan Modra <Alan@SPRI.Levels.UniSA.Edu.Au> Th...
x86
gas-att
handwritten
bminor/glibc
sysdeps/i386/strpbrk.S
LGPL-2.1
890b7a4b33d482b5c768ab47d70758b80227e9bc
github
libc
https://github.com/bminor/glibc/blob/890b7a4b33d482b5c768ab47d70758b80227e9bc/sysdeps/i386/strpbrk.S
1
60
bminor/glibc:sysdeps/i386/strrchr.S:1
/* strrchr (str, ch) -- Return pointer to last occurrence of CH in STR. For Intel 80x86, x>=3. Copyright (C) 1994-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 Gen...
x86
gas-att
handwritten
bminor/glibc
sysdeps/i386/strrchr.S
LGPL-2.1
04e750e75b73957cf1c791535a3f4319534a52fc
github
libc
https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/i386/strrchr.S
1
60
bminor/glibc:sysdeps/i386/strrchr.S:2
/* At the moment %ecx contains C. What we need for the algorithm is C in all bytes of the dword. Avoid operations on 16 bit words because these require an prefix byte (and one more cycle). */ movb %cl, %ch /* now it is 0|0|c|c */ movl %ecx, %edx shll $16, %ecx /* now it is c|c|0|0 */ movw %dx, %cx ...
x86
gas-att
handwritten
bminor/glibc
sysdeps/i386/strrchr.S
LGPL-2.1
04e750e75b73957cf1c791535a3f4319534a52fc
github
libc
https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/i386/strrchr.S
41
100
bminor/glibc:sysdeps/i386/strrchr.S:3
testl $3, %esi /* correctly aligned ? */ jz L(19) /* yes => begin loop */ movb (%esi), %dl /* load byte in question (we need it twice) */ cmpb %dl, %cl /* compare byte */ jne L(13) /* target found => return */ movl %esi, %eax /* remember pointer as result */ L(13): orb %dl, %dl /* is NUL? */ jz L(2) /* y...
x86
gas-att
handwritten
bminor/glibc
sysdeps/i386/strrchr.S
LGPL-2.1
04e750e75b73957cf1c791535a3f4319534a52fc
github
libc
https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/i386/strrchr.S
81
140
bminor/glibc:sysdeps/i386/strrchr.S:4
/* Each round the main loop processes 16 bytes. */ /* Jump to here when the character is detected. We chose this way around because the character one is looking for is not as frequent as the rest and taking a conditional jump is more expensive than ignoring it. Some more words to the code below: it...
x86
gas-att
handwritten
bminor/glibc
sysdeps/i386/strrchr.S
LGPL-2.1
04e750e75b73957cf1c791535a3f4319534a52fc
github
libc
https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/i386/strrchr.S
121
180
bminor/glibc:sysdeps/i386/strrchr.S:5
/* At this point we know that the byte is in one of the lower bytes. We make a guess and correct it if necessary. This reduces the number of necessary jumps. */ leal 12(%esi), %eax /* guess address of lowest byte as result */ testb %dh, %dh /* is guess correct? */ jnz L(1) /* yes => start loop */ leal 1...
x86
gas-att
handwritten
bminor/glibc
sysdeps/i386/strrchr.S
LGPL-2.1
04e750e75b73957cf1c791535a3f4319534a52fc
github
libc
https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/i386/strrchr.S
161
220
bminor/glibc:sysdeps/i386/strrchr.S:6
xorl %ecx, %edx /* XOR with word c|c|c|c => bytes of str == c are now 0 */ movl $0xfefefeff, %edi /* magic value */ addl %edx, %edi /* add the magic value to the word. We get carry bits reported for each byte which is *not* 0 */ jnc L(4) /* highest byte is C => examine dword */ xorl %edx, %...
x86
gas-att
handwritten
bminor/glibc
sysdeps/i386/strrchr.S
LGPL-2.1
04e750e75b73957cf1c791535a3f4319534a52fc
github
libc
https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/i386/strrchr.S
201
260
bminor/glibc:sysdeps/i386/strrchr.S:7
addl %edx, %edi /* add the magic value to the word. We get carry bits reported for each byte which is *not* 0 */ jnc L(22) /* found NUL => check last word */ xorl %edx, %edi /* (word+magic)^word */ orl $0xfefefeff, %edi /* set all non-carry bits */ incl %edi /* add 1: if one carry bit was *not* s...
x86
gas-att
handwritten
bminor/glibc
sysdeps/i386/strrchr.S
LGPL-2.1
04e750e75b73957cf1c791535a3f4319534a52fc
github
libc
https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/i386/strrchr.S
241
300
bminor/glibc:sysdeps/i386/strrchr.S:8
xorl %edx, %edi /* ((word^charmask)+magic)^(word^charmask) */ orl $0xfefefeff, %edi /* set all non-carry bits */ incl %edi /* add 1: if one carry bit was *not* set the addition will not result in 0. */ jz L(1) /* C is not detected => restart loop */ jmp L(33) /* examine word */ L(23): addl $4, %esi /...
x86
gas-att
handwritten
bminor/glibc
sysdeps/i386/strrchr.S
LGPL-2.1
04e750e75b73957cf1c791535a3f4319534a52fc
github
libc
https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/i386/strrchr.S
281
332
bminor/glibc:sysdeps/i386/strrchr.S:9
L(2): popl %esi /* restore saved register content */ cfi_adjust_cfa_offset (-4) cfi_restore (esi) popl %edi cfi_adjust_cfa_offset (-4) cfi_restore (edi) ret END (strrchr) weak_alias (strrchr, rindex) libc_hidden_builtin_def (strrchr)
x86
gas-att
handwritten
bminor/glibc
sysdeps/i386/strrchr.S
LGPL-2.1
04e750e75b73957cf1c791535a3f4319534a52fc
github
libc
https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/i386/strrchr.S
321
332
bminor/glibc:sysdeps/i386/strrchr.S:1
/* strrchr (str, ch) -- Return pointer to last occurrence of CH in STR. For Intel 80x86, x>=3. Copyright (C) 1994-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 Gen...
x86
gas-att
handwritten
bminor/glibc
sysdeps/i386/strrchr.S
LGPL-2.1
2642002380aafb71a1d3b569b6d7ebeab3284816
github
libc
https://github.com/bminor/glibc/blob/2642002380aafb71a1d3b569b6d7ebeab3284816/sysdeps/i386/strrchr.S
1
60
bminor/glibc:sysdeps/i386/strrchr.S:1
/* strrchr (str, ch) -- Return pointer to last occurrence of CH in STR. For Intel 80x86, x>=3. Copyright (C) 1994-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 Gen...
x86
gas-att
handwritten
bminor/glibc
sysdeps/i386/strrchr.S
LGPL-2.1
dff8da6b3e89b986bb7f6b1ec18cf65d5972e307
github
libc
https://github.com/bminor/glibc/blob/dff8da6b3e89b986bb7f6b1ec18cf65d5972e307/sysdeps/i386/strrchr.S
1
60
bminor/glibc:sysdeps/i386/strrchr.S:1
/* strrchr (str, ch) -- Return pointer to last occurrence of CH in STR. For Intel 80x86, x>=3. Copyright (C) 1994-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 Gen...
x86
gas-att
handwritten
bminor/glibc
sysdeps/i386/strrchr.S
LGPL-2.1
6d7e8eda9b85b08f207a6dc6f187e94e4817270f
github
libc
https://github.com/bminor/glibc/blob/6d7e8eda9b85b08f207a6dc6f187e94e4817270f/sysdeps/i386/strrchr.S
1
60
bminor/glibc:sysdeps/i386/strrchr.S:1
/* strrchr (str, ch) -- Return pointer to last occurrence of CH in STR. For Intel 80x86, x>=3. Copyright (C) 1994-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 Gen...
x86
gas-att
handwritten
bminor/glibc
sysdeps/i386/strrchr.S
LGPL-2.1
581c785bf31bc74430320c7856bbfa3875d025fe
github
libc
https://github.com/bminor/glibc/blob/581c785bf31bc74430320c7856bbfa3875d025fe/sysdeps/i386/strrchr.S
1
60
bminor/glibc:sysdeps/i386/strrchr.S:1
/* strrchr (str, ch) -- Return pointer to last occurrence of CH in STR. For Intel 80x86, x>=3. Copyright (C) 1994-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 Gen...
x86
gas-att
handwritten
bminor/glibc
sysdeps/i386/strrchr.S
LGPL-2.1
30891f35fa7da832b66d80d0807610df361851f3
github
libc
https://github.com/bminor/glibc/blob/30891f35fa7da832b66d80d0807610df361851f3/sysdeps/i386/strrchr.S
1
60
bminor/glibc:sysdeps/i386/strrchr.S:1
/* strrchr (str, ch) -- Return pointer to last occurrence of CH in STR. For Intel 80x86, x>=3. Copyright (C) 1994-2021 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Ulrich Drepper <drepper@gnu.ai.mit.edu> Some optimisations by Alan Modra <Alan@SPRI.Levels.UniSA.Edu...
x86
gas-att
handwritten
bminor/glibc
sysdeps/i386/strrchr.S
LGPL-2.1
2b778ceb4010c28d70de9b8eab20e8d88eed586b
github
libc
https://github.com/bminor/glibc/blob/2b778ceb4010c28d70de9b8eab20e8d88eed586b/sysdeps/i386/strrchr.S
1
60
bminor/glibc:sysdeps/i386/strrchr.S:2
cfi_rel_offset (esi, 0) movl CHR(%esp), %ecx /* At the moment %ecx contains C. What we need for the algorithm is C in all bytes of the dword. Avoid operations on 16 bit words because these require an prefix byte (and one more cycle). */ movb %cl, %ch /* now it is 0|0|c|c */ movl %ecx, %edx shll $1...
x86
gas-att
handwritten
bminor/glibc
sysdeps/i386/strrchr.S
LGPL-2.1
2b778ceb4010c28d70de9b8eab20e8d88eed586b
github
libc
https://github.com/bminor/glibc/blob/2b778ceb4010c28d70de9b8eab20e8d88eed586b/sysdeps/i386/strrchr.S
41
100
bminor/glibc:sysdeps/i386/strrchr.S:3
jz L(2) /* yes => return NULL */ incl %esi /* increment pointer */ testl $3, %esi /* correctly aligned ? */ jz L(19) /* yes => begin loop */ movb (%esi), %dl /* load byte in question (we need it twice) */ cmpb %dl, %cl /* compare byte */ jne L(13) /* target found => return */ movl %esi, %eax /* remembe...
x86
gas-att
handwritten
bminor/glibc
sysdeps/i386/strrchr.S
LGPL-2.1
2b778ceb4010c28d70de9b8eab20e8d88eed586b
github
libc
https://github.com/bminor/glibc/blob/2b778ceb4010c28d70de9b8eab20e8d88eed586b/sysdeps/i386/strrchr.S
81
140
bminor/glibc:sysdeps/i386/strrchr.S:4
into a zero. */ /* Each round the main loop processes 16 bytes. */ /* Jump to here when the character is detected. We chose this way around because the character one is looking for is not as frequent as the rest and taking a conditional jump is more expensive than ignoring it. Some more words to...
x86
gas-att
handwritten
bminor/glibc
sysdeps/i386/strrchr.S
LGPL-2.1
2b778ceb4010c28d70de9b8eab20e8d88eed586b
github
libc
https://github.com/bminor/glibc/blob/2b778ceb4010c28d70de9b8eab20e8d88eed586b/sysdeps/i386/strrchr.S
121
180
bminor/glibc:sysdeps/i386/strrchr.S:5
L(51): /* At this point we know that the byte is in one of the lower bytes. We make a guess and correct it if necessary. This reduces the number of necessary jumps. */ leal 12(%esi), %eax /* guess address of lowest byte as result */ testb %dh, %dh /* is guess correct? */ jnz L(1) /* yes => start loop */...
x86
gas-att
handwritten
bminor/glibc
sysdeps/i386/strrchr.S
LGPL-2.1
2b778ceb4010c28d70de9b8eab20e8d88eed586b
github
libc
https://github.com/bminor/glibc/blob/2b778ceb4010c28d70de9b8eab20e8d88eed586b/sysdeps/i386/strrchr.S
161
220
bminor/glibc:sysdeps/i386/strrchr.S:6
looking for. But because we deal with strings we have to check for the end of string before testing the next dword. */ xorl %ecx, %edx /* XOR with word c|c|c|c => bytes of str == c are now 0 */ movl $0xfefefeff, %edi /* magic value */ addl %edx, %edi /* add the magic value to the word. We get ...
x86
gas-att
handwritten
bminor/glibc
sysdeps/i386/strrchr.S
LGPL-2.1
2b778ceb4010c28d70de9b8eab20e8d88eed586b
github
libc
https://github.com/bminor/glibc/blob/2b778ceb4010c28d70de9b8eab20e8d88eed586b/sysdeps/i386/strrchr.S
201
260
bminor/glibc:sysdeps/i386/strrchr.S:7
movl 8(%esi), %edx /* get word (= 4 bytes) in question */ movl $0xfefefeff, %edi /* magic value */ addl %edx, %edi /* add the magic value to the word. We get carry bits reported for each byte which is *not* 0 */ jnc L(22) /* found NUL => check last word */ xorl %edx, %edi /* (word+magic)^word */ ...
x86
gas-att
handwritten
bminor/glibc
sysdeps/i386/strrchr.S
LGPL-2.1
2b778ceb4010c28d70de9b8eab20e8d88eed586b
github
libc
https://github.com/bminor/glibc/blob/2b778ceb4010c28d70de9b8eab20e8d88eed586b/sysdeps/i386/strrchr.S
241
300
bminor/glibc:sysdeps/i386/strrchr.S:8
is *not* 0 */ jnc L(43) /* highest byte is C => examine dword */ xorl %edx, %edi /* ((word^charmask)+magic)^(word^charmask) */ orl $0xfefefeff, %edi /* set all non-carry bits */ incl %edi /* add 1: if one carry bit was *not* set the addition will not result in 0. */ jz L(1) /* C is not detected => res...
x86
gas-att
handwritten
bminor/glibc
sysdeps/i386/strrchr.S
LGPL-2.1
2b778ceb4010c28d70de9b8eab20e8d88eed586b
github
libc
https://github.com/bminor/glibc/blob/2b778ceb4010c28d70de9b8eab20e8d88eed586b/sysdeps/i386/strrchr.S
281
334
bminor/glibc:sysdeps/i386/strrchr.S:9
leal 3(%esi), %eax /* store address as result */ L(2): popl %esi /* restore saved register content */ cfi_adjust_cfa_offset (-4) cfi_restore (esi) popl %edi cfi_adjust_cfa_offset (-4) cfi_restore (edi) ret END (strrchr) weak_alias (strrchr, rindex) libc_hidden_builtin_def (strrchr)
x86
gas-att
handwritten
bminor/glibc
sysdeps/i386/strrchr.S
LGPL-2.1
2b778ceb4010c28d70de9b8eab20e8d88eed586b
github
libc
https://github.com/bminor/glibc/blob/2b778ceb4010c28d70de9b8eab20e8d88eed586b/sysdeps/i386/strrchr.S
321
334
bminor/glibc:sysdeps/i386/strrchr.S:1
/* strrchr (str, ch) -- Return pointer to last occurrence of CH in STR. For Intel 80x86, x>=3. Copyright (C) 1994-2020 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Ulrich Drepper <drepper@gnu.ai.mit.edu> Some optimisations by Alan Modra <Alan@SPRI.Levels.UniSA.Edu...
x86
gas-att
handwritten
bminor/glibc
sysdeps/i386/strrchr.S
LGPL-2.1
d614a7539657941a9201c236b2f15afac18e1213
github
libc
https://github.com/bminor/glibc/blob/d614a7539657941a9201c236b2f15afac18e1213/sysdeps/i386/strrchr.S
1
60
bminor/glibc:sysdeps/i386/strrchr.S:1
/* strrchr (str, ch) -- Return pointer to last occurrence of CH in STR. For Intel 80x86, x>=3. Copyright (C) 1994-2019 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Ulrich Drepper <drepper@gnu.ai.mit.edu> Some optimisations by Alan Modra <Alan@SPRI.Levels.UniSA.Edu...
x86
gas-att
handwritten
bminor/glibc
sysdeps/i386/strrchr.S
LGPL-2.1
5a82c74822d3272df2f5929133680478c0cfb4bd
github
libc
https://github.com/bminor/glibc/blob/5a82c74822d3272df2f5929133680478c0cfb4bd/sysdeps/i386/strrchr.S
1
60
bminor/glibc:sysdeps/i386/strrchr.S:1
/* strrchr (str, ch) -- Return pointer to last occurrence of CH in STR. For Intel 80x86, x>=3. Copyright (C) 1994-2019 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Ulrich Drepper <drepper@gnu.ai.mit.edu> Some optimisations by Alan Modra <Alan@SPRI.Levels.UniSA.Edu...
x86
gas-att
handwritten
bminor/glibc
sysdeps/i386/strrchr.S
LGPL-2.1
04277e02d7f54d3582bebcf8386b317018cd5e1d
github
libc
https://github.com/bminor/glibc/blob/04277e02d7f54d3582bebcf8386b317018cd5e1d/sysdeps/i386/strrchr.S
1
60