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/arm/armv6t2/ffs.S:1 | /* ffs -- find first set bit in an int, from least significant end.
Copyright (C) 2013-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 publ... | arm | gas-like | handwritten | bminor/glibc | sysdeps/arm/armv6t2/ffs.S | LGPL-2.1 | 688903eb3ef01301d239ab753d309d45720610a7 | github | libc | https://github.com/bminor/glibc/blob/688903eb3ef01301d239ab753d309d45720610a7/sysdeps/arm/armv6t2/ffs.S | 1 | 36 |
bminor/glibc:sysdeps/arm/armv6t2/ffs.S:1 | /* ffs -- find first set bit in an int, from least significant end.
Copyright (C) 2013-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 publ... | arm | gas-like | handwritten | bminor/glibc | sysdeps/arm/armv6t2/ffs.S | LGPL-2.1 | bfff8b1becd7d01c074177df7196ab327cd8c844 | github | libc | https://github.com/bminor/glibc/blob/bfff8b1becd7d01c074177df7196ab327cd8c844/sysdeps/arm/armv6t2/ffs.S | 1 | 36 |
bminor/glibc:sysdeps/arm/armv6t2/ffs.S:1 | /* ffs -- find first set bit in an int, from least significant end.
Copyright (C) 2013-2016 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 publ... | arm | gas-like | handwritten | bminor/glibc | sysdeps/arm/armv6t2/ffs.S | LGPL-2.1 | f7a9f785e547bd599dee496fd906a28bcb4ec7fe | github | libc | https://github.com/bminor/glibc/blob/f7a9f785e547bd599dee496fd906a28bcb4ec7fe/sysdeps/arm/armv6t2/ffs.S | 1 | 36 |
bminor/glibc:sysdeps/arm/armv6t2/ffs.S:1 | /* ffs -- find first set bit in an int, from least significant end.
Copyright (C) 2013-2015 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 publ... | arm | gas-like | handwritten | bminor/glibc | sysdeps/arm/armv6t2/ffs.S | LGPL-2.1 | 890b7a4b33d482b5c768ab47d70758b80227e9bc | github | libc | https://github.com/bminor/glibc/blob/890b7a4b33d482b5c768ab47d70758b80227e9bc/sysdeps/arm/armv6t2/ffs.S | 1 | 36 |
bminor/glibc:sysdeps/arm/armv6t2/ffsll.S:1 | /* ffsll -- find first set bit in a long long, from least significant end.
Copyright (C) 2013-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 ... | arm | gas-like | handwritten | bminor/glibc | sysdeps/arm/armv6t2/ffsll.S | LGPL-2.1 | dff8da6b3e89b986bb7f6b1ec18cf65d5972e307 | github | libc | https://github.com/bminor/glibc/blob/dff8da6b3e89b986bb7f6b1ec18cf65d5972e307/sysdeps/arm/armv6t2/ffsll.S | 1 | 50 |
bminor/glibc:sysdeps/arm/armv6t2/ffsll.S:1 | /* ffsll -- find first set bit in a long long, from least significant end.
Copyright (C) 2013-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 ... | arm | gas-like | handwritten | bminor/glibc | sysdeps/arm/armv6t2/ffsll.S | LGPL-2.1 | 6d7e8eda9b85b08f207a6dc6f187e94e4817270f | github | libc | https://github.com/bminor/glibc/blob/6d7e8eda9b85b08f207a6dc6f187e94e4817270f/sysdeps/arm/armv6t2/ffsll.S | 1 | 50 |
bminor/glibc:sysdeps/arm/armv6t2/ffsll.S:1 | /* ffsll -- find first set bit in a long long, from least significant end.
Copyright (C) 2013-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 ... | arm | gas-like | handwritten | bminor/glibc | sysdeps/arm/armv6t2/ffsll.S | LGPL-2.1 | 581c785bf31bc74430320c7856bbfa3875d025fe | github | libc | https://github.com/bminor/glibc/blob/581c785bf31bc74430320c7856bbfa3875d025fe/sysdeps/arm/armv6t2/ffsll.S | 1 | 50 |
bminor/glibc:sysdeps/arm/armv6t2/ffsll.S:1 | /* ffsll -- find first set bit in a long long, from least significant end.
Copyright (C) 2013-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 ... | arm | gas-like | handwritten | bminor/glibc | sysdeps/arm/armv6t2/ffsll.S | LGPL-2.1 | 2b778ceb4010c28d70de9b8eab20e8d88eed586b | github | libc | https://github.com/bminor/glibc/blob/2b778ceb4010c28d70de9b8eab20e8d88eed586b/sysdeps/arm/armv6t2/ffsll.S | 1 | 50 |
bminor/glibc:sysdeps/arm/armv6t2/ffsll.S:1 | /* ffsll -- find first set bit in a long long, from least significant end.
Copyright (C) 2013-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 ... | arm | gas-like | handwritten | bminor/glibc | sysdeps/arm/armv6t2/ffsll.S | LGPL-2.1 | d614a7539657941a9201c236b2f15afac18e1213 | github | libc | https://github.com/bminor/glibc/blob/d614a7539657941a9201c236b2f15afac18e1213/sysdeps/arm/armv6t2/ffsll.S | 1 | 50 |
bminor/glibc:sysdeps/arm/armv6t2/ffsll.S:1 | /* ffsll -- find first set bit in a long long, from least significant end.
Copyright (C) 2013-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 ... | arm | gas-like | handwritten | bminor/glibc | sysdeps/arm/armv6t2/ffsll.S | LGPL-2.1 | 5a82c74822d3272df2f5929133680478c0cfb4bd | github | libc | https://github.com/bminor/glibc/blob/5a82c74822d3272df2f5929133680478c0cfb4bd/sysdeps/arm/armv6t2/ffsll.S | 1 | 50 |
bminor/glibc:sysdeps/arm/armv6t2/ffsll.S:1 | /* ffsll -- find first set bit in a long long, from least significant end.
Copyright (C) 2013-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 ... | arm | gas-like | handwritten | bminor/glibc | sysdeps/arm/armv6t2/ffsll.S | LGPL-2.1 | 04277e02d7f54d3582bebcf8386b317018cd5e1d | github | libc | https://github.com/bminor/glibc/blob/04277e02d7f54d3582bebcf8386b317018cd5e1d/sysdeps/arm/armv6t2/ffsll.S | 1 | 50 |
bminor/glibc:sysdeps/arm/armv6t2/ffsll.S:1 | /* ffsll -- find first set bit in a long long, from least significant end.
Copyright (C) 2013-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 ... | arm | gas-like | handwritten | bminor/glibc | sysdeps/arm/armv6t2/ffsll.S | LGPL-2.1 | 688903eb3ef01301d239ab753d309d45720610a7 | github | libc | https://github.com/bminor/glibc/blob/688903eb3ef01301d239ab753d309d45720610a7/sysdeps/arm/armv6t2/ffsll.S | 1 | 50 |
bminor/glibc:sysdeps/arm/armv6t2/ffsll.S:1 | /* ffsll -- find first set bit in a long long, from least significant end.
Copyright (C) 2013-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 ... | arm | gas-like | handwritten | bminor/glibc | sysdeps/arm/armv6t2/ffsll.S | LGPL-2.1 | bfff8b1becd7d01c074177df7196ab327cd8c844 | github | libc | https://github.com/bminor/glibc/blob/bfff8b1becd7d01c074177df7196ab327cd8c844/sysdeps/arm/armv6t2/ffsll.S | 1 | 50 |
bminor/glibc:sysdeps/arm/armv6t2/ffsll.S:1 | /* ffsll -- find first set bit in a long long, from least significant end.
Copyright (C) 2013-2016 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 ... | arm | gas-like | handwritten | bminor/glibc | sysdeps/arm/armv6t2/ffsll.S | LGPL-2.1 | f7a9f785e547bd599dee496fd906a28bcb4ec7fe | github | libc | https://github.com/bminor/glibc/blob/f7a9f785e547bd599dee496fd906a28bcb4ec7fe/sysdeps/arm/armv6t2/ffsll.S | 1 | 50 |
bminor/glibc:sysdeps/arm/armv6t2/ffsll.S:1 | /* ffsll -- find first set bit in a long long, from least significant end.
Copyright (C) 2013-2015 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 ... | arm | gas-like | handwritten | bminor/glibc | sysdeps/arm/armv6t2/ffsll.S | LGPL-2.1 | 890b7a4b33d482b5c768ab47d70758b80227e9bc | github | libc | https://github.com/bminor/glibc/blob/890b7a4b33d482b5c768ab47d70758b80227e9bc/sysdeps/arm/armv6t2/ffsll.S | 1 | 50 |
bminor/glibc:sysdeps/arm/armv6t2/memchr.S:1 | /* Copyright (C) 2011-2026 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the ... | arm | gas-like | handwritten | bminor/glibc | sysdeps/arm/armv6t2/memchr.S | LGPL-2.1 | 04e750e75b73957cf1c791535a3f4319534a52fc | github | libc | https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/arm/armv6t2/memchr.S | 1 | 60 |
bminor/glibc:sysdeps/arm/armv6t2/memchr.S:2 | .syntax unified
.text
.thumb
.thumb_func
.global memchr
.type memchr,%function
ENTRY(memchr)
@ r0 = start of memory to scan
@ r1 = character to look for
@ r2 = length
@ returns r0 = pointer to character or NULL if not found
and r1,r1,#0xff @ Don't think we can trust the caller to actually pass a char
cmp r... | arm | gas-like | handwritten | bminor/glibc | sysdeps/arm/armv6t2/memchr.S | LGPL-2.1 | 04e750e75b73957cf1c791535a3f4319534a52fc | github | libc | https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/arm/armv6t2/memchr.S | 41 | 100 |
bminor/glibc:sysdeps/arm/armv6t2/memchr.S:3 | orr r1, r1, r1, lsl #8 @ expand the match word across to all bytes
orr r1, r1, r1, lsl #16
bic r6, r2, #7 @ Number of double words to work with * 8
mvns r7, #0 @ all F's
movs r3, #0
15:
ldrd r4,r5, [r0],#8
subs r6, r6, #8
eor r4,r4, r1 @ Get it so that r4,r5 have 00's where the bytes match the target
eor r5,... | arm | gas-like | handwritten | bminor/glibc | sysdeps/arm/armv6t2/memchr.S | LGPL-2.1 | 04e750e75b73957cf1c791535a3f4319534a52fc | github | libc | https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/arm/armv6t2/memchr.S | 81 | 140 |
bminor/glibc:sysdeps/arm/armv6t2/memchr.S:4 | DO_RET(lr)
50:
subs r0,r0,#1 @ found
DO_RET(lr)
60: @ We're here because the fast path found a hit - now we have to track down exactly which word it was
@ r0 points to the start of the double word after the one that was tested
@ r4 has the 00/ff pattern for the first word, r5 has the chained value
cfi_r... | arm | gas-like | handwritten | bminor/glibc | sysdeps/arm/armv6t2/memchr.S | LGPL-2.1 | 04e750e75b73957cf1c791535a3f4319534a52fc | github | libc | https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/arm/armv6t2/memchr.S | 121 | 160 |
bminor/glibc:sysdeps/arm/armv6t2/memchr.S:1 | /* Copyright (C) 2011-2025 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the ... | arm | gas-like | handwritten | bminor/glibc | sysdeps/arm/armv6t2/memchr.S | LGPL-2.1 | 2642002380aafb71a1d3b569b6d7ebeab3284816 | github | libc | https://github.com/bminor/glibc/blob/2642002380aafb71a1d3b569b6d7ebeab3284816/sysdeps/arm/armv6t2/memchr.S | 1 | 60 |
bminor/glibc:sysdeps/arm/armv6t2/memchr.S:1 | /* Copyright (C) 2011-2024 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the ... | arm | gas-like | handwritten | bminor/glibc | sysdeps/arm/armv6t2/memchr.S | LGPL-2.1 | dff8da6b3e89b986bb7f6b1ec18cf65d5972e307 | github | libc | https://github.com/bminor/glibc/blob/dff8da6b3e89b986bb7f6b1ec18cf65d5972e307/sysdeps/arm/armv6t2/memchr.S | 1 | 60 |
bminor/glibc:sysdeps/arm/armv6t2/memchr.S:1 | /* Copyright (C) 2011-2023 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the ... | arm | gas-like | handwritten | bminor/glibc | sysdeps/arm/armv6t2/memchr.S | LGPL-2.1 | 6d7e8eda9b85b08f207a6dc6f187e94e4817270f | github | libc | https://github.com/bminor/glibc/blob/6d7e8eda9b85b08f207a6dc6f187e94e4817270f/sysdeps/arm/armv6t2/memchr.S | 1 | 60 |
bminor/glibc:sysdeps/arm/armv6t2/memchr.S:1 | /* Copyright (C) 2011-2022 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the ... | arm | gas-like | handwritten | bminor/glibc | sysdeps/arm/armv6t2/memchr.S | LGPL-2.1 | 581c785bf31bc74430320c7856bbfa3875d025fe | github | libc | https://github.com/bminor/glibc/blob/581c785bf31bc74430320c7856bbfa3875d025fe/sysdeps/arm/armv6t2/memchr.S | 1 | 60 |
bminor/glibc:sysdeps/arm/armv6t2/memchr.S:1 | /* Copyright (C) 2011-2021 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the ... | arm | gas-like | handwritten | bminor/glibc | sysdeps/arm/armv6t2/memchr.S | LGPL-2.1 | 30891f35fa7da832b66d80d0807610df361851f3 | github | libc | https://github.com/bminor/glibc/blob/30891f35fa7da832b66d80d0807610df361851f3/sysdeps/arm/armv6t2/memchr.S | 1 | 60 |
bminor/glibc:sysdeps/arm/armv6t2/memchr.S:1 | /* Copyright (C) 2011-2021 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Code contributed by Dave Gilbert <david.gilbert@linaro.org>
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... | arm | gas-like | handwritten | bminor/glibc | sysdeps/arm/armv6t2/memchr.S | LGPL-2.1 | 2b778ceb4010c28d70de9b8eab20e8d88eed586b | github | libc | https://github.com/bminor/glibc/blob/2b778ceb4010c28d70de9b8eab20e8d88eed586b/sysdeps/arm/armv6t2/memchr.S | 1 | 60 |
bminor/glibc:sysdeps/arm/armv6t2/memchr.S:2 | #endif
.syntax unified
.text
.thumb
.thumb_func
.global memchr
.type memchr,%function
ENTRY(memchr)
@ r0 = start of memory to scan
@ r1 = character to look for
@ r2 = length
@ returns r0 = pointer to character or NULL if not found
and r1,r1,#0xff @ Don't think we can trust the caller to actually pass a char... | arm | gas-like | handwritten | bminor/glibc | sysdeps/arm/armv6t2/memchr.S | LGPL-2.1 | 2b778ceb4010c28d70de9b8eab20e8d88eed586b | github | libc | https://github.com/bminor/glibc/blob/2b778ceb4010c28d70de9b8eab20e8d88eed586b/sysdeps/arm/armv6t2/memchr.S | 41 | 100 |
bminor/glibc:sysdeps/arm/armv6t2/memchr.S:3 | orr r1, r1, r1, lsl #8 @ expand the match word across to all bytes
orr r1, r1, r1, lsl #16
bic r6, r2, #7 @ Number of double words to work with * 8
mvns r7, #0 @ all F's
movs r3, #0
15:
ldrd r4,r5, [r0],#8
subs r6, r6, #8
eor r4,r4, r1 @ Get it so that r4,r5 have 00's where the bytes match the target
eor r5,... | arm | gas-like | handwritten | bminor/glibc | sysdeps/arm/armv6t2/memchr.S | LGPL-2.1 | 2b778ceb4010c28d70de9b8eab20e8d88eed586b | github | libc | https://github.com/bminor/glibc/blob/2b778ceb4010c28d70de9b8eab20e8d88eed586b/sysdeps/arm/armv6t2/memchr.S | 81 | 140 |
bminor/glibc:sysdeps/arm/armv6t2/memchr.S:4 | movs r0,#0 @ not found
DO_RET(lr)
50:
subs r0,r0,#1 @ found
DO_RET(lr)
60: @ We're here because the fast path found a hit - now we have to track down exactly which word it was
@ r0 points to the start of the double word after the one that was tested
@ r4 has the 00/ff pattern for the first word, r5 has... | arm | gas-like | handwritten | bminor/glibc | sysdeps/arm/armv6t2/memchr.S | LGPL-2.1 | 2b778ceb4010c28d70de9b8eab20e8d88eed586b | github | libc | https://github.com/bminor/glibc/blob/2b778ceb4010c28d70de9b8eab20e8d88eed586b/sysdeps/arm/armv6t2/memchr.S | 121 | 161 |
bminor/glibc:sysdeps/arm/armv6t2/memchr.S:1 | /* Copyright (C) 2011-2020 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Code contributed by Dave Gilbert <david.gilbert@linaro.org>
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... | arm | gas-like | handwritten | bminor/glibc | sysdeps/arm/armv6t2/memchr.S | LGPL-2.1 | d614a7539657941a9201c236b2f15afac18e1213 | github | libc | https://github.com/bminor/glibc/blob/d614a7539657941a9201c236b2f15afac18e1213/sysdeps/arm/armv6t2/memchr.S | 1 | 60 |
bminor/glibc:sysdeps/arm/armv6t2/memchr.S:1 | /* Copyright (C) 2011-2019 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Code contributed by Dave Gilbert <david.gilbert@linaro.org>
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... | arm | gas-like | handwritten | bminor/glibc | sysdeps/arm/armv6t2/memchr.S | LGPL-2.1 | 5a82c74822d3272df2f5929133680478c0cfb4bd | github | libc | https://github.com/bminor/glibc/blob/5a82c74822d3272df2f5929133680478c0cfb4bd/sysdeps/arm/armv6t2/memchr.S | 1 | 60 |
bminor/glibc:sysdeps/arm/armv6t2/memchr.S:1 | /* Copyright (C) 2011-2019 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Code contributed by Dave Gilbert <david.gilbert@linaro.org>
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... | arm | gas-like | handwritten | bminor/glibc | sysdeps/arm/armv6t2/memchr.S | LGPL-2.1 | 04277e02d7f54d3582bebcf8386b317018cd5e1d | github | libc | https://github.com/bminor/glibc/blob/04277e02d7f54d3582bebcf8386b317018cd5e1d/sysdeps/arm/armv6t2/memchr.S | 1 | 60 |
bminor/glibc:sysdeps/arm/armv6t2/memchr.S:1 | /* Copyright (C) 2011-2018 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Code contributed by Dave Gilbert <david.gilbert@linaro.org>
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... | arm | gas-like | handwritten | bminor/glibc | sysdeps/arm/armv6t2/memchr.S | LGPL-2.1 | 743b9c2a98426fb40f8ffee3529c8870bc5300f5 | github | libc | https://github.com/bminor/glibc/blob/743b9c2a98426fb40f8ffee3529c8870bc5300f5/sysdeps/arm/armv6t2/memchr.S | 1 | 60 |
bminor/glibc:sysdeps/arm/armv6t2/memchr.S:1 | /* Copyright (C) 2011-2018 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Code contributed by Dave Gilbert <david.gilbert@linaro.org>
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... | arm | gas-like | handwritten | bminor/glibc | sysdeps/arm/armv6t2/memchr.S | LGPL-2.1 | 688903eb3ef01301d239ab753d309d45720610a7 | github | libc | https://github.com/bminor/glibc/blob/688903eb3ef01301d239ab753d309d45720610a7/sysdeps/arm/armv6t2/memchr.S | 1 | 60 |
bminor/glibc:sysdeps/arm/armv6t2/memchr.S:2 | #endif
.syntax unified
.text
#ifdef NO_THUMB
.arm
#else
.thumb
.thumb_func
#endif
.global memchr
.type memchr,%function
ENTRY(memchr)
@ r0 = start of memory to scan
@ r1 = character to look for
@ r2 = length
@ returns r0 = pointer to character or NULL if not found
and r1,r1,#0xff @ Don't think we can trust... | arm | gas-like | handwritten | bminor/glibc | sysdeps/arm/armv6t2/memchr.S | LGPL-2.1 | 688903eb3ef01301d239ab753d309d45720610a7 | github | libc | https://github.com/bminor/glibc/blob/688903eb3ef01301d239ab753d309d45720610a7/sysdeps/arm/armv6t2/memchr.S | 41 | 100 |
bminor/glibc:sysdeps/arm/armv6t2/memchr.S:3 | cfi_rel_offset (r6, 8)
cfi_rel_offset (r7, 12)
cfi_remember_state
orr r1, r1, r1, lsl #8 @ expand the match word across to all bytes
orr r1, r1, r1, lsl #16
bic r6, r2, #7 @ Number of double words to work with * 8
mvns r7, #0 @ all F's
movs r3, #0
15:
ldrd r4,r5, [r0],#8
#ifndef NO_THUMB
subs r6, r6, #8
#... | arm | gas-like | handwritten | bminor/glibc | sysdeps/arm/armv6t2/memchr.S | LGPL-2.1 | 688903eb3ef01301d239ab753d309d45720610a7 | github | libc | https://github.com/bminor/glibc/blob/688903eb3ef01301d239ab753d309d45720610a7/sysdeps/arm/armv6t2/memchr.S | 81 | 140 |
bminor/glibc:sysdeps/arm/armv6t2/memchr.S:4 | 20:
#ifndef NO_THUMB
cbz r2, 40f @ 0 length or hit the end already then not found
#else
cmp r2, #0
beq 40f
#endif
21: @ Post aligned section, or just a short call
ldrb r3,[r0],#1
#ifndef NO_THUMB
subs r2,r2,#1
eor r3,r3,r1 @ r3 = 0 if match - doesn't break flags from sub
cbz r3, 50f
#else
eors r3, r3, r1
be... | arm | gas-like | handwritten | bminor/glibc | sysdeps/arm/armv6t2/memchr.S | LGPL-2.1 | 688903eb3ef01301d239ab753d309d45720610a7 | github | libc | https://github.com/bminor/glibc/blob/688903eb3ef01301d239ab753d309d45720610a7/sysdeps/arm/armv6t2/memchr.S | 121 | 180 |
bminor/glibc:sysdeps/arm/armv6t2/memchr.S:5 | @ r0 currently points to the 2nd byte of the word containing the hit
tst r4, # CHARTSTMASK(0) @ 1st character
bne 61f
adds r0,r0,#1
tst r4, # CHARTSTMASK(1) @ 2nd character
ittt eq
addeq r0,r0,#1
tsteq r4, # (3<<15) @ 2nd & 3rd character
@ If not the 3rd must be the last one
addeq r0,r0,#1
61:
pop {r4,r5,r6... | arm | gas-like | handwritten | bminor/glibc | sysdeps/arm/armv6t2/memchr.S | LGPL-2.1 | 688903eb3ef01301d239ab753d309d45720610a7 | github | libc | https://github.com/bminor/glibc/blob/688903eb3ef01301d239ab753d309d45720610a7/sysdeps/arm/armv6t2/memchr.S | 161 | 184 |
bminor/glibc:sysdeps/arm/armv6t2/memchr.S:1 | /* Copyright (C) 2011-2017 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Code contributed by Dave Gilbert <david.gilbert@linaro.org>
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... | arm | gas-like | handwritten | bminor/glibc | sysdeps/arm/armv6t2/memchr.S | LGPL-2.1 | 81cb7a0b2b6b905a504b8b56fe3c1634adf8fb71 | github | libc | https://github.com/bminor/glibc/blob/81cb7a0b2b6b905a504b8b56fe3c1634adf8fb71/sysdeps/arm/armv6t2/memchr.S | 1 | 60 |
bminor/glibc:sysdeps/arm/armv6t2/memchr.S:2 | #endif
.syntax unified
.text
#ifdef NO_THUMB
.arm
#else
.thumb
.thumb_func
#endif
.global memchr
.type memchr,%function
ENTRY(memchr)
@ r0 = start of memory to scan
@ r1 = character to look for
@ r2 = length
@ returns r0 = pointer to character or NULL if not found
and r1,r1,#0xff @ Don't think we can trust... | arm | gas-like | handwritten | bminor/glibc | sysdeps/arm/armv6t2/memchr.S | LGPL-2.1 | bfff8b1becd7d01c074177df7196ab327cd8c844 | github | libc | https://github.com/bminor/glibc/blob/bfff8b1becd7d01c074177df7196ab327cd8c844/sysdeps/arm/armv6t2/memchr.S | 41 | 100 |
bminor/glibc:sysdeps/arm/armv6t2/memchr.S:3 | cfi_rel_offset (r5, 4)
cfi_rel_offset (r6, 8)
cfi_rel_offset (r7, 12)
cfi_remember_state
orr r1, r1, r1, lsl #8 @ expand the match word across to all bytes
orr r1, r1, r1, lsl #16
bic r6, r2, #7 @ Number of double words to work with * 8
mvns r7, #0 @ all F's
movs r3, #0
15:
sfi_breg r0, \
ldrd r4,r5, [\B... | arm | gas-like | handwritten | bminor/glibc | sysdeps/arm/armv6t2/memchr.S | LGPL-2.1 | bfff8b1becd7d01c074177df7196ab327cd8c844 | github | libc | https://github.com/bminor/glibc/blob/bfff8b1becd7d01c074177df7196ab327cd8c844/sysdeps/arm/armv6t2/memchr.S | 81 | 140 |
bminor/glibc:sysdeps/arm/armv6t2/memchr.S:4 | and r1,r1,#0xff @ Get r1 back to a single character from the expansion above
and r2,r2,#7 @ Leave the count remaining as the number after the double words have been done
20:
#ifndef NO_THUMB
cbz r2, 40f @ 0 length or hit the end already then not found
#else
cmp r2, #0
beq 40f
#endif
21: @ Post aligned section, ... | arm | gas-like | handwritten | bminor/glibc | sysdeps/arm/armv6t2/memchr.S | LGPL-2.1 | bfff8b1becd7d01c074177df7196ab327cd8c844 | github | libc | https://github.com/bminor/glibc/blob/bfff8b1becd7d01c074177df7196ab327cd8c844/sysdeps/arm/armv6t2/memchr.S | 121 | 180 |
bminor/glibc:sysdeps/arm/armv6t2/memchr.S:5 | subeq r0,r0,#3 @ Points to 2nd byte of 2nd word
subne r0,r0,#7 @ or 2nd byte of 1st word
@ r0 currently points to the 2nd byte of the word containing the hit
tst r4, # CHARTSTMASK(0) @ 1st character
bne 61f
adds r0,r0,#1
tst r4, # CHARTSTMASK(1) @ 2nd character
ittt eq
addeq r0,r0,#1
tsteq r4, # (3<<15) @ 2n... | arm | gas-like | handwritten | bminor/glibc | sysdeps/arm/armv6t2/memchr.S | LGPL-2.1 | bfff8b1becd7d01c074177df7196ab327cd8c844 | github | libc | https://github.com/bminor/glibc/blob/bfff8b1becd7d01c074177df7196ab327cd8c844/sysdeps/arm/armv6t2/memchr.S | 161 | 187 |
bminor/glibc:sysdeps/arm/armv6t2/memchr.S:1 | /* Copyright (C) 2011-2016 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Code contributed by Dave Gilbert <david.gilbert@linaro.org>
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... | arm | gas-like | handwritten | bminor/glibc | sysdeps/arm/armv6t2/memchr.S | LGPL-2.1 | f7a9f785e547bd599dee496fd906a28bcb4ec7fe | github | libc | https://github.com/bminor/glibc/blob/f7a9f785e547bd599dee496fd906a28bcb4ec7fe/sysdeps/arm/armv6t2/memchr.S | 1 | 60 |
bminor/glibc:sysdeps/arm/armv6t2/memchr.S:1 | /* Copyright (C) 2011-2015 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Code contributed by Dave Gilbert <david.gilbert@linaro.org>
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... | arm | gas-like | handwritten | bminor/glibc | sysdeps/arm/armv6t2/memchr.S | LGPL-2.1 | 890b7a4b33d482b5c768ab47d70758b80227e9bc | github | libc | https://github.com/bminor/glibc/blob/890b7a4b33d482b5c768ab47d70758b80227e9bc/sysdeps/arm/armv6t2/memchr.S | 1 | 60 |
bminor/glibc:sysdeps/arm/armv6t2/strlen.S:1 | /* Copyright (C) 2010-2026 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the ... | arm | gas-like | handwritten | bminor/glibc | sysdeps/arm/armv6t2/strlen.S | LGPL-2.1 | 04e750e75b73957cf1c791535a3f4319534a52fc | github | libc | https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/arm/armv6t2/strlen.S | 1 | 60 |
bminor/glibc:sysdeps/arm/armv6t2/strlen.S:2 | /* Internal variables. */
#define src r1
#define data1a r2
#define data1b r3
#define const_m1 r12
#define const_0 r4
#define tmp1 r4 /* Overlaps const_0 */
#define tmp2 r5
.text
.p2align 6
ENTRY(strlen)
pld [srcin, #0]
strd r4, r5, [sp, #-8]!
cfi_adjust_cfa_offset (8)
cfi_rel_offset (r4, 0)
cfi_rel_off... | arm | gas-like | handwritten | bminor/glibc | sysdeps/arm/armv6t2/strlen.S | LGPL-2.1 | 04e750e75b73957cf1c791535a3f4319534a52fc | github | libc | https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/arm/armv6t2/strlen.S | 41 | 100 |
bminor/glibc:sysdeps/arm/armv6t2/strlen.S:3 | uadd8 data1a, data1a, const_m1 /* Saturating GE<0:3> set. */
add result, result, #8
sel data1a, const_0, const_m1 /* Select based on GE<0:3>. */
uadd8 data1b, data1b, const_m1
sel data1b, data1a, const_m1 /* Only used if d1a == 0. */
cbnz data1b, .Lnull_found
/* Bytes 16-23. */
ldrd data1a, data1b, [src, #1... | arm | gas-like | handwritten | bminor/glibc | sysdeps/arm/armv6t2/strlen.S | LGPL-2.1 | 04e750e75b73957cf1c791535a3f4319534a52fc | github | libc | https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/arm/armv6t2/strlen.S | 81 | 140 |
bminor/glibc:sysdeps/arm/armv6t2/strlen.S:4 | add result, result, data1a, lsr #3 /* Bits -> Bytes. */
DO_RET(lr)
.Lmisaligned8:
cfi_restore_state
ldrd data1a, data1b, [src]
and tmp2, tmp1, #3
rsb result, tmp1, #0
lsl tmp2, tmp2, #3 /* Bytes -> bits. */
tst tmp1, #4
pld [src, #64]
S2HI tmp2, const_m1, tmp2
orn data1a, data1a, tmp2
itt ne
ornne data... | arm | gas-like | handwritten | bminor/glibc | sysdeps/arm/armv6t2/strlen.S | LGPL-2.1 | 04e750e75b73957cf1c791535a3f4319534a52fc | github | libc | https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/arm/armv6t2/strlen.S | 121 | 141 |
bminor/glibc:sysdeps/arm/armv6t2/strlen.S:1 | /* Copyright (C) 2010-2025 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the ... | arm | gas-like | handwritten | bminor/glibc | sysdeps/arm/armv6t2/strlen.S | LGPL-2.1 | 2642002380aafb71a1d3b569b6d7ebeab3284816 | github | libc | https://github.com/bminor/glibc/blob/2642002380aafb71a1d3b569b6d7ebeab3284816/sysdeps/arm/armv6t2/strlen.S | 1 | 60 |
bminor/glibc:sysdeps/arm/armv6t2/strlen.S:1 | /* Copyright (C) 2010-2024 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the ... | arm | gas-like | handwritten | bminor/glibc | sysdeps/arm/armv6t2/strlen.S | LGPL-2.1 | dff8da6b3e89b986bb7f6b1ec18cf65d5972e307 | github | libc | https://github.com/bminor/glibc/blob/dff8da6b3e89b986bb7f6b1ec18cf65d5972e307/sysdeps/arm/armv6t2/strlen.S | 1 | 60 |
bminor/glibc:sysdeps/arm/armv6t2/strlen.S:1 | /* Copyright (C) 2010-2023 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the ... | arm | gas-like | handwritten | bminor/glibc | sysdeps/arm/armv6t2/strlen.S | LGPL-2.1 | 6d7e8eda9b85b08f207a6dc6f187e94e4817270f | github | libc | https://github.com/bminor/glibc/blob/6d7e8eda9b85b08f207a6dc6f187e94e4817270f/sysdeps/arm/armv6t2/strlen.S | 1 | 60 |
bminor/glibc:sysdeps/arm/armv6t2/strlen.S:1 | /* Copyright (C) 2010-2022 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the ... | arm | gas-like | handwritten | bminor/glibc | sysdeps/arm/armv6t2/strlen.S | LGPL-2.1 | 581c785bf31bc74430320c7856bbfa3875d025fe | github | libc | https://github.com/bminor/glibc/blob/581c785bf31bc74430320c7856bbfa3875d025fe/sysdeps/arm/armv6t2/strlen.S | 1 | 60 |
bminor/glibc:sysdeps/arm/armv6t2/strlen.S:1 | /* Copyright (C) 2010-2021 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the ... | arm | gas-like | handwritten | bminor/glibc | sysdeps/arm/armv6t2/strlen.S | LGPL-2.1 | 2b778ceb4010c28d70de9b8eab20e8d88eed586b | github | libc | https://github.com/bminor/glibc/blob/2b778ceb4010c28d70de9b8eab20e8d88eed586b/sysdeps/arm/armv6t2/strlen.S | 1 | 60 |
bminor/glibc:sysdeps/arm/armv6t2/strlen.S:1 | /* Copyright (C) 2010-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; either
version 2.1 of the ... | arm | gas-like | handwritten | bminor/glibc | sysdeps/arm/armv6t2/strlen.S | LGPL-2.1 | d614a7539657941a9201c236b2f15afac18e1213 | github | libc | https://github.com/bminor/glibc/blob/d614a7539657941a9201c236b2f15afac18e1213/sysdeps/arm/armv6t2/strlen.S | 1 | 60 |
bminor/glibc:sysdeps/arm/armv6t2/strlen.S:1 | /* Copyright (C) 2010-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; either
version 2.1 of the ... | arm | gas-like | handwritten | bminor/glibc | sysdeps/arm/armv6t2/strlen.S | LGPL-2.1 | 5a82c74822d3272df2f5929133680478c0cfb4bd | github | libc | https://github.com/bminor/glibc/blob/5a82c74822d3272df2f5929133680478c0cfb4bd/sysdeps/arm/armv6t2/strlen.S | 1 | 60 |
bminor/glibc:sysdeps/arm/armv6t2/strlen.S:1 | /* Copyright (C) 2010-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; either
version 2.1 of the ... | arm | gas-like | handwritten | bminor/glibc | sysdeps/arm/armv6t2/strlen.S | LGPL-2.1 | 04277e02d7f54d3582bebcf8386b317018cd5e1d | github | libc | https://github.com/bminor/glibc/blob/04277e02d7f54d3582bebcf8386b317018cd5e1d/sysdeps/arm/armv6t2/strlen.S | 1 | 60 |
bminor/glibc:sysdeps/arm/armv6t2/strlen.S:1 | /* Copyright (C) 2010-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; either
version 2.1 of the ... | arm | gas-like | handwritten | bminor/glibc | sysdeps/arm/armv6t2/strlen.S | LGPL-2.1 | 743b9c2a98426fb40f8ffee3529c8870bc5300f5 | github | libc | https://github.com/bminor/glibc/blob/743b9c2a98426fb40f8ffee3529c8870bc5300f5/sysdeps/arm/armv6t2/strlen.S | 1 | 60 |
bminor/glibc:sysdeps/arm/armv6t2/strlen.S:1 | /* Copyright (C) 2010-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; either
version 2.1 of the ... | arm | gas-like | macro-heavy | bminor/glibc | sysdeps/arm/armv6t2/strlen.S | LGPL-2.1 | 688903eb3ef01301d239ab753d309d45720610a7 | github | libc | https://github.com/bminor/glibc/blob/688903eb3ef01301d239ab753d309d45720610a7/sysdeps/arm/armv6t2/strlen.S | 1 | 60 |
bminor/glibc:sysdeps/arm/armv6t2/strlen.S:2 | such difference. */
.macro bne.w label
bne \label
.endm
/* This clobbers the condition codes, which the real Thumb cbnz instruction
does not do. But it doesn't matter for any of the uses here. */
.macro cbnz reg, label
cmp \reg, #0
bne \label
.endm
#endif
/* Parameters and result. */
#define srcin r0
#defi... | arm | gas-like | macro-heavy | bminor/glibc | sysdeps/arm/armv6t2/strlen.S | LGPL-2.1 | 688903eb3ef01301d239ab753d309d45720610a7 | github | libc | https://github.com/bminor/glibc/blob/688903eb3ef01301d239ab753d309d45720610a7/sysdeps/arm/armv6t2/strlen.S | 41 | 100 |
bminor/glibc:sysdeps/arm/armv6t2/strlen.S:3 | mov const_0, #0
mov result, #-8
.Lloop_aligned:
/* Bytes 0-7. */
ldrd data1a, data1b, [src]
pld [src, #64]
add result, result, #8
.Lstart_realigned:
uadd8 data1a, data1a, const_m1 /* Saturating GE<0:3> set. */
sel data1a, const_0, const_m1 /* Select based on GE<0:3>. */
uadd8 data1b, data1b, const_m1
sel da... | arm | gas-like | macro-heavy | bminor/glibc | sysdeps/arm/armv6t2/strlen.S | LGPL-2.1 | 688903eb3ef01301d239ab753d309d45720610a7 | github | libc | https://github.com/bminor/glibc/blob/688903eb3ef01301d239ab753d309d45720610a7/sysdeps/arm/armv6t2/strlen.S | 81 | 140 |
bminor/glibc:sysdeps/arm/armv6t2/strlen.S:4 | cmp data1b, #0
beq .Lloop_aligned
.Lnull_found:
cmp data1a, #0
itt eq
addeq result, result, #4
moveq data1a, data1b
#ifndef __ARMEB__
rev data1a, data1a
#endif
clz data1a, data1a
ldrd r4, r5, [sp], #8
cfi_adjust_cfa_offset (-8)
cfi_restore (r4)
cfi_restore (r5)
add result, result, data1a, lsr #3 /* Bits ->... | arm | gas-like | macro-heavy | bminor/glibc | sysdeps/arm/armv6t2/strlen.S | LGPL-2.1 | 688903eb3ef01301d239ab753d309d45720610a7 | github | libc | https://github.com/bminor/glibc/blob/688903eb3ef01301d239ab753d309d45720610a7/sysdeps/arm/armv6t2/strlen.S | 121 | 164 |
bminor/glibc:sysdeps/arm/armv6t2/strlen.S:1 | /* Copyright (C) 2010-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; either
version 2.1 of the ... | arm | gas-like | macro-heavy | bminor/glibc | sysdeps/arm/armv6t2/strlen.S | LGPL-2.1 | 81cb7a0b2b6b905a504b8b56fe3c1634adf8fb71 | github | libc | https://github.com/bminor/glibc/blob/81cb7a0b2b6b905a504b8b56fe3c1634adf8fb71/sysdeps/arm/armv6t2/strlen.S | 1 | 60 |
bminor/glibc:sysdeps/arm/armv6t2/strlen.S:2 | such difference. */
.macro bne.w label
bne \label
.endm
/* This clobbers the condition codes, which the real Thumb cbnz instruction
does not do. But it doesn't matter for any of the uses here. */
.macro cbnz reg, label
cmp \reg, #0
bne \label
.endm
#endif
/* Parameters and result. */
#define srcin r0
#defi... | arm | gas-like | macro-heavy | bminor/glibc | sysdeps/arm/armv6t2/strlen.S | LGPL-2.1 | bfff8b1becd7d01c074177df7196ab327cd8c844 | github | libc | https://github.com/bminor/glibc/blob/bfff8b1becd7d01c074177df7196ab327cd8c844/sysdeps/arm/armv6t2/strlen.S | 41 | 100 |
bminor/glibc:sysdeps/arm/armv6t2/strlen.S:3 | mov const_0, #0
mov result, #-8
.Lloop_aligned:
/* Bytes 0-7. */
sfi_breg src, \
ldrd data1a, data1b, [\B]
sfi_pld src, #64
add result, result, #8
.Lstart_realigned:
uadd8 data1a, data1a, const_m1 /* Saturating GE<0:3> set. */
sel data1a, const_0, const_m1 /* Select based on GE<0:3>. */
uadd8 data1b, data1b... | arm | gas-like | macro-heavy | bminor/glibc | sysdeps/arm/armv6t2/strlen.S | LGPL-2.1 | bfff8b1becd7d01c074177df7196ab327cd8c844 | github | libc | https://github.com/bminor/glibc/blob/bfff8b1becd7d01c074177df7196ab327cd8c844/sysdeps/arm/armv6t2/strlen.S | 81 | 140 |
bminor/glibc:sysdeps/arm/armv6t2/strlen.S:4 | add result, result, #8
sel data1a, const_0, const_m1 /* Select based on GE<0:3>. */
uadd8 data1b, data1b, const_m1
sel data1b, data1a, const_m1 /* Only used if d1a == 0. */
cmp data1b, #0
beq .Lloop_aligned
.Lnull_found:
cmp data1a, #0
itt eq
addeq result, result, #4
moveq data1a, data1b
#ifndef __ARMEB__
... | arm | gas-like | macro-heavy | bminor/glibc | sysdeps/arm/armv6t2/strlen.S | LGPL-2.1 | bfff8b1becd7d01c074177df7196ab327cd8c844 | github | libc | https://github.com/bminor/glibc/blob/bfff8b1becd7d01c074177df7196ab327cd8c844/sysdeps/arm/armv6t2/strlen.S | 121 | 169 |
bminor/glibc:sysdeps/arm/armv6t2/strlen.S:1 | /* Copyright (C) 2010-2016 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the ... | arm | gas-like | macro-heavy | bminor/glibc | sysdeps/arm/armv6t2/strlen.S | LGPL-2.1 | f7a9f785e547bd599dee496fd906a28bcb4ec7fe | github | libc | https://github.com/bminor/glibc/blob/f7a9f785e547bd599dee496fd906a28bcb4ec7fe/sysdeps/arm/armv6t2/strlen.S | 1 | 60 |
bminor/glibc:sysdeps/arm/armv6t2/strlen.S:1 | /* Copyright (C) 2010-2015 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the ... | arm | gas-like | macro-heavy | bminor/glibc | sysdeps/arm/armv6t2/strlen.S | LGPL-2.1 | 890b7a4b33d482b5c768ab47d70758b80227e9bc | github | libc | https://github.com/bminor/glibc/blob/890b7a4b33d482b5c768ab47d70758b80227e9bc/sysdeps/arm/armv6t2/strlen.S | 1 | 60 |
bminor/glibc:sysdeps/arm/armv7/multiarch/memchr.S:1 | /* Multiple versions of memchr
All versions must be listed in ifunc-impl-list.c.
Copyright (C) 2013-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
... | arm | gas-like | handwritten | bminor/glibc | sysdeps/arm/armv7/multiarch/memchr.S | LGPL-2.1 | f8f72bc0c3da8ba039e6a1ed670ca576120b1f85 | github | libc | https://github.com/bminor/glibc/blob/f8f72bc0c3da8ba039e6a1ed670ca576120b1f85/sysdeps/arm/armv7/multiarch/memchr.S | 1 | 59 |
bminor/glibc:sysdeps/arm/armv7/multiarch/memchr_impl.S:1 | /* memchr implemented using NEON.
Copyright (C) 2011-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 Foundat... | arm | gas-like | handwritten | bminor/glibc | sysdeps/arm/armv7/multiarch/memchr_impl.S | LGPL-2.1 | f8f72bc0c3da8ba039e6a1ed670ca576120b1f85 | github | libc | https://github.com/bminor/glibc/blob/f8f72bc0c3da8ba039e6a1ed670ca576120b1f85/sysdeps/arm/armv7/multiarch/memchr_impl.S | 1 | 60 |
bminor/glibc:sysdeps/arm/armv7/multiarch/memchr_impl.S:2 | /* Working NEON registers */
#define vrepchr q0
#define vdata0 q1
#define vdata0_0 d2 /* Lower half of vdata0 */
#define vdata0_1 d3 /* Upper half of vdata0 */
#define vdata1 q2
#define vdata1_0 d4 /* Lower half of vhas_chr0 */
#define vdata1_1 d5 /* Upper half of vhas_chr0 */
#define vrepmask q3
#define vrepmask0 d... | arm | gas-like | handwritten | bminor/glibc | sysdeps/arm/armv7/multiarch/memchr_impl.S | LGPL-2.1 | f8f72bc0c3da8ba039e6a1ed670ca576120b1f85 | github | libc | https://github.com/bminor/glibc/blob/f8f72bc0c3da8ba039e6a1ed670ca576120b1f85/sysdeps/arm/armv7/multiarch/memchr_impl.S | 41 | 100 |
bminor/glibc:sysdeps/arm/armv7/multiarch/memchr_impl.S:3 | blo .Lnotfound /* Return not found if reached end. */
ldrb tmp, [srcin], #1
cmp tmp, chrin
bne .Lsmallstr /* Loop again if not found. */
/* Otherwise fixup address and return. */
sub result, srcin, #1
bx lr
.Llargestr:
vdup.8 vrepchr, chrin /* Duplicate char across all lanes. */
/*
* Magic constant 0x804... | arm | gas-like | handwritten | bminor/glibc | sysdeps/arm/armv7/multiarch/memchr_impl.S | LGPL-2.1 | f8f72bc0c3da8ba039e6a1ed670ca576120b1f85 | github | libc | https://github.com/bminor/glibc/blob/f8f72bc0c3da8ba039e6a1ed670ca576120b1f85/sysdeps/arm/armv7/multiarch/memchr_impl.S | 81 | 140 |
bminor/glibc:sysdeps/arm/armv7/multiarch/memchr_impl.S:4 | vpadd.i8 vdata0_0, vdata0_0, vdata0_0
vmov synd, vdata0_0[0]
/* Clear the soff lower bits */
lsr synd, synd, soff
lsl synd, synd, soff
/* The first block can also be the last */
bls .Lmasklast
/* Have we found something already? */
#ifndef NO_THUMB
cbnz synd, .Ltail
#else
cmp synd, #0
bne .Ltail
#endi... | arm | gas-like | handwritten | bminor/glibc | sysdeps/arm/armv7/multiarch/memchr_impl.S | LGPL-2.1 | f8f72bc0c3da8ba039e6a1ed670ca576120b1f85 | github | libc | https://github.com/bminor/glibc/blob/f8f72bc0c3da8ba039e6a1ed670ca576120b1f85/sysdeps/arm/armv7/multiarch/memchr_impl.S | 121 | 180 |
bminor/glibc:sysdeps/arm/armv7/multiarch/memchr_impl.S:5 | vpop {vend}
cfi_adjust_cfa_offset (-16)
cfi_restore (264)
cfi_restore (265)
/* Termination condition found, let's calculate the syndrome value. */
vand vdata0, vdata0, vrepmask
vand vdata1, vdata1, vrepmask
vpadd.i8 vdata0_0, vdata0_0, vdata0_1
vpadd.i8 vdata1_0, vdata1_0, vdata1_1
vpadd.i8 vdata0_0, vdata... | arm | gas-like | handwritten | bminor/glibc | sysdeps/arm/armv7/multiarch/memchr_impl.S | LGPL-2.1 | f8f72bc0c3da8ba039e6a1ed670ca576120b1f85 | github | libc | https://github.com/bminor/glibc/blob/f8f72bc0c3da8ba039e6a1ed670ca576120b1f85/sysdeps/arm/armv7/multiarch/memchr_impl.S | 161 | 219 |
bminor/glibc:sysdeps/arm/armv7/multiarch/memchr_impl.S:6 | clz synd, synd
/* Compute the potential result and return */
add result, src, synd
bx lr
.Lnotfound:
/* Set result to NULL if not found and return */
mov result, #0
bx lr
END(memchr)
libc_hidden_builtin_def (memchr)
#else
#include "../../armv6t2/memchr.S"
#endif | arm | gas-like | handwritten | bminor/glibc | sysdeps/arm/armv7/multiarch/memchr_impl.S | LGPL-2.1 | f8f72bc0c3da8ba039e6a1ed670ca576120b1f85 | github | libc | https://github.com/bminor/glibc/blob/f8f72bc0c3da8ba039e6a1ed670ca576120b1f85/sysdeps/arm/armv7/multiarch/memchr_impl.S | 201 | 219 |
bminor/glibc:sysdeps/arm/armv7/multiarch/memchr_neon.S:1 | /* memchr implemented using NEON.
Copyright (C) 2011-2026 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundat... | arm | gas-like | handwritten | bminor/glibc | sysdeps/arm/armv7/multiarch/memchr_neon.S | LGPL-2.1 | 04e750e75b73957cf1c791535a3f4319534a52fc | github | libc | https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/arm/armv7/multiarch/memchr_neon.S | 1 | 60 |
bminor/glibc:sysdeps/arm/armv7/multiarch/memchr_neon.S:2 | #define src r1 /* Live range does not overlap with chrin */
#define tmp r3
#define synd r0 /* No overlap with srcin or result */
#define soff r12
/* Working NEON registers */
#define vrepchr q0
#define vdata0 q1
#define vdata0_0 d2 /* Lower half of vdata0 */
#define vdata0_1 d3 /* Upper half of vdata0 */
#define... | arm | gas-like | handwritten | bminor/glibc | sysdeps/arm/armv7/multiarch/memchr_neon.S | LGPL-2.1 | 04e750e75b73957cf1c791535a3f4319534a52fc | github | libc | https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/arm/armv7/multiarch/memchr_neon.S | 41 | 100 |
bminor/glibc:sysdeps/arm/armv7/multiarch/memchr_neon.S:3 | subs cntin, cntin, #1
blo .Lnotfound /* Return not found if reached end. */
ldrb tmp, [srcin], #1
cmp tmp, chrin
bne .Lsmallstr /* Loop again if not found. */
/* Otherwise fixup address and return. */
sub result, srcin, #1
bx lr
.Llargestr:
vdup.8 vrepchr, chrin /* Duplicate char across all lanes. */
/*
... | arm | gas-like | handwritten | bminor/glibc | sysdeps/arm/armv7/multiarch/memchr_neon.S | LGPL-2.1 | 04e750e75b73957cf1c791535a3f4319534a52fc | github | libc | https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/arm/armv7/multiarch/memchr_neon.S | 81 | 140 |
bminor/glibc:sysdeps/arm/armv7/multiarch/memchr_neon.S:4 | vpadd.i8 vdata0_0, vdata0_0, vdata1_0
vpadd.i8 vdata0_0, vdata0_0, vdata0_0
vmov synd, vdata0_0[0]
/* Clear the soff lower bits */
lsr synd, synd, soff
lsl synd, synd, soff
/* The first block can also be the last */
bls .Lmasklast
/* Have we found something already? */
cbnz synd, .Ltail
.Lloopintro:
v... | arm | gas-like | handwritten | bminor/glibc | sysdeps/arm/armv7/multiarch/memchr_neon.S | LGPL-2.1 | 04e750e75b73957cf1c791535a3f4319534a52fc | github | libc | https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/arm/armv7/multiarch/memchr_neon.S | 121 | 180 |
bminor/glibc:sysdeps/arm/armv7/multiarch/memchr_neon.S:5 | /* Termination condition found, let's calculate the syndrome value. */
vand vdata0, vdata0, vrepmask
vand vdata1, vdata1, vrepmask
vpadd.i8 vdata0_0, vdata0_0, vdata0_1
vpadd.i8 vdata1_0, vdata1_0, vdata1_1
vpadd.i8 vdata0_0, vdata0_0, vdata1_0
vpadd.i8 vdata0_0, vdata0_0, vdata0_0
vmov synd, vdata0_0[0]
cbz... | arm | gas-like | handwritten | bminor/glibc | sysdeps/arm/armv7/multiarch/memchr_neon.S | LGPL-2.1 | 04e750e75b73957cf1c791535a3f4319534a52fc | github | libc | https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/arm/armv7/multiarch/memchr_neon.S | 161 | 202 |
bminor/glibc:sysdeps/arm/armv7/multiarch/memchr_neon.S:1 | /* memchr implemented using NEON.
Copyright (C) 2011-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 Foundat... | arm | gas-like | handwritten | bminor/glibc | sysdeps/arm/armv7/multiarch/memchr_neon.S | LGPL-2.1 | 2642002380aafb71a1d3b569b6d7ebeab3284816 | github | libc | https://github.com/bminor/glibc/blob/2642002380aafb71a1d3b569b6d7ebeab3284816/sysdeps/arm/armv7/multiarch/memchr_neon.S | 1 | 60 |
bminor/glibc:sysdeps/arm/armv7/multiarch/memchr_neon.S:1 | /* memchr implemented using NEON.
Copyright (C) 2011-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 Foundat... | arm | gas-like | handwritten | bminor/glibc | sysdeps/arm/armv7/multiarch/memchr_neon.S | LGPL-2.1 | dff8da6b3e89b986bb7f6b1ec18cf65d5972e307 | github | libc | https://github.com/bminor/glibc/blob/dff8da6b3e89b986bb7f6b1ec18cf65d5972e307/sysdeps/arm/armv7/multiarch/memchr_neon.S | 1 | 60 |
bminor/glibc:sysdeps/arm/armv7/multiarch/memchr_neon.S:1 | /* memchr implemented using NEON.
Copyright (C) 2011-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 Foundat... | arm | gas-like | handwritten | bminor/glibc | sysdeps/arm/armv7/multiarch/memchr_neon.S | LGPL-2.1 | 6d7e8eda9b85b08f207a6dc6f187e94e4817270f | github | libc | https://github.com/bminor/glibc/blob/6d7e8eda9b85b08f207a6dc6f187e94e4817270f/sysdeps/arm/armv7/multiarch/memchr_neon.S | 1 | 60 |
bminor/glibc:sysdeps/arm/armv7/multiarch/memchr_neon.S:1 | /* memchr implemented using NEON.
Copyright (C) 2011-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 Foundat... | arm | gas-like | handwritten | bminor/glibc | sysdeps/arm/armv7/multiarch/memchr_neon.S | LGPL-2.1 | 581c785bf31bc74430320c7856bbfa3875d025fe | github | libc | https://github.com/bminor/glibc/blob/581c785bf31bc74430320c7856bbfa3875d025fe/sysdeps/arm/armv7/multiarch/memchr_neon.S | 1 | 60 |
bminor/glibc:sysdeps/arm/armv7/multiarch/memchr_neon.S:1 | /* memchr implemented using NEON.
Copyright (C) 2011-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 Foundat... | arm | gas-like | handwritten | bminor/glibc | sysdeps/arm/armv7/multiarch/memchr_neon.S | LGPL-2.1 | 2b778ceb4010c28d70de9b8eab20e8d88eed586b | github | libc | https://github.com/bminor/glibc/blob/2b778ceb4010c28d70de9b8eab20e8d88eed586b/sysdeps/arm/armv7/multiarch/memchr_neon.S | 1 | 60 |
bminor/glibc:sysdeps/arm/armv7/multiarch/memchr_neon.S:1 | /* memchr implemented using NEON.
Copyright (C) 2011-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 Foundat... | arm | gas-like | handwritten | bminor/glibc | sysdeps/arm/armv7/multiarch/memchr_neon.S | LGPL-2.1 | d614a7539657941a9201c236b2f15afac18e1213 | github | libc | https://github.com/bminor/glibc/blob/d614a7539657941a9201c236b2f15afac18e1213/sysdeps/arm/armv7/multiarch/memchr_neon.S | 1 | 60 |
bminor/glibc:sysdeps/arm/armv7/multiarch/memchr_neon.S:1 | /* memchr implemented using NEON.
Copyright (C) 2011-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 Foundat... | arm | gas-like | handwritten | bminor/glibc | sysdeps/arm/armv7/multiarch/memchr_neon.S | LGPL-2.1 | 5a82c74822d3272df2f5929133680478c0cfb4bd | github | libc | https://github.com/bminor/glibc/blob/5a82c74822d3272df2f5929133680478c0cfb4bd/sysdeps/arm/armv7/multiarch/memchr_neon.S | 1 | 60 |
bminor/glibc:sysdeps/arm/armv7/multiarch/memchr_neon.S:1 | /* memchr implemented using NEON.
Copyright (C) 2011-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 Foundat... | arm | gas-like | handwritten | bminor/glibc | sysdeps/arm/armv7/multiarch/memchr_neon.S | LGPL-2.1 | 04277e02d7f54d3582bebcf8386b317018cd5e1d | github | libc | https://github.com/bminor/glibc/blob/04277e02d7f54d3582bebcf8386b317018cd5e1d/sysdeps/arm/armv7/multiarch/memchr_neon.S | 1 | 60 |
bminor/glibc:sysdeps/arm/armv7/multiarch/memchr_neon.S:1 | /* memchr implemented using NEON.
Copyright (C) 2011-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 Foundat... | arm | gas-like | handwritten | bminor/glibc | sysdeps/arm/armv7/multiarch/memchr_neon.S | LGPL-2.1 | 743b9c2a98426fb40f8ffee3529c8870bc5300f5 | github | libc | https://github.com/bminor/glibc/blob/743b9c2a98426fb40f8ffee3529c8870bc5300f5/sysdeps/arm/armv7/multiarch/memchr_neon.S | 1 | 60 |
bminor/glibc:sysdeps/arm/armv7/multiarch/memchr_neon.S:2 | #define src r1 /* Live range does not overlap with chrin */
#define tmp r3
#define synd r0 /* No overlap with srcin or result */
#define soff r12
/* Working NEON registers */
#define vrepchr q0
#define vdata0 q1
#define vdata0_0 d2 /* Lower half of vdata0 */
#define vdata0_1 d3 /* Upper half of vdata0 */
#define... | arm | gas-like | handwritten | bminor/glibc | sysdeps/arm/armv7/multiarch/memchr_neon.S | LGPL-2.1 | 688903eb3ef01301d239ab753d309d45720610a7 | github | libc | https://github.com/bminor/glibc/blob/688903eb3ef01301d239ab753d309d45720610a7/sysdeps/arm/armv7/multiarch/memchr_neon.S | 41 | 100 |
bminor/glibc:sysdeps/arm/armv7/multiarch/memchr_neon.S:3 | bhi .Llargestr
and chrin, chrin, #0xff
.Lsmallstr:
subs cntin, cntin, #1
blo .Lnotfound /* Return not found if reached end. */
ldrb tmp, [srcin], #1
cmp tmp, chrin
bne .Lsmallstr /* Loop again if not found. */
/* Otherwise fixup address and return. */
sub result, srcin, #1
bx lr
.Llargestr:
vdup.8 vrepc... | arm | gas-like | handwritten | bminor/glibc | sysdeps/arm/armv7/multiarch/memchr_neon.S | LGPL-2.1 | 688903eb3ef01301d239ab753d309d45720610a7 | github | libc | https://github.com/bminor/glibc/blob/688903eb3ef01301d239ab753d309d45720610a7/sysdeps/arm/armv7/multiarch/memchr_neon.S | 81 | 140 |
bminor/glibc:sysdeps/arm/armv7/multiarch/memchr_neon.S:4 | vand vdata0, vdata0, vrepmask
vand vdata1, vdata1, vrepmask
vpadd.i8 vdata0_0, vdata0_0, vdata0_1
vpadd.i8 vdata1_0, vdata1_0, vdata1_1
vpadd.i8 vdata0_0, vdata0_0, vdata1_0
vpadd.i8 vdata0_0, vdata0_0, vdata0_0
vmov synd, vdata0_0[0]
/* Clear the soff lower bits */
lsr synd, synd, soff
lsl synd, synd, s... | arm | gas-like | handwritten | bminor/glibc | sysdeps/arm/armv7/multiarch/memchr_neon.S | LGPL-2.1 | 688903eb3ef01301d239ab753d309d45720610a7 | github | libc | https://github.com/bminor/glibc/blob/688903eb3ef01301d239ab753d309d45720610a7/sysdeps/arm/armv7/multiarch/memchr_neon.S | 121 | 180 |
bminor/glibc:sysdeps/arm/armv7/multiarch/memchr_neon.S:5 | orrs synd, synd, tmp
/* We're not out of data, loop if we haven't found the character. */
beq .Lloop
.Lend:
vpop {vend}
cfi_adjust_cfa_offset (-16)
cfi_restore (264)
cfi_restore (265)
/* Termination condition found, let's calculate the syndrome value. */
vand vdata0, vdata0, vrepmask
vand vdata1, vdata1... | arm | gas-like | handwritten | bminor/glibc | sysdeps/arm/armv7/multiarch/memchr_neon.S | LGPL-2.1 | 688903eb3ef01301d239ab753d309d45720610a7 | github | libc | https://github.com/bminor/glibc/blob/688903eb3ef01301d239ab753d309d45720610a7/sysdeps/arm/armv7/multiarch/memchr_neon.S | 161 | 218 |
bminor/glibc:sysdeps/arm/armv7/multiarch/memchr_neon.S:6 | /* Count the trailing zeros using bit reversing */
rbit synd, synd
/* Compensate the last post-increment */
sub src, src, #32
/* Count the leading zeros */
clz synd, synd
/* Compute the potential result and return */
add result, src, synd
bx lr
.Lnotfound:
/* Set result to NULL if not found and return */
mo... | arm | gas-like | handwritten | bminor/glibc | sysdeps/arm/armv7/multiarch/memchr_neon.S | LGPL-2.1 | 688903eb3ef01301d239ab753d309d45720610a7 | github | libc | https://github.com/bminor/glibc/blob/688903eb3ef01301d239ab753d309d45720610a7/sysdeps/arm/armv7/multiarch/memchr_neon.S | 201 | 218 |
bminor/glibc:sysdeps/arm/armv7/multiarch/memchr_neon.S:1 | /* memchr implemented using NEON.
Copyright (C) 2011-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 Foundat... | arm | gas-like | handwritten | bminor/glibc | sysdeps/arm/armv7/multiarch/memchr_neon.S | LGPL-2.1 | a1a638dda91ed7739a066477908511e53840603b | github | libc | https://github.com/bminor/glibc/blob/a1a638dda91ed7739a066477908511e53840603b/sysdeps/arm/armv7/multiarch/memchr_neon.S | 1 | 60 |
bminor/glibc:sysdeps/arm/armv7/multiarch/memcpy.S:1 | /* Multiple versions of memcpy
All versions must be listed in ifunc-impl-list.c.
Copyright (C) 2013-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
... | arm | gas-like | handwritten | bminor/glibc | sysdeps/arm/armv7/multiarch/memcpy.S | LGPL-2.1 | bfff8b1becd7d01c074177df7196ab327cd8c844 | github | libc | https://github.com/bminor/glibc/blob/bfff8b1becd7d01c074177df7196ab327cd8c844/sysdeps/arm/armv7/multiarch/memcpy.S | 1 | 60 |
bminor/glibc:sysdeps/arm/armv7/multiarch/memcpy.S:2 | add r0, r1, pc
DO_RET(lr)
# ifdef __SOFTFP__
.Lmemcpy_arm:
.long C_SYMBOL_NAME(__memcpy_arm) - 1b - PC_OFS
# endif
.Lmemcpy_neon:
.long C_SYMBOL_NAME(__memcpy_neon) - 1b - PC_OFS
.Lmemcpy_vfp:
.long C_SYMBOL_NAME(__memcpy_vfp) - 1b - PC_OFS
END(memcpy)
libc_hidden_builtin_def (memcpy)
#endif /* Not __ARM_NEON__... | arm | gas-like | handwritten | bminor/glibc | sysdeps/arm/armv7/multiarch/memcpy.S | LGPL-2.1 | bfff8b1becd7d01c074177df7196ab327cd8c844 | github | libc | https://github.com/bminor/glibc/blob/bfff8b1becd7d01c074177df7196ab327cd8c844/sysdeps/arm/armv7/multiarch/memcpy.S | 41 | 76 |
bminor/glibc:sysdeps/arm/armv7/multiarch/memcpy.S:1 | /* Multiple versions of memcpy
All versions must be listed in ifunc-impl-list.c.
Copyright (C) 2013-2016 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
... | arm | gas-like | handwritten | bminor/glibc | sysdeps/arm/armv7/multiarch/memcpy.S | LGPL-2.1 | f7a9f785e547bd599dee496fd906a28bcb4ec7fe | github | libc | https://github.com/bminor/glibc/blob/f7a9f785e547bd599dee496fd906a28bcb4ec7fe/sysdeps/arm/armv7/multiarch/memcpy.S | 1 | 60 |
bminor/glibc:sysdeps/arm/armv7/multiarch/memcpy.S:1 | /* Multiple versions of memcpy
All versions must be listed in ifunc-impl-list.c.
Copyright (C) 2013-2015 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
... | arm | gas-like | handwritten | bminor/glibc | sysdeps/arm/armv7/multiarch/memcpy.S | LGPL-2.1 | 890b7a4b33d482b5c768ab47d70758b80227e9bc | github | libc | https://github.com/bminor/glibc/blob/890b7a4b33d482b5c768ab47d70758b80227e9bc/sysdeps/arm/armv7/multiarch/memcpy.S | 1 | 60 |
bminor/glibc:sysdeps/arm/armv7/multiarch/memcpy_arm.S:1 | #define memcpy __memcpy_arm
#undef libc_hidden_builtin_def
#define libc_hidden_builtin_def(a)
#include "memcpy_impl.S"
/* These versions of memcpy are defined not to clobber any VFP or NEON
registers so they must always call the ARM variant of the memcpy code. */
strong_alias (__memcpy_arm, __aeabi_memcpy)
strong_... | arm | gas-like | handwritten | bminor/glibc | sysdeps/arm/armv7/multiarch/memcpy_arm.S | LGPL-2.1 | 04e750e75b73957cf1c791535a3f4319534a52fc | github | libc | https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/arm/armv7/multiarch/memcpy_arm.S | 1 | 10 |
bminor/glibc:sysdeps/arm/armv7/multiarch/memcpy_impl.S:1 | /* NEON/VFP/ARM version of memcpy optimized for Cortex-A15.
Copyright (C) 2013-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... | arm | gas-like | macro-heavy | bminor/glibc | sysdeps/arm/armv7/multiarch/memcpy_impl.S | LGPL-2.1 | 04e750e75b73957cf1c791535a3f4319534a52fc | github | libc | https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/arm/armv7/multiarch/memcpy_impl.S | 1 | 60 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.