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/aarch64/strncmp.S:1 | /* 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 published by the Free Software Foundation; either
version 2.1 of the... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strncmp.S | LGPL-2.1 | 890b7a4b33d482b5c768ab47d70758b80227e9bc | github | libc | https://github.com/bminor/glibc/blob/890b7a4b33d482b5c768ab47d70758b80227e9bc/sysdeps/aarch64/strncmp.S | 1 | 60 |
bminor/glibc:sysdeps/aarch64/strnlen.S:1 | /* strnlen - calculate the length of a string with limit.
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... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strnlen.S | LGPL-2.1 | 04e750e75b73957cf1c791535a3f4319534a52fc | github | libc | https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/aarch64/strnlen.S | 1 | 60 |
bminor/glibc:sysdeps/aarch64/strnlen.S:2 | #define vhas_chr v1
#define vend v2
#define dend d2
/*
Core algorithm:
Process the string in 16-byte aligned chunks. Compute a 64-bit mask with
four bits per byte using the shrn instruction. A count trailing zeros then
identifies the first zero byte. */
ENTRY (__strnlen)
bic src, srcin, 15
cbz cntin,... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strnlen.S | LGPL-2.1 | 04e750e75b73957cf1c791535a3f4319534a52fc | github | libc | https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/aarch64/strnlen.S | 41 | 100 |
bminor/glibc:sysdeps/aarch64/strnlen.S:3 | sub src, src, 16
.p2align 5
L(loop32):
ldr qdata, [src, 32]!
cmeq vhas_chr.16b, vdata.16b, 0
umaxp vend.16b, vhas_chr.16b, vhas_chr.16b /* 128->64 */
fmov synd, dend
cbnz synd, L(end)
L(loop32_2):
ldr qdata, [src, 16]
subs cntrem, cntrem, 32
cmeq vhas_chr.16b, vdata.16b, 0
b.lo L(end_2)
umaxp vend.16b, vhas... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strnlen.S | LGPL-2.1 | 04e750e75b73957cf1c791535a3f4319534a52fc | github | libc | https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/aarch64/strnlen.S | 81 | 115 |
bminor/glibc:sysdeps/aarch64/strnlen.S:1 | /* strnlen - calculate the length of a string with limit.
Copyright (C) 2013-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... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strnlen.S | LGPL-2.1 | ce2f26a22e6b6f5c108d156afd9b43a452bb024c | github | libc | https://github.com/bminor/glibc/blob/ce2f26a22e6b6f5c108d156afd9b43a452bb024c/sysdeps/aarch64/strnlen.S | 1 | 60 |
bminor/glibc:sysdeps/aarch64/strnlen.S:1 | /* strnlen - calculate the length of a string with limit.
Copyright (C) 2013-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... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strnlen.S | LGPL-2.1 | 2642002380aafb71a1d3b569b6d7ebeab3284816 | github | libc | https://github.com/bminor/glibc/blob/2642002380aafb71a1d3b569b6d7ebeab3284816/sysdeps/aarch64/strnlen.S | 1 | 60 |
bminor/glibc:sysdeps/aarch64/strnlen.S:2 | #define vhas_chr v1
#define vend v2
#define dend d2
/*
Core algorithm:
Process the string in 16-byte aligned chunks. Compute a 64-bit mask with
four bits per byte using the shrn instruction. A count trailing zeros then
identifies the first zero byte. */
ENTRY (__strnlen)
PTR_ARG (0)
SIZE_ARG (1)
bic... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strnlen.S | LGPL-2.1 | 2642002380aafb71a1d3b569b6d7ebeab3284816 | github | libc | https://github.com/bminor/glibc/blob/2642002380aafb71a1d3b569b6d7ebeab3284816/sysdeps/aarch64/strnlen.S | 41 | 100 |
bminor/glibc:sysdeps/aarch64/strnlen.S:3 | /* Make sure that it won't overread by a 16-byte chunk */
tbz cntrem, 4, L(loop32_2)
sub src, src, 16
.p2align 5
L(loop32):
ldr qdata, [src, 32]!
cmeq vhas_chr.16b, vdata.16b, 0
umaxp vend.16b, vhas_chr.16b, vhas_chr.16b /* 128->64 */
fmov synd, dend
cbnz synd, L(end)
L(loop32_2):
ldr qdata, [src, 16]
subs c... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strnlen.S | LGPL-2.1 | 2642002380aafb71a1d3b569b6d7ebeab3284816 | github | libc | https://github.com/bminor/glibc/blob/2642002380aafb71a1d3b569b6d7ebeab3284816/sysdeps/aarch64/strnlen.S | 81 | 117 |
bminor/glibc:sysdeps/aarch64/strnlen.S:1 | /* strnlen - calculate the length of a string with limit.
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 as published by... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strnlen.S | LGPL-2.1 | dff8da6b3e89b986bb7f6b1ec18cf65d5972e307 | github | libc | https://github.com/bminor/glibc/blob/dff8da6b3e89b986bb7f6b1ec18cf65d5972e307/sysdeps/aarch64/strnlen.S | 1 | 60 |
bminor/glibc:sysdeps/aarch64/strnlen.S:1 | /* strnlen - calculate the length of a string with limit.
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 as published by... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strnlen.S | LGPL-2.1 | ad098893ba3c3344a5f2f6ab1627c47204afdb47 | github | libc | https://github.com/bminor/glibc/blob/ad098893ba3c3344a5f2f6ab1627c47204afdb47/sysdeps/aarch64/strnlen.S | 1 | 60 |
bminor/glibc:sysdeps/aarch64/strnlen.S:1 | /* strnlen - calculate the length of a string with limit.
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 as published by... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strnlen.S | LGPL-2.1 | 6d7e8eda9b85b08f207a6dc6f187e94e4817270f | github | libc | https://github.com/bminor/glibc/blob/6d7e8eda9b85b08f207a6dc6f187e94e4817270f/sysdeps/aarch64/strnlen.S | 1 | 60 |
bminor/glibc:sysdeps/aarch64/strnlen.S:2 | #define vhas_chr v1
#define vend v2
#define dend d2
/*
Core algorithm:
For each 16-byte chunk we calculate a 64-bit nibble mask value with four bits
per byte. We take 4 bits of every comparison byte with shift right and narrow
by 4 instruction. Since the bits in the nibble mask reflect the order in
w... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strnlen.S | LGPL-2.1 | 6d7e8eda9b85b08f207a6dc6f187e94e4817270f | github | libc | https://github.com/bminor/glibc/blob/6d7e8eda9b85b08f207a6dc6f187e94e4817270f/sysdeps/aarch64/strnlen.S | 41 | 100 |
bminor/glibc:sysdeps/aarch64/strnlen.S:3 | tbnz tmp, 4, L(loop32_2)
.p2align 5
L(loop32):
ldr qdata, [src], 16
cmeq vhas_chr.16b, vdata.16b, 0
umaxp vend.16b, vhas_chr.16b, vhas_chr.16b /* 128->64 */
fmov synd, dend
cbnz synd, L(end)
L(loop32_2):
ldr qdata, [src], 16
subs cntrem, cntrem, 32
cmeq vhas_chr.16b, vdata.16b, 0
b.ls L(end)
umaxp vend.16b... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strnlen.S | LGPL-2.1 | 6d7e8eda9b85b08f207a6dc6f187e94e4817270f | github | libc | https://github.com/bminor/glibc/blob/6d7e8eda9b85b08f207a6dc6f187e94e4817270f/sysdeps/aarch64/strnlen.S | 81 | 120 |
bminor/glibc:sysdeps/aarch64/strnlen.S:1 | /* strnlen - calculate the length of a string with limit.
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 as published by... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strnlen.S | LGPL-2.1 | 3c9980698988ef64072f1fac339b180f52792faf | github | libc | https://github.com/bminor/glibc/blob/3c9980698988ef64072f1fac339b180f52792faf/sysdeps/aarch64/strnlen.S | 1 | 60 |
bminor/glibc:sysdeps/aarch64/strnlen.S:1 | /* strnlen - calculate the length of a string with limit.
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 as published by... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strnlen.S | LGPL-2.1 | 581c785bf31bc74430320c7856bbfa3875d025fe | github | libc | https://github.com/bminor/glibc/blob/581c785bf31bc74430320c7856bbfa3875d025fe/sysdeps/aarch64/strnlen.S | 1 | 60 |
bminor/glibc:sysdeps/aarch64/strnlen.S:2 | #define vdata v0
#define vhas_chr v1
#define vrepmask v2
#define vend v3
#define dend d3
/*
Core algorithm:
For each 16-byte chunk we calculate a 64-bit syndrome value with four bits
per byte. For even bytes, bits 0-3 are set if the relevant byte matched the
requested character or the byte is NUL. Bits... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strnlen.S | LGPL-2.1 | 581c785bf31bc74430320c7856bbfa3875d025fe | github | libc | https://github.com/bminor/glibc/blob/581c785bf31bc74430320c7856bbfa3875d025fe/sysdeps/aarch64/strnlen.S | 41 | 100 |
bminor/glibc:sysdeps/aarch64/strnlen.S:3 | sub tmp, src, srcin
subs cntrem, cntin, tmp
b.ls L(nomatch)
/* Make sure that it won't overread by a 16-byte chunk */
add tmp, cntrem, 15
tbnz tmp, 4, L(loop32_2)
.p2align 5
L(loop32):
ldr qdata, [src], 16
cmeq vhas_chr.16b, vdata.16b, 0
umaxp vend.16b, vhas_chr.16b, vhas_chr.16b /* 128->64 */
fmov synd, d... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strnlen.S | LGPL-2.1 | 581c785bf31bc74430320c7856bbfa3875d025fe | github | libc | https://github.com/bminor/glibc/blob/581c785bf31bc74430320c7856bbfa3875d025fe/sysdeps/aarch64/strnlen.S | 81 | 127 |
bminor/glibc:sysdeps/aarch64/strnlen.S:1 | /* strnlen - calculate the length of a string with limit.
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 as published by... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strnlen.S | LGPL-2.1 | 252cad02d4c63540501b9b8c988cb91248563224 | github | libc | https://github.com/bminor/glibc/blob/252cad02d4c63540501b9b8c988cb91248563224/sysdeps/aarch64/strnlen.S | 1 | 60 |
bminor/glibc:sysdeps/aarch64/strnlen.S:1 | /* strnlen - calculate the length of a string with limit.
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 as published by... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strnlen.S | LGPL-2.1 | 2b778ceb4010c28d70de9b8eab20e8d88eed586b | github | libc | https://github.com/bminor/glibc/blob/2b778ceb4010c28d70de9b8eab20e8d88eed586b/sysdeps/aarch64/strnlen.S | 1 | 60 |
bminor/glibc:sysdeps/aarch64/strnlen.S:2 | #define tmp2 x9
#define tmp3 x10
#define tmp4 x11
#define zeroones x12
#define pos x13
#define limit_wd x14
#define dataq q2
#define datav v2
#define datab2 b3
#define dataq2 q3
#define datav2 v3
#define REP8_01 0x0101010101010101
#define REP8_7f 0x7f7f7f7f7f7f7f7f
#define REP8_80 0x8080808080808080
ENTRY_AL... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strnlen.S | LGPL-2.1 | 2b778ceb4010c28d70de9b8eab20e8d88eed586b | github | libc | https://github.com/bminor/glibc/blob/2b778ceb4010c28d70de9b8eab20e8d88eed586b/sysdeps/aarch64/strnlen.S | 41 | 100 |
bminor/glibc:sysdeps/aarch64/strnlen.S:3 | sub tmp1, data1, zeroones
orr tmp2, data1, #REP8_7f
sub tmp3, data2, zeroones
orr tmp4, data2, #REP8_7f
bic has_nul1, tmp1, tmp2
bic has_nul2, tmp3, tmp4
subs limit_wd, limit_wd, #1
orr tmp1, has_nul1, has_nul2
ccmp tmp1, #0, #0, pl /* NZCV = 0000 */
b.eq L(loop)
/* End of critical section -- keep to one 64B... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strnlen.S | LGPL-2.1 | 2b778ceb4010c28d70de9b8eab20e8d88eed586b | github | libc | https://github.com/bminor/glibc/blob/2b778ceb4010c28d70de9b8eab20e8d88eed586b/sysdeps/aarch64/strnlen.S | 81 | 140 |
bminor/glibc:sysdeps/aarch64/strnlen.S:4 | add len, len, pos, lsr #3 /* Bits to bytes. */
cmp len, limit
csel len, len, limit, ls /* Return the lower value. */
RET
L(loop):
ldr dataq, [src], #16
uminv datab2, datav.16b
mov tmp1, datav2.d[0]
subs limit_wd, limit_wd, #1
ccmp tmp1, #0, #4, pl /* NZCV = 0000 */
b.eq L(loop_end)
ldr dataq, [src], #16... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strnlen.S | LGPL-2.1 | 2b778ceb4010c28d70de9b8eab20e8d88eed586b | github | libc | https://github.com/bminor/glibc/blob/2b778ceb4010c28d70de9b8eab20e8d88eed586b/sysdeps/aarch64/strnlen.S | 121 | 180 |
bminor/glibc:sysdeps/aarch64/strnlen.S:5 | mov data2, datav.d[1]
#endif
cmp data1, 0
csel data1, data1, data2, ne
sub len, src, srcin
sub len, len, #16
rev data1, data1
add tmp2, len, 8
clz tmp1, data1
csel len, len, tmp2, ne
add len, len, tmp1, lsr 3
cmp len, limit
csel len, len, limit, ls /* Return the lower value. */
RET
L(misaligned):
/* Dea... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strnlen.S | LGPL-2.1 | 2b778ceb4010c28d70de9b8eab20e8d88eed586b | github | libc | https://github.com/bminor/glibc/blob/2b778ceb4010c28d70de9b8eab20e8d88eed586b/sysdeps/aarch64/strnlen.S | 161 | 219 |
bminor/glibc:sysdeps/aarch64/strnlen.S:6 | /* Little-endian. Early bytes are at LSB. */
lsr tmp2, tmp2, tmp4 /* Shift (tmp1 & 63). */
#endif
add limit_wd, limit_wd, tmp3, lsr #4
orr data1, data1, tmp2
orr data2a, data2, tmp2
csinv data1, data1, xzr, le
csel data2, data2, data2a, le
b L(realigned)
L(hit_limit):
mov len, limit
RET
END (__strnlen)
l... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strnlen.S | LGPL-2.1 | 2b778ceb4010c28d70de9b8eab20e8d88eed586b | github | libc | https://github.com/bminor/glibc/blob/2b778ceb4010c28d70de9b8eab20e8d88eed586b/sysdeps/aarch64/strnlen.S | 201 | 219 |
bminor/glibc:sysdeps/aarch64/strnlen.S:1 | /* strnlen - calculate the length of a string with limit.
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 as published by... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strnlen.S | LGPL-2.1 | 45b1e17e9150dbd9ac2d578579063fbfa8e1b327 | github | libc | https://github.com/bminor/glibc/blob/45b1e17e9150dbd9ac2d578579063fbfa8e1b327/sysdeps/aarch64/strnlen.S | 1 | 60 |
bminor/glibc:sysdeps/aarch64/strnlen.S:1 | /* strnlen - calculate the length of a string with limit.
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 as published by... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strnlen.S | LGPL-2.1 | 59b64f9cbbf1e98c6d187873de6c363994aee19d | github | libc | https://github.com/bminor/glibc/blob/59b64f9cbbf1e98c6d187873de6c363994aee19d/sysdeps/aarch64/strnlen.S | 1 | 60 |
bminor/glibc:sysdeps/aarch64/strnlen.S:2 | #define tmp2 x9
#define tmp3 x10
#define tmp4 x11
#define zeroones x12
#define pos x13
#define limit_wd x14
#define dataq q2
#define datav v2
#define datab2 b3
#define dataq2 q3
#define datav2 v3
#define REP8_01 0x0101010101010101
#define REP8_7f 0x7f7f7f7f7f7f7f7f
#define REP8_80 0x8080808080808080
ENTRY_AL... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strnlen.S | LGPL-2.1 | 59b64f9cbbf1e98c6d187873de6c363994aee19d | github | libc | https://github.com/bminor/glibc/blob/59b64f9cbbf1e98c6d187873de6c363994aee19d/sysdeps/aarch64/strnlen.S | 41 | 100 |
bminor/glibc:sysdeps/aarch64/strnlen.S:3 | L(realigned):
sub tmp1, data1, zeroones
orr tmp2, data1, #REP8_7f
sub tmp3, data2, zeroones
orr tmp4, data2, #REP8_7f
bic has_nul1, tmp1, tmp2
bic has_nul2, tmp3, tmp4
subs limit_wd, limit_wd, #1
orr tmp1, has_nul1, has_nul2
ccmp tmp1, #0, #0, pl /* NZCV = 0000 */
b.eq L(loop)
/* End of critical section -- ... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strnlen.S | LGPL-2.1 | 59b64f9cbbf1e98c6d187873de6c363994aee19d | github | libc | https://github.com/bminor/glibc/blob/59b64f9cbbf1e98c6d187873de6c363994aee19d/sysdeps/aarch64/strnlen.S | 81 | 140 |
bminor/glibc:sysdeps/aarch64/strnlen.S:4 | clz pos, has_nul2
add len, len, pos, lsr #3 /* Bits to bytes. */
cmp len, limit
csel len, len, limit, ls /* Return the lower value. */
RET
L(loop):
ldr dataq, [src], #16
uminv datab2, datav.16b
mov tmp1, datav2.d[0]
subs limit_wd, limit_wd, #1
ccmp tmp1, #0, #4, pl /* NZCV = 0000 */
b.eq L(loop_end)
ld... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strnlen.S | LGPL-2.1 | 59b64f9cbbf1e98c6d187873de6c363994aee19d | github | libc | https://github.com/bminor/glibc/blob/59b64f9cbbf1e98c6d187873de6c363994aee19d/sysdeps/aarch64/strnlen.S | 121 | 180 |
bminor/glibc:sysdeps/aarch64/strnlen.S:5 | mov data1, datav.d[0]
mov data2, datav.d[1]
#endif
cmp data1, 0
csel data1, data1, data2, ne
sub len, src, srcin
sub len, len, #16
rev data1, data1
add tmp2, len, 8
clz tmp1, data1
csel len, len, tmp2, ne
add len, len, tmp1, lsr 3
cmp len, limit
csel len, len, limit, ls /* Return the lower value. */
RET
... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strnlen.S | LGPL-2.1 | 59b64f9cbbf1e98c6d187873de6c363994aee19d | github | libc | https://github.com/bminor/glibc/blob/59b64f9cbbf1e98c6d187873de6c363994aee19d/sysdeps/aarch64/strnlen.S | 161 | 220 |
bminor/glibc:sysdeps/aarch64/strnlen.S:6 | #else
/* Little-endian. Early bytes are at LSB. */
lsr tmp2, tmp2, tmp4 /* Shift (tmp1 & 63). */
#endif
add limit_wd, limit_wd, tmp3, lsr #4
orr data1, data1, tmp2
orr data2a, data2, tmp2
csinv data1, data1, xzr, le
csel data2, data2, data2a, le
b L(realigned)
L(hit_limit):
mov len, limit
RET
END (__str... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strnlen.S | LGPL-2.1 | 59b64f9cbbf1e98c6d187873de6c363994aee19d | github | libc | https://github.com/bminor/glibc/blob/59b64f9cbbf1e98c6d187873de6c363994aee19d/sysdeps/aarch64/strnlen.S | 201 | 220 |
bminor/glibc:sysdeps/aarch64/strnlen.S:4 | clz pos, has_nul2
add len, len, pos, lsr #3 /* Bits to bytes. */
cmp len, limit
csel len, len, limit, ls /* Return the lower value. */
RET
L(loop):
ldr dataq, [src], #16
uminv datab2, datav.16b
mov tmp1, datav2.d[0]
subs limit_wd, limit_wd, #1
ccmp tmp1, #0, #4, pl /* NZCV = 0000 */
b.eq L(loop_end)
ld... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strnlen.S | LGPL-2.1 | d614a7539657941a9201c236b2f15afac18e1213 | github | libc | https://github.com/bminor/glibc/blob/d614a7539657941a9201c236b2f15afac18e1213/sysdeps/aarch64/strnlen.S | 121 | 180 |
bminor/glibc:sysdeps/aarch64/strnlen.S:5 | sub len, src, srcin
sub len, len, #16
rev data1, data1
add tmp2, len, 8
clz tmp1, data1
csel len, len, tmp2, ne
add len, len, tmp1, lsr 3
cmp len, limit
csel len, len, limit, ls /* Return the lower value. */
RET
L(misaligned):
/* Deal with a partial first word.
We're doing two things in parallel here;
... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strnlen.S | LGPL-2.1 | d614a7539657941a9201c236b2f15afac18e1213 | github | libc | https://github.com/bminor/glibc/blob/d614a7539657941a9201c236b2f15afac18e1213/sysdeps/aarch64/strnlen.S | 161 | 215 |
bminor/glibc:sysdeps/aarch64/strnlen.S:6 | orr data1, data1, tmp2
orr data2a, data2, tmp2
csinv data1, data1, xzr, le
csel data2, data2, data2a, le
b L(realigned)
L(hit_limit):
mov len, limit
RET
END (__strnlen)
libc_hidden_def (__strnlen)
weak_alias (__strnlen, strnlen)
libc_hidden_def (strnlen) | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strnlen.S | LGPL-2.1 | d614a7539657941a9201c236b2f15afac18e1213 | github | libc | https://github.com/bminor/glibc/blob/d614a7539657941a9201c236b2f15afac18e1213/sysdeps/aarch64/strnlen.S | 201 | 215 |
bminor/glibc:sysdeps/aarch64/strnlen.S:1 | /* strnlen - calculate the length of a string with limit.
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 as published by... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strnlen.S | LGPL-2.1 | 2911cb68ed3d6c515ad1979237e74e1fefab3674 | github | libc | https://github.com/bminor/glibc/blob/2911cb68ed3d6c515ad1979237e74e1fefab3674/sysdeps/aarch64/strnlen.S | 1 | 60 |
bminor/glibc:sysdeps/aarch64/strnlen.S:1 | /* strnlen - calculate the length of a string with limit.
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 as published by... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strnlen.S | LGPL-2.1 | 5a82c74822d3272df2f5929133680478c0cfb4bd | github | libc | https://github.com/bminor/glibc/blob/5a82c74822d3272df2f5929133680478c0cfb4bd/sysdeps/aarch64/strnlen.S | 1 | 60 |
bminor/glibc:sysdeps/aarch64/strnlen.S:2 | #define tmp2 x9
#define tmp3 x10
#define tmp4 x11
#define zeroones x12
#define pos x13
#define limit_wd x14
#define REP8_01 0x0101010101010101
#define REP8_7f 0x7f7f7f7f7f7f7f7f
#define REP8_80 0x8080808080808080
ENTRY_ALIGN_AND_PAD (__strnlen, 6, 9)
DELOUSE (0)
DELOUSE (1)
DELOUSE (2)
cbz limit, L(hit_limit)... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strnlen.S | LGPL-2.1 | 5a82c74822d3272df2f5929133680478c0cfb4bd | github | libc | https://github.com/bminor/glibc/blob/5a82c74822d3272df2f5929133680478c0cfb4bd/sysdeps/aarch64/strnlen.S | 41 | 100 |
bminor/glibc:sysdeps/aarch64/strnlen.S:3 | bic has_nul1, tmp1, tmp2
bic has_nul2, tmp3, tmp4
subs limit_wd, limit_wd, #1
orr tmp1, has_nul1, has_nul2
ccmp tmp1, #0, #0, pl /* NZCV = 0000 */
b.eq L(loop)
/* End of critical section -- keep to one 64Byte cache line. */
orr tmp1, has_nul1, has_nul2
cbz tmp1, L(hit_limit) /* No null in final Qword. */
... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strnlen.S | LGPL-2.1 | 5a82c74822d3272df2f5929133680478c0cfb4bd | github | libc | https://github.com/bminor/glibc/blob/5a82c74822d3272df2f5929133680478c0cfb4bd/sysdeps/aarch64/strnlen.S | 81 | 140 |
bminor/glibc:sysdeps/aarch64/strnlen.S:4 | L(misaligned):
/* Deal with a partial first word.
We're doing two things in parallel here;
1) Calculate the number of words (but avoiding overflow if
limit is near ULONG_MAX) - to do this we need to work out
limit + tmp1 - 1 as a 65-bit value before shifting it;
2) Load and mask the initial d... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strnlen.S | LGPL-2.1 | 5a82c74822d3272df2f5929133680478c0cfb4bd | github | libc | https://github.com/bminor/glibc/blob/5a82c74822d3272df2f5929133680478c0cfb4bd/sysdeps/aarch64/strnlen.S | 121 | 165 |
bminor/glibc:sysdeps/aarch64/strnlen.S:1 | /* strnlen - calculate the length of a string with limit.
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 as published by... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strnlen.S | LGPL-2.1 | 04277e02d7f54d3582bebcf8386b317018cd5e1d | github | libc | https://github.com/bminor/glibc/blob/04277e02d7f54d3582bebcf8386b317018cd5e1d/sysdeps/aarch64/strnlen.S | 1 | 60 |
bminor/glibc:sysdeps/aarch64/strnlen.S:1 | /* strnlen - calculate the length of a string with limit.
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 published by... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strnlen.S | LGPL-2.1 | 688903eb3ef01301d239ab753d309d45720610a7 | github | libc | https://github.com/bminor/glibc/blob/688903eb3ef01301d239ab753d309d45720610a7/sysdeps/aarch64/strnlen.S | 1 | 60 |
bminor/glibc:sysdeps/aarch64/strnlen.S:1 | /* strnlen - calculate the length of a string with limit.
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 published by... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strnlen.S | LGPL-2.1 | bfff8b1becd7d01c074177df7196ab327cd8c844 | github | libc | https://github.com/bminor/glibc/blob/bfff8b1becd7d01c074177df7196ab327cd8c844/sysdeps/aarch64/strnlen.S | 1 | 60 |
bminor/glibc:sysdeps/aarch64/strnlen.S:1 | /* strnlen - calculate the length of a string with limit.
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 published by... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strnlen.S | LGPL-2.1 | 389d1f1b232b3d6b9d73ee2c50e543ace6675621 | github | libc | https://github.com/bminor/glibc/blob/389d1f1b232b3d6b9d73ee2c50e543ace6675621/sysdeps/aarch64/strnlen.S | 1 | 60 |
bminor/glibc:sysdeps/aarch64/strnlen.S:1 | /* strnlen - calculate the length of a string with limit.
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 published by... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strnlen.S | LGPL-2.1 | f7a9f785e547bd599dee496fd906a28bcb4ec7fe | github | libc | https://github.com/bminor/glibc/blob/f7a9f785e547bd599dee496fd906a28bcb4ec7fe/sysdeps/aarch64/strnlen.S | 1 | 60 |
bminor/glibc:sysdeps/aarch64/strnlen.S:2 | #define tmp2 x9
#define tmp3 x10
#define tmp4 x11
#define zeroones x12
#define pos x13
#define limit_wd x14
#define REP8_01 0x0101010101010101
#define REP8_7f 0x7f7f7f7f7f7f7f7f
#define REP8_80 0x8080808080808080
ENTRY_ALIGN_AND_PAD (__strnlen, 6, 9)
cbz limit, L(hit_limit)
mov zeroones, #REP8_01
bic src, srci... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strnlen.S | LGPL-2.1 | f7a9f785e547bd599dee496fd906a28bcb4ec7fe | github | libc | https://github.com/bminor/glibc/blob/f7a9f785e547bd599dee496fd906a28bcb4ec7fe/sysdeps/aarch64/strnlen.S | 41 | 100 |
bminor/glibc:sysdeps/aarch64/strnlen.S:3 | orr tmp1, has_nul1, has_nul2
ccmp tmp1, #0, #0, pl /* NZCV = 0000 */
b.eq L(loop)
/* End of critical section -- keep to one 64Byte cache line. */
orr tmp1, has_nul1, has_nul2
cbz tmp1, L(hit_limit) /* No null in final Qword. */
/* We know there's a null in the final Qword. The easiest thing
to do now is... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strnlen.S | LGPL-2.1 | f7a9f785e547bd599dee496fd906a28bcb4ec7fe | github | libc | https://github.com/bminor/glibc/blob/f7a9f785e547bd599dee496fd906a28bcb4ec7fe/sysdeps/aarch64/strnlen.S | 81 | 140 |
bminor/glibc:sysdeps/aarch64/strnlen.S:4 | We're doing two things in parallel here;
1) Calculate the number of words (but avoiding overflow if
limit is near ULONG_MAX) - to do this we need to work out
limit + tmp1 - 1 as a 65-bit value before shifting it;
2) Load and mask the initial data words - we force the bytes
before the ones w... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strnlen.S | LGPL-2.1 | f7a9f785e547bd599dee496fd906a28bcb4ec7fe | github | libc | https://github.com/bminor/glibc/blob/f7a9f785e547bd599dee496fd906a28bcb4ec7fe/sysdeps/aarch64/strnlen.S | 121 | 162 |
bminor/glibc:sysdeps/aarch64/strnlen.S:1 | /* strnlen - calculate the length of a string with limit.
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 published by... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strnlen.S | LGPL-2.1 | 890b7a4b33d482b5c768ab47d70758b80227e9bc | github | libc | https://github.com/bminor/glibc/blob/890b7a4b33d482b5c768ab47d70758b80227e9bc/sysdeps/aarch64/strnlen.S | 1 | 60 |
bminor/glibc:sysdeps/aarch64/strrchr.S:1 | /* strrchr: find the last instance of a character in a string.
Copyright (C) 2014-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 publish... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strrchr.S | LGPL-2.1 | 04e750e75b73957cf1c791535a3f4319534a52fc | github | libc | https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/aarch64/strrchr.S | 1 | 60 |
bminor/glibc:sysdeps/aarch64/strrchr.S:2 | #define vrepchr v0
#define vdata v1
#define vhas_nul v2
#define vhas_chr v3
#define vrepmask v4
#define vend v5
#define dend d5
/* Core algorithm.
For each 16-byte chunk we calculate a 64-bit syndrome value, with
four bits per byte (LSB is always in bits 0 and 1, for both big
and little-endian systems). ... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strrchr.S | LGPL-2.1 | 04e750e75b73957cf1c791535a3f4319534a52fc | github | libc | https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/aarch64/strrchr.S | 41 | 100 |
bminor/glibc:sysdeps/aarch64/strrchr.S:3 | cbnz synd, L(loop1_end)
ldr q1, [src, 32]!
cmeq vhas_chr.16b, vdata.16b, vrepchr.16b
cmhs vhas_nul.16b, vhas_chr.16b, vdata.16b
umaxp vend.16b, vhas_nul.16b, vhas_nul.16b
fmov synd, dend
cbz synd, L(loop1)
sub src, src, 16
L(loop1_end):
add src, src, 16
cmeq vhas_nul.16b, vdata.16b, 0
#ifdef __AARCH64EB__
bif... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strrchr.S | LGPL-2.1 | 04e750e75b73957cf1c791535a3f4319534a52fc | github | libc | https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/aarch64/strrchr.S | 81 | 140 |
bminor/glibc:sysdeps/aarch64/strrchr.S:4 | L(loop2):
cmp synd, 0
csel src_match, src, src_match, ne
csel chr_match, synd, chr_match, ne
ld1 {vdata.16b}, [src], 16
cmeq vhas_nul.16b, vdata.16b, 0
cmeq vhas_chr.16b, vdata.16b, vrepchr.16b
bit vhas_nul.16b, vhas_chr.16b, vrepmask.16b
umaxp vend.16b, vhas_nul.16b, vhas_nul.16b
fmov synd, dend
tst synd, 0x... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strrchr.S | LGPL-2.1 | 04e750e75b73957cf1c791535a3f4319534a52fc | github | libc | https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/aarch64/strrchr.S | 121 | 150 |
bminor/glibc:sysdeps/aarch64/strrchr.S:1 | /* strrchr: find the last instance of a character in a string.
Copyright (C) 2014-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 publish... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strrchr.S | LGPL-2.1 | ce2f26a22e6b6f5c108d156afd9b43a452bb024c | github | libc | https://github.com/bminor/glibc/blob/ce2f26a22e6b6f5c108d156afd9b43a452bb024c/sysdeps/aarch64/strrchr.S | 1 | 60 |
bminor/glibc:sysdeps/aarch64/strrchr.S:1 | /* strrchr: find the last instance of a character in a string.
Copyright (C) 2014-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 publish... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strrchr.S | LGPL-2.1 | 2642002380aafb71a1d3b569b6d7ebeab3284816 | github | libc | https://github.com/bminor/glibc/blob/2642002380aafb71a1d3b569b6d7ebeab3284816/sysdeps/aarch64/strrchr.S | 1 | 60 |
bminor/glibc:sysdeps/aarch64/strrchr.S:2 | #define vrepchr v0
#define vdata v1
#define vhas_nul v2
#define vhas_chr v3
#define vrepmask v4
#define vend v5
#define dend d5
/* Core algorithm.
For each 16-byte chunk we calculate a 64-bit syndrome value, with
four bits per byte (LSB is always in bits 0 and 1, for both big
and little-endian systems). ... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strrchr.S | LGPL-2.1 | 2642002380aafb71a1d3b569b6d7ebeab3284816 | github | libc | https://github.com/bminor/glibc/blob/2642002380aafb71a1d3b569b6d7ebeab3284816/sysdeps/aarch64/strrchr.S | 41 | 100 |
bminor/glibc:sysdeps/aarch64/strrchr.S:3 | fmov synd, dend
cbnz synd, L(loop1_end)
ldr q1, [src, 32]!
cmeq vhas_chr.16b, vdata.16b, vrepchr.16b
cmhs vhas_nul.16b, vhas_chr.16b, vdata.16b
umaxp vend.16b, vhas_nul.16b, vhas_nul.16b
fmov synd, dend
cbz synd, L(loop1)
sub src, src, 16
L(loop1_end):
add src, src, 16
cmeq vhas_nul.16b, vdata.16b, 0
#ifdef _... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strrchr.S | LGPL-2.1 | 2642002380aafb71a1d3b569b6d7ebeab3284816 | github | libc | https://github.com/bminor/glibc/blob/2642002380aafb71a1d3b569b6d7ebeab3284816/sysdeps/aarch64/strrchr.S | 81 | 140 |
bminor/glibc:sysdeps/aarch64/strrchr.S:1 | /* strrchr: find the last instance of a character in a string.
Copyright (C) 2014-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 publish... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strrchr.S | LGPL-2.1 | dff8da6b3e89b986bb7f6b1ec18cf65d5972e307 | github | libc | https://github.com/bminor/glibc/blob/dff8da6b3e89b986bb7f6b1ec18cf65d5972e307/sysdeps/aarch64/strrchr.S | 1 | 60 |
bminor/glibc:sysdeps/aarch64/strrchr.S:1 | /* strrchr: find the last instance of a character in a string.
Copyright (C) 2014-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 publish... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strrchr.S | LGPL-2.1 | 55599d480437dcf129b41b95be32b48f2a9e5da9 | github | libc | https://github.com/bminor/glibc/blob/55599d480437dcf129b41b95be32b48f2a9e5da9/sysdeps/aarch64/strrchr.S | 1 | 60 |
bminor/glibc:sysdeps/aarch64/strrchr.S:1 | /* strrchr: find the last instance of a character in a string.
Copyright (C) 2014-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 publish... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strrchr.S | LGPL-2.1 | 6d7e8eda9b85b08f207a6dc6f187e94e4817270f | github | libc | https://github.com/bminor/glibc/blob/6d7e8eda9b85b08f207a6dc6f187e94e4817270f/sysdeps/aarch64/strrchr.S | 1 | 60 |
bminor/glibc:sysdeps/aarch64/strrchr.S:2 | #define nul_match x5
#define chr_match x6
#define vrepchr v0
#define vdata v1
#define vhas_nul v2
#define vhas_chr v3
#define vrepmask v4
#define vrepmask2 v5
#define vend v5
#define dend d5
/* Core algorithm.
For each 16-byte chunk we calculate a 64-bit syndrome value, with
four bits per byte (LSB is alwa... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strrchr.S | LGPL-2.1 | 6d7e8eda9b85b08f207a6dc6f187e94e4817270f | github | libc | https://github.com/bminor/glibc/blob/6d7e8eda9b85b08f207a6dc6f187e94e4817270f/sysdeps/aarch64/strrchr.S | 41 | 100 |
bminor/glibc:sysdeps/aarch64/strrchr.S:3 | lsl synd, synd, shift
ands nul_match, synd, 0xcccccccccccccccc
bne L(tail)
cbnz synd, L(loop2)
.p2align 5
L(loop1):
ld1 {vdata.16b}, [src], 16
cmeq vhas_chr.16b, vdata.16b, vrepchr.16b
cmhs vhas_nul.16b, vhas_chr.16b, vdata.16b
umaxp vend.16b, vhas_nul.16b, vhas_nul.16b
fmov synd, dend
cbz synd, L(loop1)
c... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strrchr.S | LGPL-2.1 | 6d7e8eda9b85b08f207a6dc6f187e94e4817270f | github | libc | https://github.com/bminor/glibc/blob/6d7e8eda9b85b08f207a6dc6f187e94e4817270f/sysdeps/aarch64/strrchr.S | 81 | 140 |
bminor/glibc:sysdeps/aarch64/strrchr.S:4 | bit vhas_nul.16b, vhas_chr.16b, vrepmask.16b
umaxp vend.16b, vhas_nul.16b, vhas_nul.16b
fmov synd, dend
tst synd, 0xcccccccccccccccc
beq L(loop2)
bic vhas_nul.8h, 0x0f, lsl 8
addp vend.16b, vhas_nul.16b, vhas_nul.16b
fmov synd, dend
and nul_match, synd, 0xcccccccccccccccc
sub nul_match, nul_match, 1
and tmp,... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strrchr.S | LGPL-2.1 | 6d7e8eda9b85b08f207a6dc6f187e94e4817270f | github | libc | https://github.com/bminor/glibc/blob/6d7e8eda9b85b08f207a6dc6f187e94e4817270f/sysdeps/aarch64/strrchr.S | 121 | 143 |
bminor/glibc:sysdeps/aarch64/strrchr.S:1 | /* strrchr: find the last instance of a character in a string.
Copyright (C) 2014-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 publish... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strrchr.S | LGPL-2.1 | 581c785bf31bc74430320c7856bbfa3875d025fe | github | libc | https://github.com/bminor/glibc/blob/581c785bf31bc74430320c7856bbfa3875d025fe/sysdeps/aarch64/strrchr.S | 1 | 60 |
bminor/glibc:sysdeps/aarch64/strrchr.S:1 | /* strrchr: find the last instance of a character in a string.
Copyright (C) 2014-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 publish... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strrchr.S | LGPL-2.1 | 2b778ceb4010c28d70de9b8eab20e8d88eed586b | github | libc | https://github.com/bminor/glibc/blob/2b778ceb4010c28d70de9b8eab20e8d88eed586b/sysdeps/aarch64/strrchr.S | 1 | 60 |
bminor/glibc:sysdeps/aarch64/strrchr.S:1 | /* strrchr: find the last instance of a character in a string.
Copyright (C) 2014-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 publish... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strrchr.S | LGPL-2.1 | 45b1e17e9150dbd9ac2d578579063fbfa8e1b327 | github | libc | https://github.com/bminor/glibc/blob/45b1e17e9150dbd9ac2d578579063fbfa8e1b327/sysdeps/aarch64/strrchr.S | 1 | 60 |
bminor/glibc:sysdeps/aarch64/strrchr.S:2 | #define nul_match x5
#define chr_match x6
#define vrepchr v0
#define vdata v1
#define vhas_nul v2
#define vhas_chr v3
#define vrepmask v4
#define vrepmask2 v5
#define vend v5
#define dend d5
/* Core algorithm.
For each 16-byte chunk we calculate a 64-bit syndrome value, with
four bits per byte (LSB is alwa... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strrchr.S | LGPL-2.1 | 79160c06c7b74672c7f7368355ca0b59103b2d30 | github | libc | https://github.com/bminor/glibc/blob/79160c06c7b74672c7f7368355ca0b59103b2d30/sysdeps/aarch64/strrchr.S | 41 | 100 |
bminor/glibc:sysdeps/aarch64/strrchr.S:1 | /* strrchr: find the last instance of a character in a string.
Copyright (C) 2014-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 publish... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strrchr.S | LGPL-2.1 | d614a7539657941a9201c236b2f15afac18e1213 | github | libc | https://github.com/bminor/glibc/blob/d614a7539657941a9201c236b2f15afac18e1213/sysdeps/aarch64/strrchr.S | 1 | 60 |
bminor/glibc:sysdeps/aarch64/strrchr.S:2 | #define const_m1 x8
#define tmp4 x9
#define nul_match x10
#define chr_match x11
#define vrepchr v0
#define vdata1 v1
#define vdata2 v2
#define vhas_nul1 v3
#define vhas_nul2 v4
#define vhas_chr1 v5
#define vhas_chr2 v6
#define vrepmask_0 v7
#define vrepmask_c v16
#define vend1 v17
#define vend2 v18
/* Core algo... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strrchr.S | LGPL-2.1 | d614a7539657941a9201c236b2f15afac18e1213 | github | libc | https://github.com/bminor/glibc/blob/d614a7539657941a9201c236b2f15afac18e1213/sysdeps/aarch64/strrchr.S | 41 | 100 |
bminor/glibc:sysdeps/aarch64/strrchr.S:3 | mov src_offset, #0
ands tmp1, srcin, #31
add vrepmask_0.4s, vrepmask_c.4s, vrepmask_c.4s /* equiv: lsl #1 */
b.eq L(aligned)
/* Input string is not 32-byte aligned. Rather than forcing
the padding bytes to a safe value, we calculate the syndrome
for all the bytes, but then mask off those bits of the
s... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strrchr.S | LGPL-2.1 | d614a7539657941a9201c236b2f15afac18e1213 | github | libc | https://github.com/bminor/glibc/blob/d614a7539657941a9201c236b2f15afac18e1213/sysdeps/aarch64/strrchr.S | 81 | 140 |
bminor/glibc:sysdeps/aarch64/strrchr.S:4 | cmeq vhas_chr1.16b, vdata1.16b, vrepchr.16b
cmeq vhas_nul2.16b, vdata2.16b, #0
cmeq vhas_chr2.16b, vdata2.16b, vrepchr.16b
addp vend1.16b, vhas_nul1.16b, vhas_nul2.16b // 256->128
and vhas_chr1.16b, vhas_chr1.16b, vrepmask_c.16b
and vhas_chr2.16b, vhas_chr2.16b, vrepmask_c.16b
addp vhas_chr1.16b, vhas_chr1.16b, v... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strrchr.S | LGPL-2.1 | d614a7539657941a9201c236b2f15afac18e1213 | github | libc | https://github.com/bminor/glibc/blob/d614a7539657941a9201c236b2f15afac18e1213/sysdeps/aarch64/strrchr.S | 121 | 166 |
bminor/glibc:sysdeps/aarch64/strrchr.S:1 | /* strrchr: find the last instance of a character in a string.
Copyright (C) 2014-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 publish... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strrchr.S | LGPL-2.1 | 5a82c74822d3272df2f5929133680478c0cfb4bd | github | libc | https://github.com/bminor/glibc/blob/5a82c74822d3272df2f5929133680478c0cfb4bd/sysdeps/aarch64/strrchr.S | 1 | 60 |
bminor/glibc:sysdeps/aarch64/strrchr.S:1 | /* strrchr: find the last instance of a character in a string.
Copyright (C) 2014-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 publish... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strrchr.S | LGPL-2.1 | 04277e02d7f54d3582bebcf8386b317018cd5e1d | github | libc | https://github.com/bminor/glibc/blob/04277e02d7f54d3582bebcf8386b317018cd5e1d/sysdeps/aarch64/strrchr.S | 1 | 60 |
bminor/glibc:sysdeps/aarch64/strrchr.S:1 | /* strrchr: find the last instance of a character in a string.
Copyright (C) 2014-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 publish... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strrchr.S | LGPL-2.1 | 688903eb3ef01301d239ab753d309d45720610a7 | github | libc | https://github.com/bminor/glibc/blob/688903eb3ef01301d239ab753d309d45720610a7/sysdeps/aarch64/strrchr.S | 1 | 60 |
bminor/glibc:sysdeps/aarch64/strrchr.S:1 | /* strrchr: find the last instance of a character in a string.
Copyright (C) 2014-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 publish... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strrchr.S | LGPL-2.1 | bfff8b1becd7d01c074177df7196ab327cd8c844 | github | libc | https://github.com/bminor/glibc/blob/bfff8b1becd7d01c074177df7196ab327cd8c844/sysdeps/aarch64/strrchr.S | 1 | 60 |
bminor/glibc:sysdeps/aarch64/strrchr.S:1 | /* strrchr: find the last instance of a character in a string.
Copyright (C) 2014-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 publish... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strrchr.S | LGPL-2.1 | 389d1f1b232b3d6b9d73ee2c50e543ace6675621 | github | libc | https://github.com/bminor/glibc/blob/389d1f1b232b3d6b9d73ee2c50e543ace6675621/sysdeps/aarch64/strrchr.S | 1 | 60 |
bminor/glibc:sysdeps/aarch64/strrchr.S:2 | #define const_m1 x8
#define tmp4 x9
#define nul_match x10
#define chr_match x11
#define vrepchr v0
#define vdata1 v1
#define vdata2 v2
#define vhas_nul1 v3
#define vhas_nul2 v4
#define vhas_chr1 v5
#define vhas_chr2 v6
#define vrepmask_0 v7
#define vrepmask_c v16
#define vend1 v17
#define vend2 v18
/* Core algo... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strrchr.S | LGPL-2.1 | f7a9f785e547bd599dee496fd906a28bcb4ec7fe | github | libc | https://github.com/bminor/glibc/blob/f7a9f785e547bd599dee496fd906a28bcb4ec7fe/sysdeps/aarch64/strrchr.S | 41 | 100 |
bminor/glibc:sysdeps/aarch64/strrchr.S:3 | ands tmp1, srcin, #31
add vrepmask_0.4s, vrepmask_c.4s, vrepmask_c.4s /* equiv: lsl #1 */
b.eq L(aligned)
/* Input string is not 32-byte aligned. Rather than forcing
the padding bytes to a safe value, we calculate the syndrome
for all the bytes, but then mask off those bits of the
syndrome that are rel... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strrchr.S | LGPL-2.1 | f7a9f785e547bd599dee496fd906a28bcb4ec7fe | github | libc | https://github.com/bminor/glibc/blob/f7a9f785e547bd599dee496fd906a28bcb4ec7fe/sysdeps/aarch64/strrchr.S | 81 | 140 |
bminor/glibc:sysdeps/aarch64/strrchr.S:4 | cmeq vhas_nul2.16b, vdata2.16b, #0
cmeq vhas_chr2.16b, vdata2.16b, vrepchr.16b
addp vend1.16b, vhas_nul1.16b, vhas_nul2.16b // 256->128
and vhas_chr1.16b, vhas_chr1.16b, vrepmask_c.16b
and vhas_chr2.16b, vhas_chr2.16b, vrepmask_c.16b
addp vhas_chr1.16b, vhas_chr1.16b, vhas_chr2.16b // 256->128
addp vend1.16b, ven... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strrchr.S | LGPL-2.1 | f7a9f785e547bd599dee496fd906a28bcb4ec7fe | github | libc | https://github.com/bminor/glibc/blob/f7a9f785e547bd599dee496fd906a28bcb4ec7fe/sysdeps/aarch64/strrchr.S | 121 | 165 |
bminor/glibc:sysdeps/aarch64/strrchr.S:1 | /* strrchr: find the last instance of a character in a string.
Copyright (C) 2014-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 publish... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strrchr.S | LGPL-2.1 | 890b7a4b33d482b5c768ab47d70758b80227e9bc | github | libc | https://github.com/bminor/glibc/blob/890b7a4b33d482b5c768ab47d70758b80227e9bc/sysdeps/aarch64/strrchr.S | 1 | 60 |
bminor/glibc:sysdeps/aarch64/strspn.S:1 | /* Copyright (C) 2025-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... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strspn.S | LGPL-2.1 | 04e750e75b73957cf1c791535a3f4319534a52fc | github | libc | https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/aarch64/strspn.S | 1 | 60 |
bminor/glibc:sysdeps/aarch64/strspn.S:2 | #define bits_i x4
#define one x6
#define syndrome x5
#define s x6
#define vbyte_i v1.16b
#define vbits_i v2.16b
#define table v4.16b-v5.16b
#define table_a v4
#define table_b v5
#define sevens v7.16b
ENTRY(STRSPN)
ldrb w2, [set]
cbz w2, L(early)
#ifdef USE_AS_STRCSPN
ldrb w3, [set, 1]
cbz w3, L(early)
#endif
... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strspn.S | LGPL-2.1 | 04e750e75b73957cf1c791535a3f4319534a52fc | github | libc | https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/aarch64/strspn.S | 41 | 100 |
bminor/glibc:sysdeps/aarch64/strspn.S:3 | str x5, [sp, byte_i, lsl 3]
cbnz w2, L(fill_table)
ld1 {table_a.2d-table_b.2d}, [sp], 32
.cfi_def_cfa_offset 0
ubfiz syndrome, og_s, 2, 4 /* Bottom 4 bits, times 4 to count nibbles */
and s, og_s, -16 /* Round S down to 16-byte boundary */
movi sevens, 7
/* Bias the syndrome to mask off these nibbles */
mov x... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strspn.S | LGPL-2.1 | 04e750e75b73957cf1c791535a3f4319534a52fc | github | libc | https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/aarch64/strspn.S | 81 | 140 |
bminor/glibc:sysdeps/aarch64/strspn.S:4 | /* strlen(set) < 2: call strchrnul(s, *set) and get its offset from S */
stp fp, lr, [sp, -32]!
.cfi_def_cfa_offset 32
.cfi_offset fp, -32
.cfi_offset lr, -24
str x19, [sp, 16]
.cfi_offset 19, -16
mov w1, w2
mov fp, sp
mov x19, x0
bl __strchrnul
sub x0, x0, x19
ldr x19, [sp, 16]
ldp fp, lr, [sp], 32
.cfi_... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strspn.S | LGPL-2.1 | 04e750e75b73957cf1c791535a3f4319534a52fc | github | libc | https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/aarch64/strspn.S | 121 | 146 |
bminor/glibc:sysdeps/aarch64/strspn.S:1 | /* Copyright (C) 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 Lice... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strspn.S | LGPL-2.1 | e20ca759af46fbb7eae20c52b857e7636eb50e1b | github | libc | https://github.com/bminor/glibc/blob/e20ca759af46fbb7eae20c52b857e7636eb50e1b/sysdeps/aarch64/strspn.S | 1 | 60 |
bminor/glibc:sysdeps/aarch64/tst-vpcs-mod.S:1 | /* Record the register state before and after a variant PCS call.
Copyright (C) 2020-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
publi... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/tst-vpcs-mod.S | LGPL-2.1 | 04e750e75b73957cf1c791535a3f4319534a52fc | github | libc | https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/aarch64/tst-vpcs-mod.S | 1 | 60 |
bminor/glibc:sysdeps/aarch64/tst-vpcs-mod.S:2 | stp x22, x23, [x0, 176]
stp x24, x25, [x0, 192]
stp x26, x27, [x0, 208]
stp x28, x29, [x0, 224]
mov x1, sp
stp x30, x1, [x0, 240]
stp q0, q1, [x0, 256]
stp q2, q3, [x0, 288]
stp q4, q5, [x0, 320]
stp q6, q7, [x0, 352]
stp q8, q9, [x0, 384]
stp q10, q11, [x0, 416]
stp q12, q13, [x0, 448]
stp q14, q15, [x0, ... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/tst-vpcs-mod.S | LGPL-2.1 | 04e750e75b73957cf1c791535a3f4319534a52fc | github | libc | https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/aarch64/tst-vpcs-mod.S | 41 | 100 |
bminor/glibc:sysdeps/aarch64/tst-vpcs-mod.S:3 | stp x27, x28, [sp, 80]
stp d8, d9, [sp, 96]
stp d10, d11, [sp, 112]
stp d12, d13, [sp, 128]
stp d14, d15, [sp, 144]
/* Initialize most registers from *x1, and save x0, x1, x29, x30,
and sp (== x29), so *x1 contains the register state. */
stp x0, x1, [x1]
str x29, [x1, 232]
ldp x2, x3, [x1, 16]
ldp x4, x5... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/tst-vpcs-mod.S | LGPL-2.1 | 04e750e75b73957cf1c791535a3f4319534a52fc | github | libc | https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/aarch64/tst-vpcs-mod.S | 81 | 140 |
bminor/glibc:sysdeps/aarch64/tst-vpcs-mod.S:4 | ldp q30, q31, [x1, 736]
/* Emulate a BL using B, but save x30 before the branch. */
adr x30, .L_return_addr
stp x30, x29, [x1, 240]
bl vpcs_call
.L_return_addr:
/* Restore callee-saved registers. */
ldp x19, x20, [sp, 16]
ldp x21, x22, [sp, 32]
ldp x23, x24, [sp, 48]
ldp x25, x26, [sp, 64]
ldp x27, x28, [... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/tst-vpcs-mod.S | LGPL-2.1 | 04e750e75b73957cf1c791535a3f4319534a52fc | github | libc | https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/aarch64/tst-vpcs-mod.S | 121 | 143 |
bminor/glibc:sysdeps/aarch64/tst-vpcs-mod.S:1 | /* Record the register state before and after a variant PCS call.
Copyright (C) 2020-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
publi... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/tst-vpcs-mod.S | LGPL-2.1 | d3f2b71ef1d146137a25dd1367d97a14fac341c6 | github | libc | https://github.com/bminor/glibc/blob/d3f2b71ef1d146137a25dd1367d97a14fac341c6/sysdeps/aarch64/tst-vpcs-mod.S | 1 | 60 |
bminor/glibc:sysdeps/aarch64/tst-vpcs-mod.S:1 | /* Record the register state before and after a variant PCS call.
Copyright (C) 2020-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
publi... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/tst-vpcs-mod.S | LGPL-2.1 | 2642002380aafb71a1d3b569b6d7ebeab3284816 | github | libc | https://github.com/bminor/glibc/blob/2642002380aafb71a1d3b569b6d7ebeab3284816/sysdeps/aarch64/tst-vpcs-mod.S | 1 | 60 |
bminor/glibc:sysdeps/aarch64/tst-vpcs-mod.S:2 | stp x26, x27, [x0, 208]
stp x28, x29, [x0, 224]
mov x1, sp
stp x30, x1, [x0, 240]
stp q0, q1, [x0, 256]
stp q2, q3, [x0, 288]
stp q4, q5, [x0, 320]
stp q6, q7, [x0, 352]
stp q8, q9, [x0, 384]
stp q10, q11, [x0, 416]
stp q12, q13, [x0, 448]
stp q14, q15, [x0, 480]
stp q16, q17, [x0, 512]
stp q18, q19, [x0, ... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/tst-vpcs-mod.S | LGPL-2.1 | 2642002380aafb71a1d3b569b6d7ebeab3284816 | github | libc | https://github.com/bminor/glibc/blob/2642002380aafb71a1d3b569b6d7ebeab3284816/sysdeps/aarch64/tst-vpcs-mod.S | 41 | 100 |
bminor/glibc:sysdeps/aarch64/tst-vpcs-mod.S:3 | stp d10, d11, [sp, 112]
stp d12, d13, [sp, 128]
stp d14, d15, [sp, 144]
/* Initialize most registers from *x1, and save x0, x1, x29, x30,
and sp (== x29), so *x1 contains the register state. */
stp x0, x1, [x1]
str x29, [x1, 232]
ldp x2, x3, [x1, 16]
ldp x4, x5, [x1, 32]
ldp x6, x7, [x1, 48]
ldp x8, x9, ... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/tst-vpcs-mod.S | LGPL-2.1 | 2642002380aafb71a1d3b569b6d7ebeab3284816 | github | libc | https://github.com/bminor/glibc/blob/2642002380aafb71a1d3b569b6d7ebeab3284816/sysdeps/aarch64/tst-vpcs-mod.S | 81 | 140 |
bminor/glibc:sysdeps/aarch64/tst-vpcs-mod.S:4 | /* Emulate a BL using B, but save x30 before the branch. */
adr x30, .L_return_addr
stp x30, x29, [x1, 240]
b vpcs_call
.L_return_addr:
/* Restore callee-saved registers. */
ldp x19, x20, [sp, 16]
ldp x21, x22, [sp, 32]
ldp x23, x24, [sp, 48]
ldp x25, x26, [sp, 64]
ldp x27, x28, [sp, 80]
ldp d8, d9, [sp, 9... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/tst-vpcs-mod.S | LGPL-2.1 | 2642002380aafb71a1d3b569b6d7ebeab3284816 | github | libc | https://github.com/bminor/glibc/blob/2642002380aafb71a1d3b569b6d7ebeab3284816/sysdeps/aarch64/tst-vpcs-mod.S | 121 | 141 |
bminor/glibc:sysdeps/aarch64/tst-vpcs-mod.S:1 | /* Record the register state before and after a variant PCS call.
Copyright (C) 2020-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
publi... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/tst-vpcs-mod.S | LGPL-2.1 | dff8da6b3e89b986bb7f6b1ec18cf65d5972e307 | github | libc | https://github.com/bminor/glibc/blob/dff8da6b3e89b986bb7f6b1ec18cf65d5972e307/sysdeps/aarch64/tst-vpcs-mod.S | 1 | 60 |
bminor/glibc:sysdeps/aarch64/tst-vpcs-mod.S:1 | /* Record the register state before and after a variant PCS call.
Copyright (C) 2020-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
publi... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/tst-vpcs-mod.S | LGPL-2.1 | 6d7e8eda9b85b08f207a6dc6f187e94e4817270f | github | libc | https://github.com/bminor/glibc/blob/6d7e8eda9b85b08f207a6dc6f187e94e4817270f/sysdeps/aarch64/tst-vpcs-mod.S | 1 | 60 |
bminor/glibc:sysdeps/aarch64/tst-vpcs-mod.S:1 | /* Record the register state before and after a variant PCS call.
Copyright (C) 2020-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
publi... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/tst-vpcs-mod.S | LGPL-2.1 | 581c785bf31bc74430320c7856bbfa3875d025fe | github | libc | https://github.com/bminor/glibc/blob/581c785bf31bc74430320c7856bbfa3875d025fe/sysdeps/aarch64/tst-vpcs-mod.S | 1 | 60 |
bminor/glibc:sysdeps/aarch64/tst-vpcs-mod.S:1 | /* Record the register state before and after a variant PCS call.
Copyright (C) 2020-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
publi... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/tst-vpcs-mod.S | LGPL-2.1 | 2b778ceb4010c28d70de9b8eab20e8d88eed586b | github | libc | https://github.com/bminor/glibc/blob/2b778ceb4010c28d70de9b8eab20e8d88eed586b/sysdeps/aarch64/tst-vpcs-mod.S | 1 | 60 |
bminor/glibc:sysdeps/aarch64/tst-vpcs-mod.S:1 | /* Record the register state before and after a variant PCS call.
Copyright (C) 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 ... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/tst-vpcs-mod.S | LGPL-2.1 | e156dabc766d6f6f99ce9402999eae380a3ec1f2 | github | libc | https://github.com/bminor/glibc/blob/e156dabc766d6f6f99ce9402999eae380a3ec1f2/sysdeps/aarch64/tst-vpcs-mod.S | 1 | 60 |
bminor/glibc:sysdeps/alpha/__longjmp.S:1 | /* Copyright (C) 1992-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 ... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/alpha/__longjmp.S | LGPL-2.1 | 04e750e75b73957cf1c791535a3f4319534a52fc | github | libc | https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/alpha/__longjmp.S | 1 | 60 |
bminor/glibc:sysdeps/alpha/__longjmp.S:2 | ldq s3, JB_S3*8(a0)
ldq s4, JB_S4*8(a0)
ldq s5, JB_S5*8(a0)
ldq ra, JB_PC*8(a0)
ldq fp, JB_FP*8(a0)
ldq t0, JB_SP*8(a0)
ldt $f2, JB_F2*8(a0)
ldt $f3, JB_F3*8(a0)
ldt $f4, JB_F4*8(a0)
ldt $f5, JB_F5*8(a0)
ldt $f6, JB_F6*8(a0)
ldt $f7, JB_F7*8(a0)
ldt $f8, J... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/alpha/__longjmp.S | LGPL-2.1 | 04e750e75b73957cf1c791535a3f4319534a52fc | github | libc | https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/alpha/__longjmp.S | 41 | 64 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.