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/multiarch/memmove_falkor.S:5 | ldp Q_l, Q_h, [src, 16]!
stp A_l, A_h, [dstin]
ldp A_l, A_h, [src, 16]!
L(loop64):
subs count, count, 32
stp Q_l, Q_h, [dst, 16]
ldp Q_l, Q_h, [src, 16]!
stp A_l, A_h, [dst, 32]!
ldp A_l, A_h, [src, 16]!
b.hi L(loop64)
/* Write the last full set of 32 bytes. The remainder is at most 32
bytes, so it is s... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/multiarch/memmove_falkor.S | LGPL-2.1 | 688903eb3ef01301d239ab753d309d45720610a7 | github | libc | https://github.com/bminor/glibc/blob/688903eb3ef01301d239ab753d309d45720610a7/sysdeps/aarch64/multiarch/memmove_falkor.S | 161 | 220 |
bminor/glibc:sysdeps/aarch64/multiarch/memmove_falkor.S:6 | sub srcend, srcend, tmp1
ldp Q_l, Q_h, [srcend, -16]!
stp A_l, A_h, [dstend, -16]
sub count, count, tmp1
ldp A_l, A_h, [srcend, -16]!
sub dstend, dstend, tmp1
sub count, count, 64
1:
subs count, count, 32
stp Q_l, Q_h, [dstend, -16]
ldp Q_l, Q_h, [srcend, -16]!
stp A_l, A_h, [dstend, -32]!
ldp A_l, A_h, [sr... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/multiarch/memmove_falkor.S | LGPL-2.1 | 688903eb3ef01301d239ab753d309d45720610a7 | github | libc | https://github.com/bminor/glibc/blob/688903eb3ef01301d239ab753d309d45720610a7/sysdeps/aarch64/multiarch/memmove_falkor.S | 201 | 232 |
bminor/glibc:sysdeps/aarch64/multiarch/memmove_falkor.S:1 | /* Copyright (C) 2017 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the Lice... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/multiarch/memmove_falkor.S | LGPL-2.1 | dd5bc7f1b385b29d0f90aefe4d9756b35011709b | github | libc | https://github.com/bminor/glibc/blob/dd5bc7f1b385b29d0f90aefe4d9756b35011709b/sysdeps/aarch64/multiarch/memmove_falkor.S | 1 | 60 |
bminor/glibc:sysdeps/aarch64/multiarch/memmove_mops.S:1 | /* Optimized memmove for MOPS.
Copyright (C) 2023-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 Foundatio... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/multiarch/memmove_mops.S | LGPL-2.1 | 04e750e75b73957cf1c791535a3f4319534a52fc | github | libc | https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/aarch64/multiarch/memmove_mops.S | 1 | 35 |
bminor/glibc:sysdeps/aarch64/multiarch/memmove_mops.S:1 | /* Optimized memmove for MOPS.
Copyright (C) 2023-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 Foundatio... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/multiarch/memmove_mops.S | LGPL-2.1 | ce2f26a22e6b6f5c108d156afd9b43a452bb024c | github | libc | https://github.com/bminor/glibc/blob/ce2f26a22e6b6f5c108d156afd9b43a452bb024c/sysdeps/aarch64/multiarch/memmove_mops.S | 1 | 35 |
bminor/glibc:sysdeps/aarch64/multiarch/memmove_mops.S:1 | /* Optimized memmove for MOPS.
Copyright (C) 2023-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 Foundatio... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/multiarch/memmove_mops.S | LGPL-2.1 | 2642002380aafb71a1d3b569b6d7ebeab3284816 | github | libc | https://github.com/bminor/glibc/blob/2642002380aafb71a1d3b569b6d7ebeab3284816/sysdeps/aarch64/multiarch/memmove_mops.S | 1 | 39 |
bminor/glibc:sysdeps/aarch64/multiarch/memmove_mops.S:1 | /* Optimized memmove for MOPS.
Copyright (C) 2023-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 Foundatio... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/multiarch/memmove_mops.S | LGPL-2.1 | dff8da6b3e89b986bb7f6b1ec18cf65d5972e307 | github | libc | https://github.com/bminor/glibc/blob/dff8da6b3e89b986bb7f6b1ec18cf65d5972e307/sysdeps/aarch64/multiarch/memmove_mops.S | 1 | 39 |
bminor/glibc:sysdeps/aarch64/multiarch/memmove_mops.S:1 | /* Optimized memmove for MOPS.
Copyright (C) 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; ei... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/multiarch/memmove_mops.S | LGPL-2.1 | 2bd00179885928fd95fcabfafc50e7b5c6e660d2 | github | libc | https://github.com/bminor/glibc/blob/2bd00179885928fd95fcabfafc50e7b5c6e660d2/sysdeps/aarch64/multiarch/memmove_mops.S | 1 | 39 |
bminor/glibc:sysdeps/aarch64/multiarch/memset_a64fx.S:1 | /* Optimized memset for Fujitsu A64FX processor.
Copyright (C) 2021-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 ... | arm64 | gas-like | macro-heavy | bminor/glibc | sysdeps/aarch64/multiarch/memset_a64fx.S | LGPL-2.1 | 04e750e75b73957cf1c791535a3f4319534a52fc | github | libc | https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/aarch64/multiarch/memset_a64fx.S | 1 | 60 |
bminor/glibc:sysdeps/aarch64/multiarch/memset_a64fx.S:2 | #define tmp1 x5
#define tmp2 x6
.macro st1b_unroll first=0, last=7
st1b z0.b, p0, [dst, \first, mul vl]
.if \last-\first
st1b_unroll "(\first+1)", \last
.endif
.endm
ENTRY (__memset_a64fx)
cntb vector_length
dup z0.b, valw
whilelo p0.b, vector_length, count
b.last 1f
whilelo p1.b, xzr, count
st1b z... | arm64 | gas-like | macro-heavy | bminor/glibc | sysdeps/aarch64/multiarch/memset_a64fx.S | LGPL-2.1 | 04e750e75b73957cf1c791535a3f4319534a52fc | github | libc | https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/aarch64/multiarch/memset_a64fx.S | 41 | 100 |
bminor/glibc:sysdeps/aarch64/multiarch/memset_a64fx.S:3 | st1b z0.b, p0, [dstend, -3, mul vl]
st1b z0.b, p0, [dstend, -2, mul vl]
st1b z0.b, p0, [dstend, -1, mul vl]
ret
.p2align 4
L(vl_agnostic): // VL Agnostic
mov dst, dstin
cmp count, L1_SIZE
b.hi L(L1_prefetch)
// count >= 8 * vector_length
L(unroll8):
sub count, count, tmp1
.p2align 4
// The 2 instructions a... | arm64 | gas-like | macro-heavy | bminor/glibc | sysdeps/aarch64/multiarch/memset_a64fx.S | LGPL-2.1 | 04e750e75b73957cf1c791535a3f4319534a52fc | github | libc | https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/aarch64/multiarch/memset_a64fx.S | 81 | 140 |
bminor/glibc:sysdeps/aarch64/multiarch/memset_a64fx.S:4 | 2: st1b z0.b, p0, [dstend, -2, mul vl]
st1b z0.b, p0, [dstend, -1, mul vl]
ret
// count >= L1_SIZE
.p2align 3
L(L1_prefetch):
cmp count, L2_SIZE
b.hs L(L2)
cmp vector_length, 64
b.ne L(unroll8)
1: st1b_unroll 0, 3
prfm pstl1keep, [dst, PF_DIST_L1]
st1b_unroll 4, 7
prfm pstl1keep, [dst, PF_DIST_L1 + CACHE_LI... | arm64 | gas-like | macro-heavy | bminor/glibc | sysdeps/aarch64/multiarch/memset_a64fx.S | LGPL-2.1 | 04e750e75b73957cf1c791535a3f4319534a52fc | github | libc | https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/aarch64/multiarch/memset_a64fx.S | 121 | 166 |
bminor/glibc:sysdeps/aarch64/multiarch/memset_a64fx.S:1 | /* Optimized memset for Fujitsu A64FX processor.
Copyright (C) 2021-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 ... | arm64 | gas-like | macro-heavy | bminor/glibc | sysdeps/aarch64/multiarch/memset_a64fx.S | LGPL-2.1 | b990b0aee2c20d45d53b1964b14b98a8d5e05fe6 | github | libc | https://github.com/bminor/glibc/blob/b990b0aee2c20d45d53b1964b14b98a8d5e05fe6/sysdeps/aarch64/multiarch/memset_a64fx.S | 1 | 60 |
bminor/glibc:sysdeps/aarch64/multiarch/memset_a64fx.S:1 | /* Optimized memset for Fujitsu A64FX processor.
Copyright (C) 2021-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 ... | arm64 | gas-like | macro-heavy | bminor/glibc | sysdeps/aarch64/multiarch/memset_a64fx.S | LGPL-2.1 | 2c421fc4302ecb729823ca442f9dfab95afba752 | github | libc | https://github.com/bminor/glibc/blob/2c421fc4302ecb729823ca442f9dfab95afba752/sysdeps/aarch64/multiarch/memset_a64fx.S | 1 | 60 |
bminor/glibc:sysdeps/aarch64/multiarch/memset_a64fx.S:2 | #define dst x3
#define dstend x4
#define tmp1 x5
#define tmp2 x6
.macro st1b_unroll first=0, last=7
st1b z0.b, p0, [dst, \first, mul vl]
.if \last-\first
st1b_unroll "(\first+1)", \last
.endif
.endm
ENTRY (__memset_a64fx)
cntb vector_length
dup z0.b, valw
whilelo p0.b, vector_length, count
b.las... | arm64 | gas-like | macro-heavy | bminor/glibc | sysdeps/aarch64/multiarch/memset_a64fx.S | LGPL-2.1 | 2c421fc4302ecb729823ca442f9dfab95afba752 | github | libc | https://github.com/bminor/glibc/blob/2c421fc4302ecb729823ca442f9dfab95afba752/sysdeps/aarch64/multiarch/memset_a64fx.S | 41 | 100 |
bminor/glibc:sysdeps/aarch64/multiarch/memset_a64fx.S:3 | st1b z0.b, p0, [dstin, 3, mul vl]
st1b z0.b, p0, [dstend, -4, mul vl]
st1b z0.b, p0, [dstend, -3, mul vl]
st1b z0.b, p0, [dstend, -2, mul vl]
st1b z0.b, p0, [dstend, -1, mul vl]
ret
.p2align 4
L(vl_agnostic): // VL Agnostic
mov dst, dstin
cmp count, L1_SIZE
b.hi L(L1_prefetch)
// count >= 8 * vector_length
... | arm64 | gas-like | macro-heavy | bminor/glibc | sysdeps/aarch64/multiarch/memset_a64fx.S | LGPL-2.1 | 2c421fc4302ecb729823ca442f9dfab95afba752 | github | libc | https://github.com/bminor/glibc/blob/2c421fc4302ecb729823ca442f9dfab95afba752/sysdeps/aarch64/multiarch/memset_a64fx.S | 81 | 140 |
bminor/glibc:sysdeps/aarch64/multiarch/memset_a64fx.S:4 | st1b z0.b, p0, [dstend, -4, mul vl]
st1b z0.b, p0, [dstend, -3, mul vl]
2: st1b z0.b, p0, [dstend, -2, mul vl]
st1b z0.b, p0, [dstend, -1, mul vl]
ret
// count >= L1_SIZE
.p2align 3
L(L1_prefetch):
cmp count, L2_SIZE
b.hs L(L2)
cmp vector_length, 64
b.ne L(unroll8)
1: st1b_unroll 0, 3
prfm pstl1keep, [dst, P... | arm64 | gas-like | macro-heavy | bminor/glibc | sysdeps/aarch64/multiarch/memset_a64fx.S | LGPL-2.1 | 2c421fc4302ecb729823ca442f9dfab95afba752 | github | libc | https://github.com/bminor/glibc/blob/2c421fc4302ecb729823ca442f9dfab95afba752/sysdeps/aarch64/multiarch/memset_a64fx.S | 121 | 170 |
bminor/glibc:sysdeps/aarch64/multiarch/memset_a64fx.S:5 | 1: add dst, dst, CACHE_LINE_SIZE
dc zva, dst
subs count, count, CACHE_LINE_SIZE
b.hi 1b
add count, count, CACHE_LINE_SIZE
b L(last)
END (__memset_a64fx)
#endif /* HAVE_AARCH64_SVE_ASM */ | arm64 | gas-like | macro-heavy | bminor/glibc | sysdeps/aarch64/multiarch/memset_a64fx.S | LGPL-2.1 | 2c421fc4302ecb729823ca442f9dfab95afba752 | github | libc | https://github.com/bminor/glibc/blob/2c421fc4302ecb729823ca442f9dfab95afba752/sysdeps/aarch64/multiarch/memset_a64fx.S | 161 | 170 |
bminor/glibc:sysdeps/aarch64/multiarch/memset_a64fx.S:1 | /* Optimized memset for Fujitsu A64FX processor.
Copyright (C) 2021-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 ... | arm64 | gas-like | macro-heavy | bminor/glibc | sysdeps/aarch64/multiarch/memset_a64fx.S | LGPL-2.1 | ce2f26a22e6b6f5c108d156afd9b43a452bb024c | github | libc | https://github.com/bminor/glibc/blob/ce2f26a22e6b6f5c108d156afd9b43a452bb024c/sysdeps/aarch64/multiarch/memset_a64fx.S | 1 | 60 |
bminor/glibc:sysdeps/aarch64/multiarch/memset_a64fx.S:2 | #define dst x3
#define dstend x4
#define tmp1 x5
#define tmp2 x6
.macro st1b_unroll first=0, last=7
st1b z0.b, p0, [dst, \first, mul vl]
.if \last-\first
st1b_unroll "(\first+1)", \last
.endif
.endm
#undef BTI_C
#define BTI_C
ENTRY (__memset_a64fx)
cntb vector_length
dup z0.b, valw
whilelo p0.b... | arm64 | gas-like | macro-heavy | bminor/glibc | sysdeps/aarch64/multiarch/memset_a64fx.S | LGPL-2.1 | ce2f26a22e6b6f5c108d156afd9b43a452bb024c | github | libc | https://github.com/bminor/glibc/blob/ce2f26a22e6b6f5c108d156afd9b43a452bb024c/sysdeps/aarch64/multiarch/memset_a64fx.S | 41 | 100 |
bminor/glibc:sysdeps/aarch64/multiarch/memset_a64fx.S:3 | b.hi L(vl_agnostic)
st1b z0.b, p0, [dstin, 0, mul vl]
st1b z0.b, p0, [dstin, 1, mul vl]
st1b z0.b, p0, [dstin, 2, mul vl]
st1b z0.b, p0, [dstin, 3, mul vl]
st1b z0.b, p0, [dstend, -4, mul vl]
st1b z0.b, p0, [dstend, -3, mul vl]
st1b z0.b, p0, [dstend, -2, mul vl]
st1b z0.b, p0, [dstend, -1, mul vl]
ret
.p2al... | arm64 | gas-like | macro-heavy | bminor/glibc | sysdeps/aarch64/multiarch/memset_a64fx.S | LGPL-2.1 | ce2f26a22e6b6f5c108d156afd9b43a452bb024c | github | libc | https://github.com/bminor/glibc/blob/ce2f26a22e6b6f5c108d156afd9b43a452bb024c/sysdeps/aarch64/multiarch/memset_a64fx.S | 81 | 140 |
bminor/glibc:sysdeps/aarch64/multiarch/memset_a64fx.S:4 | st1b z0.b, p0, [dstend, -8, mul vl]
st1b z0.b, p0, [dstend, -7, mul vl]
st1b z0.b, p0, [dstend, -6, mul vl]
5: st1b z0.b, p0, [dstend, -5, mul vl]
st1b z0.b, p0, [dstend, -4, mul vl]
st1b z0.b, p0, [dstend, -3, mul vl]
2: st1b z0.b, p0, [dstend, -2, mul vl]
st1b z0.b, p0, [dstend, -1, mul vl]
ret
// count >= L1... | arm64 | gas-like | macro-heavy | bminor/glibc | sysdeps/aarch64/multiarch/memset_a64fx.S | LGPL-2.1 | ce2f26a22e6b6f5c108d156afd9b43a452bb024c | github | libc | https://github.com/bminor/glibc/blob/ce2f26a22e6b6f5c108d156afd9b43a452bb024c/sysdeps/aarch64/multiarch/memset_a64fx.S | 121 | 174 |
bminor/glibc:sysdeps/aarch64/multiarch/memset_a64fx.S:5 | // clear cachelines using DC ZVA
sub count, count, CACHE_LINE_SIZE * 2
.p2align 4
1: add dst, dst, CACHE_LINE_SIZE
dc zva, dst
subs count, count, CACHE_LINE_SIZE
b.hi 1b
add count, count, CACHE_LINE_SIZE
b L(last)
END (__memset_a64fx)
#endif /* HAVE_AARCH64_SVE_ASM */ | arm64 | gas-like | macro-heavy | bminor/glibc | sysdeps/aarch64/multiarch/memset_a64fx.S | LGPL-2.1 | ce2f26a22e6b6f5c108d156afd9b43a452bb024c | github | libc | https://github.com/bminor/glibc/blob/ce2f26a22e6b6f5c108d156afd9b43a452bb024c/sysdeps/aarch64/multiarch/memset_a64fx.S | 161 | 174 |
bminor/glibc:sysdeps/aarch64/multiarch/memset_a64fx.S:1 | /* Optimized memset for Fujitsu A64FX processor.
Copyright (C) 2021-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 ... | arm64 | gas-like | macro-heavy | bminor/glibc | sysdeps/aarch64/multiarch/memset_a64fx.S | LGPL-2.1 | 2642002380aafb71a1d3b569b6d7ebeab3284816 | github | libc | https://github.com/bminor/glibc/blob/2642002380aafb71a1d3b569b6d7ebeab3284816/sysdeps/aarch64/multiarch/memset_a64fx.S | 1 | 60 |
bminor/glibc:sysdeps/aarch64/multiarch/memset_a64fx.S:2 | #define dst x3
#define dstend x4
#define tmp1 x5
#define tmp2 x6
.macro st1b_unroll first=0, last=7
st1b z0.b, p0, [dst, \first, mul vl]
.if \last-\first
st1b_unroll "(\first+1)", \last
.endif
.endm
#undef BTI_C
#define BTI_C
ENTRY (__memset_a64fx)
PTR_ARG (0)
SIZE_ARG (2)
cntb vector_length
d... | arm64 | gas-like | macro-heavy | bminor/glibc | sysdeps/aarch64/multiarch/memset_a64fx.S | LGPL-2.1 | 2642002380aafb71a1d3b569b6d7ebeab3284816 | github | libc | https://github.com/bminor/glibc/blob/2642002380aafb71a1d3b569b6d7ebeab3284816/sysdeps/aarch64/multiarch/memset_a64fx.S | 41 | 100 |
bminor/glibc:sysdeps/aarch64/multiarch/memset_a64fx.S:3 | 1: lsl tmp1, vector_length, 3
cmp count, tmp1
b.hi L(vl_agnostic)
st1b z0.b, p0, [dstin, 0, mul vl]
st1b z0.b, p0, [dstin, 1, mul vl]
st1b z0.b, p0, [dstin, 2, mul vl]
st1b z0.b, p0, [dstin, 3, mul vl]
st1b z0.b, p0, [dstend, -4, mul vl]
st1b z0.b, p0, [dstend, -3, mul vl]
st1b z0.b, p0, [dstend, -2, mul vl]
... | arm64 | gas-like | macro-heavy | bminor/glibc | sysdeps/aarch64/multiarch/memset_a64fx.S | LGPL-2.1 | 2642002380aafb71a1d3b569b6d7ebeab3284816 | github | libc | https://github.com/bminor/glibc/blob/2642002380aafb71a1d3b569b6d7ebeab3284816/sysdeps/aarch64/multiarch/memset_a64fx.S | 81 | 140 |
bminor/glibc:sysdeps/aarch64/multiarch/memset_a64fx.S:4 | cmp count, tmp2
b.ls 5f
st1b z0.b, p0, [dstend, -8, mul vl]
st1b z0.b, p0, [dstend, -7, mul vl]
st1b z0.b, p0, [dstend, -6, mul vl]
5: st1b z0.b, p0, [dstend, -5, mul vl]
st1b z0.b, p0, [dstend, -4, mul vl]
st1b z0.b, p0, [dstend, -3, mul vl]
2: st1b z0.b, p0, [dstend, -2, mul vl]
st1b z0.b, p0, [dstend, -1, mul... | arm64 | gas-like | macro-heavy | bminor/glibc | sysdeps/aarch64/multiarch/memset_a64fx.S | LGPL-2.1 | 2642002380aafb71a1d3b569b6d7ebeab3284816 | github | libc | https://github.com/bminor/glibc/blob/2642002380aafb71a1d3b569b6d7ebeab3284816/sysdeps/aarch64/multiarch/memset_a64fx.S | 121 | 176 |
bminor/glibc:sysdeps/aarch64/multiarch/memset_a64fx.S:5 | sub dst, dst, tmp2
add count, count, tmp2
// clear cachelines using DC ZVA
sub count, count, CACHE_LINE_SIZE * 2
.p2align 4
1: add dst, dst, CACHE_LINE_SIZE
dc zva, dst
subs count, count, CACHE_LINE_SIZE
b.hi 1b
add count, count, CACHE_LINE_SIZE
b L(last)
END (__memset_a64fx)
#endif /* HAVE_AARCH64_SVE_ASM ... | arm64 | gas-like | macro-heavy | bminor/glibc | sysdeps/aarch64/multiarch/memset_a64fx.S | LGPL-2.1 | 2642002380aafb71a1d3b569b6d7ebeab3284816 | github | libc | https://github.com/bminor/glibc/blob/2642002380aafb71a1d3b569b6d7ebeab3284816/sysdeps/aarch64/multiarch/memset_a64fx.S | 161 | 176 |
bminor/glibc:sysdeps/aarch64/multiarch/memset_a64fx.S:1 | /* Optimized memset for Fujitsu A64FX processor.
Copyright (C) 2021-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 ... | arm64 | gas-like | macro-heavy | bminor/glibc | sysdeps/aarch64/multiarch/memset_a64fx.S | LGPL-2.1 | 8ecb477ea16a387a44ace5bf59d39a7e270b238b | github | libc | https://github.com/bminor/glibc/blob/8ecb477ea16a387a44ace5bf59d39a7e270b238b/sysdeps/aarch64/multiarch/memset_a64fx.S | 1 | 60 |
bminor/glibc:sysdeps/aarch64/multiarch/memset_a64fx.S:1 | /* Optimized memset for Fujitsu A64FX processor.
Copyright (C) 2021-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 ... | arm64 | gas-like | macro-heavy | bminor/glibc | sysdeps/aarch64/multiarch/memset_a64fx.S | LGPL-2.1 | dff8da6b3e89b986bb7f6b1ec18cf65d5972e307 | github | libc | https://github.com/bminor/glibc/blob/dff8da6b3e89b986bb7f6b1ec18cf65d5972e307/sysdeps/aarch64/multiarch/memset_a64fx.S | 1 | 60 |
bminor/glibc:sysdeps/aarch64/multiarch/memset_a64fx.S:2 | .if \last-\first
st1b_unroll "(\first+1)", \last
.endif
.endm
#undef BTI_C
#define BTI_C
ENTRY (__memset_a64fx)
PTR_ARG (0)
SIZE_ARG (2)
cntb vector_length
dup z0.b, valw
whilelo p0.b, vector_length, count
b.last 1f
whilelo p1.b, xzr, count
st1b z0.b, p1, [dstin, 0, mul vl]
st1b z0.b, p0, [dstin, 1, mul... | arm64 | gas-like | macro-heavy | bminor/glibc | sysdeps/aarch64/multiarch/memset_a64fx.S | LGPL-2.1 | dff8da6b3e89b986bb7f6b1ec18cf65d5972e307 | github | libc | https://github.com/bminor/glibc/blob/dff8da6b3e89b986bb7f6b1ec18cf65d5972e307/sysdeps/aarch64/multiarch/memset_a64fx.S | 41 | 100 |
bminor/glibc:sysdeps/aarch64/multiarch/memset_a64fx.S:3 | st1b z0.b, p0, [dstend, -4, mul vl]
st1b z0.b, p0, [dstend, -3, mul vl]
st1b z0.b, p0, [dstend, -2, mul vl]
st1b z0.b, p0, [dstend, -1, mul vl]
ret
.p2align 4
L(vl_agnostic): // VL Agnostic
mov dst, dstin
cmp count, L1_SIZE
b.hi L(L1_prefetch)
// count >= 8 * vector_length
L(unroll8):
sub count, count, tmp1... | arm64 | gas-like | macro-heavy | bminor/glibc | sysdeps/aarch64/multiarch/memset_a64fx.S | LGPL-2.1 | dff8da6b3e89b986bb7f6b1ec18cf65d5972e307 | github | libc | https://github.com/bminor/glibc/blob/dff8da6b3e89b986bb7f6b1ec18cf65d5972e307/sysdeps/aarch64/multiarch/memset_a64fx.S | 81 | 140 |
bminor/glibc:sysdeps/aarch64/multiarch/memset_a64fx.S:4 | st1b z0.b, p0, [dstend, -3, mul vl]
2: st1b z0.b, p0, [dstend, -2, mul vl]
st1b z0.b, p0, [dstend, -1, mul vl]
ret
// count >= L1_SIZE
.p2align 3
L(L1_prefetch):
cmp count, L2_SIZE
b.hs L(L2)
cmp vector_length, 64
b.ne L(unroll8)
1: st1b_unroll 0, 3
prfm pstl1keep, [dst, PF_DIST_L1]
st1b_unroll 4, 7
prfm ps... | arm64 | gas-like | macro-heavy | bminor/glibc | sysdeps/aarch64/multiarch/memset_a64fx.S | LGPL-2.1 | dff8da6b3e89b986bb7f6b1ec18cf65d5972e307 | github | libc | https://github.com/bminor/glibc/blob/dff8da6b3e89b986bb7f6b1ec18cf65d5972e307/sysdeps/aarch64/multiarch/memset_a64fx.S | 121 | 169 |
bminor/glibc:sysdeps/aarch64/multiarch/memset_a64fx.S:1 | /* Optimized memset for Fujitsu A64FX processor.
Copyright (C) 2021-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 ... | arm64 | gas-like | macro-heavy | bminor/glibc | sysdeps/aarch64/multiarch/memset_a64fx.S | LGPL-2.1 | 9fd3409842b3e2d31cff5dbd6f96066c430f0aa2 | github | libc | https://github.com/bminor/glibc/blob/9fd3409842b3e2d31cff5dbd6f96066c430f0aa2/sysdeps/aarch64/multiarch/memset_a64fx.S | 1 | 60 |
bminor/glibc:sysdeps/aarch64/multiarch/memset_a64fx.S:1 | /* Optimized memset for Fujitsu A64FX processor.
Copyright (C) 2021-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 ... | arm64 | gas-like | macro-heavy | bminor/glibc | sysdeps/aarch64/multiarch/memset_a64fx.S | LGPL-2.1 | 6d7e8eda9b85b08f207a6dc6f187e94e4817270f | github | libc | https://github.com/bminor/glibc/blob/6d7e8eda9b85b08f207a6dc6f187e94e4817270f/sysdeps/aarch64/multiarch/memset_a64fx.S | 1 | 60 |
bminor/glibc:sysdeps/aarch64/multiarch/memset_a64fx.S:2 | .macro st1b_unroll first=0, last=7
st1b z0.b, p0, [dst, \first, mul vl]
.if \last-\first
st1b_unroll "(\first+1)", \last
.endif
.endm
#undef BTI_C
#define BTI_C
ENTRY (MEMSET)
PTR_ARG (0)
SIZE_ARG (2)
cntb vector_length
dup z0.b, valw
whilelo p0.b, vector_length, count
b.last 1f
whilelo p1.b, xzr, count... | arm64 | gas-like | macro-heavy | bminor/glibc | sysdeps/aarch64/multiarch/memset_a64fx.S | LGPL-2.1 | 6d7e8eda9b85b08f207a6dc6f187e94e4817270f | github | libc | https://github.com/bminor/glibc/blob/6d7e8eda9b85b08f207a6dc6f187e94e4817270f/sysdeps/aarch64/multiarch/memset_a64fx.S | 41 | 100 |
bminor/glibc:sysdeps/aarch64/multiarch/memset_a64fx.S:3 | st1b z0.b, p0, [dstin, 2, mul vl]
st1b z0.b, p0, [dstin, 3, mul vl]
st1b z0.b, p0, [dstend, -4, mul vl]
st1b z0.b, p0, [dstend, -3, mul vl]
st1b z0.b, p0, [dstend, -2, mul vl]
st1b z0.b, p0, [dstend, -1, mul vl]
ret
.p2align 4
L(vl_agnostic): // VL Agnostic
mov dst, dstin
cmp count, L1_SIZE
b.hi L(L1_prefetc... | arm64 | gas-like | macro-heavy | bminor/glibc | sysdeps/aarch64/multiarch/memset_a64fx.S | LGPL-2.1 | 6d7e8eda9b85b08f207a6dc6f187e94e4817270f | github | libc | https://github.com/bminor/glibc/blob/6d7e8eda9b85b08f207a6dc6f187e94e4817270f/sysdeps/aarch64/multiarch/memset_a64fx.S | 81 | 140 |
bminor/glibc:sysdeps/aarch64/multiarch/memset_a64fx.S:4 | 5: st1b z0.b, p0, [dstend, -5, mul vl]
st1b z0.b, p0, [dstend, -4, mul vl]
st1b z0.b, p0, [dstend, -3, mul vl]
2: st1b z0.b, p0, [dstend, -2, mul vl]
st1b z0.b, p0, [dstend, -1, mul vl]
ret
// count >= L1_SIZE
.p2align 3
L(L1_prefetch):
cmp count, L2_SIZE
b.hs L(L2)
cmp vector_length, 64
b.ne L(unroll8)
1: s... | arm64 | gas-like | macro-heavy | bminor/glibc | sysdeps/aarch64/multiarch/memset_a64fx.S | LGPL-2.1 | 6d7e8eda9b85b08f207a6dc6f187e94e4817270f | github | libc | https://github.com/bminor/glibc/blob/6d7e8eda9b85b08f207a6dc6f187e94e4817270f/sysdeps/aarch64/multiarch/memset_a64fx.S | 121 | 173 |
bminor/glibc:sysdeps/aarch64/multiarch/memset_a64fx.S:5 | .p2align 4
1: add dst, dst, CACHE_LINE_SIZE
dc zva, dst
subs count, count, CACHE_LINE_SIZE
b.hi 1b
add count, count, CACHE_LINE_SIZE
b L(last)
END (MEMSET)
libc_hidden_builtin_def (MEMSET)
#endif /* IS_IN (libc) */
#endif /* HAVE_AARCH64_SVE_ASM */ | arm64 | gas-like | macro-heavy | bminor/glibc | sysdeps/aarch64/multiarch/memset_a64fx.S | LGPL-2.1 | 6d7e8eda9b85b08f207a6dc6f187e94e4817270f | github | libc | https://github.com/bminor/glibc/blob/6d7e8eda9b85b08f207a6dc6f187e94e4817270f/sysdeps/aarch64/multiarch/memset_a64fx.S | 161 | 173 |
bminor/glibc:sysdeps/aarch64/multiarch/memset_a64fx.S:1 | /* Optimized memset for Fujitsu A64FX processor.
Copyright (C) 2021-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 ... | arm64 | gas-like | macro-heavy | bminor/glibc | sysdeps/aarch64/multiarch/memset_a64fx.S | LGPL-2.1 | 581c785bf31bc74430320c7856bbfa3875d025fe | github | libc | https://github.com/bminor/glibc/blob/581c785bf31bc74430320c7856bbfa3875d025fe/sysdeps/aarch64/multiarch/memset_a64fx.S | 1 | 60 |
bminor/glibc:sysdeps/aarch64/multiarch/memset_a64fx.S:1 | /* Optimized memset for Fujitsu A64FX processor.
Copyright (C) 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 Softw... | arm64 | gas-like | macro-heavy | bminor/glibc | sysdeps/aarch64/multiarch/memset_a64fx.S | LGPL-2.1 | 1d9f99ce1b3788d1897cb53a76d57e973111b8fe | github | libc | https://github.com/bminor/glibc/blob/1d9f99ce1b3788d1897cb53a76d57e973111b8fe/sysdeps/aarch64/multiarch/memset_a64fx.S | 1 | 60 |
bminor/glibc:sysdeps/aarch64/multiarch/memset_a64fx.S:2 | .macro st1b_unroll first=0, last=7
st1b z0.b, p0, [dst, \first, mul vl]
.if \last-\first
st1b_unroll "(\first+1)", \last
.endif
.endm
#undef BTI_C
#define BTI_C
ENTRY (MEMSET)
PTR_ARG (0)
SIZE_ARG (2)
cntb vector_length
dup z0.b, valw
whilelo p0.b, vector_length, count
b.last 1f
whilelo p1.b, xzr, count... | arm64 | gas-like | macro-heavy | bminor/glibc | sysdeps/aarch64/multiarch/memset_a64fx.S | LGPL-2.1 | f873adf3df443f8d302677f963adcc3c22187e68 | github | libc | https://github.com/bminor/glibc/blob/f873adf3df443f8d302677f963adcc3c22187e68/sysdeps/aarch64/multiarch/memset_a64fx.S | 41 | 100 |
bminor/glibc:sysdeps/aarch64/multiarch/memset_a64fx.S:3 | st1b z0.b, p0, [dstin, 2, mul vl]
st1b z0.b, p0, [dstin, 3, mul vl]
st1b z0.b, p0, [dstend, -4, mul vl]
st1b z0.b, p0, [dstend, -3, mul vl]
st1b z0.b, p0, [dstend, -2, mul vl]
st1b z0.b, p0, [dstend, -1, mul vl]
ret
.p2align 4
L(vl_agnostic): // VL Agnostic
mov dst, dstin
cmp count, L1_SIZE
b.hi L(L1_prefetc... | arm64 | gas-like | macro-heavy | bminor/glibc | sysdeps/aarch64/multiarch/memset_a64fx.S | LGPL-2.1 | f873adf3df443f8d302677f963adcc3c22187e68 | github | libc | https://github.com/bminor/glibc/blob/f873adf3df443f8d302677f963adcc3c22187e68/sysdeps/aarch64/multiarch/memset_a64fx.S | 81 | 140 |
bminor/glibc:sysdeps/aarch64/multiarch/memset_a64fx.S:4 | // count >= L1_SIZE
.p2align 3
L(L1_prefetch):
cmp count, L2_SIZE
b.hs L(L2)
cmp vector_length, 64
b.ne L(unroll8)
1: st1b_unroll 0, 3
prfm pstl1keep, [dst, PF_DIST_L1]
st1b_unroll 4, 7
prfm pstl1keep, [dst, PF_DIST_L1 + CACHE_LINE_SIZE]
add dst, dst, CACHE_LINE_SIZE * 2
sub count, count, CACHE_LINE_SIZE * 2
... | arm64 | gas-like | macro-heavy | bminor/glibc | sysdeps/aarch64/multiarch/memset_a64fx.S | LGPL-2.1 | f873adf3df443f8d302677f963adcc3c22187e68 | github | libc | https://github.com/bminor/glibc/blob/f873adf3df443f8d302677f963adcc3c22187e68/sysdeps/aarch64/multiarch/memset_a64fx.S | 121 | 166 |
bminor/glibc:sysdeps/aarch64/multiarch/memset_a64fx.S:1 | /* Optimized memset for Fujitsu A64FX processor.
Copyright (C) 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 Softw... | arm64 | gas-like | macro-heavy | bminor/glibc | sysdeps/aarch64/multiarch/memset_a64fx.S | LGPL-2.1 | e69d9981f858a38e19304e6ff5ebdf89f2cb0ba0 | github | libc | https://github.com/bminor/glibc/blob/e69d9981f858a38e19304e6ff5ebdf89f2cb0ba0/sysdeps/aarch64/multiarch/memset_a64fx.S | 1 | 60 |
bminor/glibc:sysdeps/aarch64/multiarch/memset_a64fx.S:2 | .macro st1b_unroll first=0, last=7
st1b z0.b, p0, [dst, \first, mul vl]
.if \last-\first
st1b_unroll "(\first+1)", \last
.endif
.endm
#undef BTI_C
#define BTI_C
ENTRY (MEMSET)
PTR_ARG (0)
SIZE_ARG (2)
cntb vector_length
dup z0.b, valw
whilelo p0.b, vector_length, count
b.last 1f
whilelo p1.b, xzr, count... | arm64 | gas-like | macro-heavy | bminor/glibc | sysdeps/aarch64/multiarch/memset_a64fx.S | LGPL-2.1 | e69d9981f858a38e19304e6ff5ebdf89f2cb0ba0 | github | libc | https://github.com/bminor/glibc/blob/e69d9981f858a38e19304e6ff5ebdf89f2cb0ba0/sysdeps/aarch64/multiarch/memset_a64fx.S | 41 | 100 |
bminor/glibc:sysdeps/aarch64/multiarch/memset_a64fx.S:3 | st1b z0.b, p0, [dstin, 1, mul vl]
st1b z0.b, p0, [dstin, 2, mul vl]
st1b z0.b, p0, [dstin, 3, mul vl]
st1b z0.b, p0, [dstend, -4, mul vl]
st1b z0.b, p0, [dstend, -3, mul vl]
st1b z0.b, p0, [dstend, -2, mul vl]
st1b z0.b, p0, [dstend, -1, mul vl]
ret
.p2align 4
L(vl_agnostic): // VL Agnostic
mov rest, count
m... | arm64 | gas-like | macro-heavy | bminor/glibc | sysdeps/aarch64/multiarch/memset_a64fx.S | LGPL-2.1 | e69d9981f858a38e19304e6ff5ebdf89f2cb0ba0 | github | libc | https://github.com/bminor/glibc/blob/e69d9981f858a38e19304e6ff5ebdf89f2cb0ba0/sysdeps/aarch64/multiarch/memset_a64fx.S | 81 | 140 |
bminor/glibc:sysdeps/aarch64/multiarch/memset_a64fx.S:4 | b.ls 5f
st1b z0.b, p0, [dstend, -8, mul vl]
st1b z0.b, p0, [dstend, -7, mul vl]
st1b z0.b, p0, [dstend, -6, mul vl]
5: st1b z0.b, p0, [dstend, -5, mul vl]
st1b z0.b, p0, [dstend, -4, mul vl]
st1b z0.b, p0, [dstend, -3, mul vl]
2: st1b z0.b, p0, [dstend, -2, mul vl]
st1b z0.b, p0, [dstend, -1, mul vl]
ret
L(L1_p... | arm64 | gas-like | macro-heavy | bminor/glibc | sysdeps/aarch64/multiarch/memset_a64fx.S | LGPL-2.1 | e69d9981f858a38e19304e6ff5ebdf89f2cb0ba0 | github | libc | https://github.com/bminor/glibc/blob/e69d9981f858a38e19304e6ff5ebdf89f2cb0ba0/sysdeps/aarch64/multiarch/memset_a64fx.S | 121 | 173 |
bminor/glibc:sysdeps/aarch64/multiarch/memset_a64fx.S:3 | st1b z0.b, p0, [dstin, 1, mul vl]
st1b z0.b, p0, [dstin, 2, mul vl]
st1b z0.b, p0, [dstin, 3, mul vl]
st1b z0.b, p0, [dstend, -4, mul vl]
st1b z0.b, p0, [dstend, -3, mul vl]
st1b z0.b, p0, [dstend, -2, mul vl]
st1b z0.b, p0, [dstend, -1, mul vl]
ret
.p2align 4
L(vl_agnostic): // VL Agnostic
mov rest, count
m... | arm64 | gas-like | macro-heavy | bminor/glibc | sysdeps/aarch64/multiarch/memset_a64fx.S | LGPL-2.1 | 186092c6ba8825598ffdbf15dbf0823c771f560d | github | libc | https://github.com/bminor/glibc/blob/186092c6ba8825598ffdbf15dbf0823c771f560d/sysdeps/aarch64/multiarch/memset_a64fx.S | 81 | 140 |
bminor/glibc:sysdeps/aarch64/multiarch/memset_a64fx.S:4 | L(unroll8):
lsl tmp1, vector_length, 3
.p2align 3
1: cmp rest, tmp1
b.cc L(last)
st1b_unroll
add dst, dst, tmp1
sub rest, rest, tmp1
b 1b
L(last):
cmp count, vector_length, lsl 1
b.ls 2f
add tmp2, vector_length, vector_length, lsl 2
cmp count, tmp2
b.ls 5f
st1b z0.b, p0, [dstend, -8, mul vl]
st1b z0.b, p... | arm64 | gas-like | macro-heavy | bminor/glibc | sysdeps/aarch64/multiarch/memset_a64fx.S | LGPL-2.1 | 186092c6ba8825598ffdbf15dbf0823c771f560d | github | libc | https://github.com/bminor/glibc/blob/186092c6ba8825598ffdbf15dbf0823c771f560d/sysdeps/aarch64/multiarch/memset_a64fx.S | 121 | 180 |
bminor/glibc:sysdeps/aarch64/multiarch/memset_a64fx.S:5 | // count >= L2_SIZE
.p2align 3
L(L2):
tst valw, 255
b.ne L(unroll8)
// align dst to CACHE_LINE_SIZE byte boundary
and tmp2, dst, CACHE_LINE_SIZE - 1
st1b z0.b, p0, [dst, 0, mul vl]
st1b z0.b, p0, [dst, 1, mul vl]
st1b z0.b, p0, [dst, 2, mul vl]
st1b z0.b, p0, [dst, 3, mul vl]
sub dst, dst, tmp2
add co... | arm64 | gas-like | macro-heavy | bminor/glibc | sysdeps/aarch64/multiarch/memset_a64fx.S | LGPL-2.1 | 186092c6ba8825598ffdbf15dbf0823c771f560d | github | libc | https://github.com/bminor/glibc/blob/186092c6ba8825598ffdbf15dbf0823c771f560d/sysdeps/aarch64/multiarch/memset_a64fx.S | 161 | 189 |
bminor/glibc:sysdeps/aarch64/multiarch/memset_a64fx.S:3 | st1b z0.b, p0, [dstin, 1, mul vl]
st1b z0.b, p0, [dstin, 2, mul vl]
st1b z0.b, p0, [dstin, 3, mul vl]
st1b z0.b, p0, [dstend, -4, mul vl]
st1b z0.b, p0, [dstend, -3, mul vl]
st1b z0.b, p0, [dstend, -2, mul vl]
st1b z0.b, p0, [dstend, -1, mul vl]
ret
.p2align 4
L(vl_agnostic): // VL Agnostic
mov rest, count
m... | arm64 | gas-like | macro-heavy | bminor/glibc | sysdeps/aarch64/multiarch/memset_a64fx.S | LGPL-2.1 | 9bc2ed8f46d80859a5596789cc9e8cc2de84b0e7 | github | libc | https://github.com/bminor/glibc/blob/9bc2ed8f46d80859a5596789cc9e8cc2de84b0e7/sysdeps/aarch64/multiarch/memset_a64fx.S | 81 | 140 |
bminor/glibc:sysdeps/aarch64/multiarch/memset_a64fx.S:4 | L(unroll8):
lsl tmp1, vector_length, 3
.p2align 3
1: cmp rest, tmp1
b.cc L(last)
st1b_unroll
add dst, dst, tmp1
sub rest, rest, tmp1
b 1b
L(last):
whilelo p0.b, xzr, rest
whilelo p1.b, vector_length, rest
b.last 1f
st1b z0.b, p0, [dst, #0, mul vl]
st1b z0.b, p1, [dst, #1, mul vl]
ret
1: lsl tmp1, vector_l... | arm64 | gas-like | macro-heavy | bminor/glibc | sysdeps/aarch64/multiarch/memset_a64fx.S | LGPL-2.1 | 9bc2ed8f46d80859a5596789cc9e8cc2de84b0e7 | github | libc | https://github.com/bminor/glibc/blob/9bc2ed8f46d80859a5596789cc9e8cc2de84b0e7/sysdeps/aarch64/multiarch/memset_a64fx.S | 121 | 180 |
bminor/glibc:sysdeps/aarch64/multiarch/memset_a64fx.S:5 | st1b z0.b, p4, [dst, #4, mul vl]
st1b z0.b, p5, [dst, #5, mul vl]
st1b z0.b, p6, [dst, #6, mul vl]
st1b z0.b, p7, [dst, #7, mul vl]
ret
L(L1_prefetch): // if rest >= L1_SIZE
.p2align 3
1: st1b_unroll 0, 3
prfm pstl1keep, [dst, PF_DIST_L1]
st1b_unroll 4, 7
prfm pstl1keep, [dst, PF_DIST_L1 + CACHE_LINE_SIZE]
ad... | arm64 | gas-like | macro-heavy | bminor/glibc | sysdeps/aarch64/multiarch/memset_a64fx.S | LGPL-2.1 | 9bc2ed8f46d80859a5596789cc9e8cc2de84b0e7 | github | libc | https://github.com/bminor/glibc/blob/9bc2ed8f46d80859a5596789cc9e8cc2de84b0e7/sysdeps/aarch64/multiarch/memset_a64fx.S | 161 | 209 |
bminor/glibc:sysdeps/aarch64/multiarch/memset_a64fx.S:1 | /* Optimized memset for Fujitsu A64FX processor.
Copyright (C) 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 Softw... | arm64 | gas-like | macro-heavy | bminor/glibc | sysdeps/aarch64/multiarch/memset_a64fx.S | LGPL-2.1 | 07b427296b8d59f439144029d9a948f6c1ce0a31 | github | libc | https://github.com/bminor/glibc/blob/07b427296b8d59f439144029d9a948f6c1ce0a31/sysdeps/aarch64/multiarch/memset_a64fx.S | 1 | 60 |
bminor/glibc:sysdeps/aarch64/multiarch/memset_a64fx.S:2 | # define MEMSET __memset_a64fx
.arch armv8.2-a+sve
.macro dc_zva times
dc zva, tmp1
add tmp1, tmp1, CACHE_LINE_SIZE
.if \times-1
dc_zva "(\times-1)"
.endif
.endm
.macro st1b_unroll first=0, last=7
st1b z0.b, p0, [dst, \first, mul vl]
.if \last-\first
st1b_unroll "(\first+1)", \last
.endif
.endm
#und... | arm64 | gas-like | macro-heavy | bminor/glibc | sysdeps/aarch64/multiarch/memset_a64fx.S | LGPL-2.1 | 07b427296b8d59f439144029d9a948f6c1ce0a31 | github | libc | https://github.com/bminor/glibc/blob/07b427296b8d59f439144029d9a948f6c1ce0a31/sysdeps/aarch64/multiarch/memset_a64fx.S | 41 | 100 |
bminor/glibc:sysdeps/aarch64/multiarch/memset_a64fx.S:3 | st1b z0.b, p0, [dstin, 0, mul vl]
st1b z0.b, p0, [dstin, 1, mul vl]
st1b z0.b, p0, [dstend, -2, mul vl]
st1b z0.b, p0, [dstend, -1, mul vl]
ret
// count > vector_length * 4
1: lsl tmp1, vector_length, 3
cmp count, tmp1
b.hi L(vl_agnostic)
st1b z0.b, p0, [dstin, 0, mul vl]
st1b z0.b, p0, [dstin, 1, mul vl]
st... | arm64 | gas-like | macro-heavy | bminor/glibc | sysdeps/aarch64/multiarch/memset_a64fx.S | LGPL-2.1 | 07b427296b8d59f439144029d9a948f6c1ce0a31 | github | libc | https://github.com/bminor/glibc/blob/07b427296b8d59f439144029d9a948f6c1ce0a31/sysdeps/aarch64/multiarch/memset_a64fx.S | 81 | 140 |
bminor/glibc:sysdeps/aarch64/multiarch/memset_a64fx.S:4 | b.cc L(unroll8)
st1b_unroll
add dst, dst, tmp1
st1b_unroll
add dst, dst, tmp1
st1b_unroll
add dst, dst, tmp1
st1b_unroll
add dst, dst, tmp1
sub rest, rest, tmp2
b 1b
L(unroll8):
lsl tmp1, vector_length, 3
.p2align 3
1: cmp rest, tmp1
b.cc L(last)
st1b_unroll
add dst, dst, tmp1
sub rest, rest, tmp1
b 1... | arm64 | gas-like | macro-heavy | bminor/glibc | sysdeps/aarch64/multiarch/memset_a64fx.S | LGPL-2.1 | 07b427296b8d59f439144029d9a948f6c1ce0a31 | github | libc | https://github.com/bminor/glibc/blob/07b427296b8d59f439144029d9a948f6c1ce0a31/sysdeps/aarch64/multiarch/memset_a64fx.S | 121 | 180 |
bminor/glibc:sysdeps/aarch64/multiarch/memset_a64fx.S:5 | whilelo p4.b, tmp1, rest
incb tmp1
whilelo p5.b, tmp1, rest
incb tmp1
whilelo p6.b, tmp1, rest
incb tmp1
whilelo p7.b, tmp1, rest
st1b z0.b, p0, [dst, #0, mul vl]
st1b z0.b, p1, [dst, #1, mul vl]
st1b z0.b, p2, [dst, #2, mul vl]
st1b z0.b, p3, [dst, #3, mul vl]
st1b z0.b, p4, [dst, #4, mul vl]
st1b z0.b, p5... | arm64 | gas-like | macro-heavy | bminor/glibc | sysdeps/aarch64/multiarch/memset_a64fx.S | LGPL-2.1 | 07b427296b8d59f439144029d9a948f6c1ce0a31 | github | libc | https://github.com/bminor/glibc/blob/07b427296b8d59f439144029d9a948f6c1ce0a31/sysdeps/aarch64/multiarch/memset_a64fx.S | 161 | 220 |
bminor/glibc:sysdeps/aarch64/multiarch/memset_a64fx.S:6 | add dst, dst, vl_remainder
sub rest, rest, vl_remainder
// align dstin address at CACHE_LINE_SIZE byte boundary
1: mov tmp1, CACHE_LINE_SIZE
ands tmp2, dst, CACHE_LINE_SIZE - 1
// if cl_remainder == 0
b.eq L(L2_dc_zva)
sub cl_remainder, tmp1, tmp2
// process remainder until the first CACHE_LINE_SIZE boundary
mo... | arm64 | gas-like | macro-heavy | bminor/glibc | sysdeps/aarch64/multiarch/memset_a64fx.S | LGPL-2.1 | 07b427296b8d59f439144029d9a948f6c1ce0a31 | github | libc | https://github.com/bminor/glibc/blob/07b427296b8d59f439144029d9a948f6c1ce0a31/sysdeps/aarch64/multiarch/memset_a64fx.S | 201 | 244 |
bminor/glibc:sysdeps/aarch64/multiarch/memset_a64fx.S:1 | /* Optimized memset for Fujitsu A64FX processor.
Copyright (C) 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 Softw... | arm64 | gas-like | macro-heavy | bminor/glibc | sysdeps/aarch64/multiarch/memset_a64fx.S | LGPL-2.1 | 4f26956d5ba394eb3ade6c1c20b5c16864a00766 | github | libc | https://github.com/bminor/glibc/blob/4f26956d5ba394eb3ade6c1c20b5c16864a00766/sysdeps/aarch64/multiarch/memset_a64fx.S | 1 | 60 |
bminor/glibc:sysdeps/aarch64/multiarch/memset_a64fx.S:2 | # define MEMSET __memset_a64fx
.arch armv8.2-a+sve
.macro dc_zva times
dc zva, tmp1
add tmp1, tmp1, CACHE_LINE_SIZE
.if \times-1
dc_zva "(\times-1)"
.endif
.endm
.macro st1b_unroll first=0, last=7
st1b z0.b, p0, [dst, #\first, mul vl]
.if \last-\first
st1b_unroll "(\first+1)", \last
.endif
.endm
.ma... | arm64 | gas-like | macro-heavy | bminor/glibc | sysdeps/aarch64/multiarch/memset_a64fx.S | LGPL-2.1 | 4f26956d5ba394eb3ade6c1c20b5c16864a00766 | github | libc | https://github.com/bminor/glibc/blob/4f26956d5ba394eb3ade6c1c20b5c16864a00766/sysdeps/aarch64/multiarch/memset_a64fx.S | 41 | 100 |
bminor/glibc:sysdeps/aarch64/multiarch/memset_a64fx.S:3 | ret
1: // if rest <= vector_length * 8
lsl tmp1, vector_length, 2 // vector_length * 4
whilelo p4.b, tmp1, count
incb tmp1
whilelo p5.b, tmp1, count
b.last 1f
st1b z0.b, p0, [dstin, #0, mul vl]
st1b z0.b, p1, [dstin, #1, mul vl]
st1b z0.b, p2, [dstin, #2, mul vl]
st1b z0.b, p3, [dstin, #3, mul vl]
st1b z0.b, ... | arm64 | gas-like | macro-heavy | bminor/glibc | sysdeps/aarch64/multiarch/memset_a64fx.S | LGPL-2.1 | 4f26956d5ba394eb3ade6c1c20b5c16864a00766 | github | libc | https://github.com/bminor/glibc/blob/4f26956d5ba394eb3ade6c1c20b5c16864a00766/sysdeps/aarch64/multiarch/memset_a64fx.S | 81 | 140 |
bminor/glibc:sysdeps/aarch64/multiarch/memset_a64fx.S:4 | // shortcut for less than vector_length * 8
// gives a free ptrue to p0.b for n >= vector_length
shortcut_for_small_size L(vl_agnostic)
// end of shortcut
L(vl_agnostic): // VL Agnostic
mov rest, count
mov dst, dstin
add dstend, dstin, count
// if rest >= L2_SIZE && vector_length == 64 then L(L2)
mov tmp1, 64
... | arm64 | gas-like | macro-heavy | bminor/glibc | sysdeps/aarch64/multiarch/memset_a64fx.S | LGPL-2.1 | 4f26956d5ba394eb3ade6c1c20b5c16864a00766 | github | libc | https://github.com/bminor/glibc/blob/4f26956d5ba394eb3ade6c1c20b5c16864a00766/sysdeps/aarch64/multiarch/memset_a64fx.S | 121 | 180 |
bminor/glibc:sysdeps/aarch64/multiarch/memset_a64fx.S:5 | b.cc L(last)
st1b_unroll
add dst, dst, tmp1
sub rest, rest, tmp1
b 1b
L(last):
whilelo p0.b, xzr, rest
whilelo p1.b, vector_length, rest
b.last 1f
st1b z0.b, p0, [dst, #0, mul vl]
st1b z0.b, p1, [dst, #1, mul vl]
ret
1: lsl tmp1, vector_length, 1 // vector_length * 2
whilelo p2.b, tmp1, rest
incb tmp1
whi... | arm64 | gas-like | macro-heavy | bminor/glibc | sysdeps/aarch64/multiarch/memset_a64fx.S | LGPL-2.1 | 4f26956d5ba394eb3ade6c1c20b5c16864a00766 | github | libc | https://github.com/bminor/glibc/blob/4f26956d5ba394eb3ade6c1c20b5c16864a00766/sysdeps/aarch64/multiarch/memset_a64fx.S | 161 | 220 |
bminor/glibc:sysdeps/aarch64/multiarch/memset_a64fx.S:6 | L(L1_prefetch): // if rest >= L1_SIZE
.p2align 3
1: st1b_unroll 0, 3
prfm pstl1keep, [dst, PF_DIST_L1]
st1b_unroll 4, 7
prfm pstl1keep, [dst, PF_DIST_L1 + CACHE_LINE_SIZE]
add dst, dst, CACHE_LINE_SIZE * 2
sub rest, rest, CACHE_LINE_SIZE * 2
cmp rest, L1_SIZE
b.ge 1b
cbnz rest, L(unroll32)
ret
L(L2):
// ali... | arm64 | gas-like | macro-heavy | bminor/glibc | sysdeps/aarch64/multiarch/memset_a64fx.S | LGPL-2.1 | 4f26956d5ba394eb3ade6c1c20b5c16864a00766 | github | libc | https://github.com/bminor/glibc/blob/4f26956d5ba394eb3ade6c1c20b5c16864a00766/sysdeps/aarch64/multiarch/memset_a64fx.S | 201 | 260 |
bminor/glibc:sysdeps/aarch64/multiarch/memset_a64fx.S:7 | sub rest, rest, cl_remainder
L(L2_dc_zva):
// zero fill
mov tmp1, dst
dc_zva (ZF_DIST / CACHE_LINE_SIZE) - 1
mov zva_len, ZF_DIST
add tmp1, zva_len, CACHE_LINE_SIZE * 2
// unroll
.p2align 3
1: st1b_unroll 0, 3
add tmp2, dst, zva_len
dc zva, tmp2
st1b_unroll 4, 7
add tmp2, tmp2, CACHE_LINE_SIZE
dc zva, tmp... | arm64 | gas-like | macro-heavy | bminor/glibc | sysdeps/aarch64/multiarch/memset_a64fx.S | LGPL-2.1 | 4f26956d5ba394eb3ade6c1c20b5c16864a00766 | github | libc | https://github.com/bminor/glibc/blob/4f26956d5ba394eb3ade6c1c20b5c16864a00766/sysdeps/aarch64/multiarch/memset_a64fx.S | 241 | 268 |
bminor/glibc:sysdeps/aarch64/multiarch/memset_base64.S:1 | /* Copyright (C) 2018-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... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/multiarch/memset_base64.S | LGPL-2.1 | 9fd3409842b3e2d31cff5dbd6f96066c430f0aa2 | github | libc | https://github.com/bminor/glibc/blob/9fd3409842b3e2d31cff5dbd6f96066c430f0aa2/sysdeps/aarch64/multiarch/memset_base64.S | 1 | 60 |
bminor/glibc:sysdeps/aarch64/multiarch/memset_base64.S:2 | bfi valw, valw, 8, 8
bfi valw, valw, 16, 16
bfi val, val, 32, 32
add dstend, dstin, count
cmp count, 96
b.hi L(set_long)
cmp count, 16
b.hs L(set_medium)
/* Set 0..15 bytes. */
tbz count, 3, 1f
str val, [dstin]
str val, [dstend, -8]
ret
.p2align 3
1: tbz count, 2, 2f
str valw, [dstin]
str valw, [dst... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/multiarch/memset_base64.S | LGPL-2.1 | 9fd3409842b3e2d31cff5dbd6f96066c430f0aa2 | github | libc | https://github.com/bminor/glibc/blob/9fd3409842b3e2d31cff5dbd6f96066c430f0aa2/sysdeps/aarch64/multiarch/memset_base64.S | 41 | 100 |
bminor/glibc:sysdeps/aarch64/multiarch/memset_base64.S:3 | .p2align 4
/* Set 64..96 bytes. Write 64 bytes from the start and
32 bytes from the end. */
L(set96):
stp val, val, [dstin, 16]
stp val, val, [dstin, 32]
stp val, val, [dstin, 48]
stp val, val, [dstend, -32]
stp val, val, [dstend, -16]
ret
.p2align 4
L(set_long):
stp val, val, [dstin]
bic dst, dstin, 1... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/multiarch/memset_base64.S | LGPL-2.1 | 9fd3409842b3e2d31cff5dbd6f96066c430f0aa2 | github | libc | https://github.com/bminor/glibc/blob/9fd3409842b3e2d31cff5dbd6f96066c430f0aa2/sysdeps/aarch64/multiarch/memset_base64.S | 81 | 140 |
bminor/glibc:sysdeps/aarch64/multiarch/memset_base64.S:4 | b.hs 1b
tbz count, 5, 1f /* Remaining count is less than 33 bytes? */
stp val, val, [dst, 16]
stp val, val, [dst, 32]
1: stp val, val, [dstend, -32]
stp val, val, [dstend, -16]
ret
#if DC_ZVA_THRESHOLD
.p2align 3
L(zva_64):
stp val, val, [dst, 16]
stp val, val, [dst, 32]
stp val, val, [dst, 48]
bic dst, dst... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/multiarch/memset_base64.S | LGPL-2.1 | 9fd3409842b3e2d31cff5dbd6f96066c430f0aa2 | github | libc | https://github.com/bminor/glibc/blob/9fd3409842b3e2d31cff5dbd6f96066c430f0aa2/sysdeps/aarch64/multiarch/memset_base64.S | 121 | 180 |
bminor/glibc:sysdeps/aarch64/multiarch/memset_base64.S:5 | /* DC ZVA sets 64 bytes each time. */
1: dc zva, dst
add dst, dst, 64
subs count, count, 64
b.hs 1b
/*
* Write the last 64 byte aligned block using stp to force fully
* dirty cache line.
*/
stp val, val, [dst, 0]
stp val, val, [dst, 16]
stp val, val, [dst, 32]
stp val, val, [dst, 48]
tbz count, 5, 1f /... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/multiarch/memset_base64.S | LGPL-2.1 | 9fd3409842b3e2d31cff5dbd6f96066c430f0aa2 | github | libc | https://github.com/bminor/glibc/blob/9fd3409842b3e2d31cff5dbd6f96066c430f0aa2/sysdeps/aarch64/multiarch/memset_base64.S | 161 | 185 |
bminor/glibc:sysdeps/aarch64/multiarch/memset_base64.S:1 | /* Copyright (C) 2018-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... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/multiarch/memset_base64.S | LGPL-2.1 | 65cc53fe7c6556b90159b8c3da1eb283792387db | github | libc | https://github.com/bminor/glibc/blob/65cc53fe7c6556b90159b8c3da1eb283792387db/sysdeps/aarch64/multiarch/memset_base64.S | 1 | 60 |
bminor/glibc:sysdeps/aarch64/multiarch/memset_base64.S:5 | /* DC ZVA sets 64 bytes each time. */
1: dc zva, dst
add dst, dst, 64
subs count, count, 64
b.hs 1b
/*
* Write the last 64 byte aligned block using stp to force fully
* dirty cache line.
*/
stp val, val, [dst, 0]
stp val, val, [dst, 16]
stp val, val, [dst, 32]
stp val, val, [dst, 48]
tbz count, 5, 1f /... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/multiarch/memset_base64.S | LGPL-2.1 | 65cc53fe7c6556b90159b8c3da1eb283792387db | github | libc | https://github.com/bminor/glibc/blob/65cc53fe7c6556b90159b8c3da1eb283792387db/sysdeps/aarch64/multiarch/memset_base64.S | 161 | 186 |
bminor/glibc:sysdeps/aarch64/multiarch/memset_base64.S:3 | .p2align 4
/* Set 64..96 bytes. Write 64 bytes from the start and
32 bytes from the end. */
L(set96):
stp val, val, [dstin, 16]
stp val, val, [dstin, 32]
stp val, val, [dstin, 48]
stp val, val, [dstend, -32]
stp val, val, [dstend, -16]
ret
.p2align 4
L(set_long):
stp val, val, [dstin]
bic dst, dstin, 1... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/multiarch/memset_base64.S | LGPL-2.1 | 6d7e8eda9b85b08f207a6dc6f187e94e4817270f | github | libc | https://github.com/bminor/glibc/blob/6d7e8eda9b85b08f207a6dc6f187e94e4817270f/sysdeps/aarch64/multiarch/memset_base64.S | 81 | 140 |
bminor/glibc:sysdeps/aarch64/multiarch/memset_base64.S:4 | b.hs 1b
tbz count, 5, 1f /* Remaining count is less than 33 bytes? */
stp val, val, [dst, 16]
stp val, val, [dst, 32]
1: stp val, val, [dstend, -32]
stp val, val, [dstend, -16]
ret
#if DC_ZVA_THRESHOLD
.p2align 3
L(zva_64):
stp val, val, [dst, 16]
stp val, val, [dst, 32]
stp val, val, [dst, 48]
bic dst, dst... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/multiarch/memset_base64.S | LGPL-2.1 | 6d7e8eda9b85b08f207a6dc6f187e94e4817270f | github | libc | https://github.com/bminor/glibc/blob/6d7e8eda9b85b08f207a6dc6f187e94e4817270f/sysdeps/aarch64/multiarch/memset_base64.S | 121 | 180 |
bminor/glibc:sysdeps/aarch64/multiarch/memset_base64.S:1 | /* Copyright (C) 2018-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... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/multiarch/memset_base64.S | LGPL-2.1 | 581c785bf31bc74430320c7856bbfa3875d025fe | github | libc | https://github.com/bminor/glibc/blob/581c785bf31bc74430320c7856bbfa3875d025fe/sysdeps/aarch64/multiarch/memset_base64.S | 1 | 60 |
bminor/glibc:sysdeps/aarch64/multiarch/memset_base64.S:1 | /* Copyright (C) 2018-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... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/multiarch/memset_base64.S | LGPL-2.1 | 2b778ceb4010c28d70de9b8eab20e8d88eed586b | github | libc | https://github.com/bminor/glibc/blob/2b778ceb4010c28d70de9b8eab20e8d88eed586b/sysdeps/aarch64/multiarch/memset_base64.S | 1 | 60 |
bminor/glibc:sysdeps/aarch64/multiarch/memset_base64.S:1 | /* Copyright (C) 2018-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... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/multiarch/memset_base64.S | LGPL-2.1 | 45b1e17e9150dbd9ac2d578579063fbfa8e1b327 | github | libc | https://github.com/bminor/glibc/blob/45b1e17e9150dbd9ac2d578579063fbfa8e1b327/sysdeps/aarch64/multiarch/memset_base64.S | 1 | 60 |
bminor/glibc:sysdeps/aarch64/multiarch/memset_base64.S:1 | /* Copyright (C) 2018-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... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/multiarch/memset_base64.S | LGPL-2.1 | d614a7539657941a9201c236b2f15afac18e1213 | github | libc | https://github.com/bminor/glibc/blob/d614a7539657941a9201c236b2f15afac18e1213/sysdeps/aarch64/multiarch/memset_base64.S | 1 | 60 |
bminor/glibc:sysdeps/aarch64/multiarch/memset_base64.S:1 | /* Copyright (C) 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 Lice... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/multiarch/memset_base64.S | LGPL-2.1 | 5a82c74822d3272df2f5929133680478c0cfb4bd | github | libc | https://github.com/bminor/glibc/blob/5a82c74822d3272df2f5929133680478c0cfb4bd/sysdeps/aarch64/multiarch/memset_base64.S | 1 | 60 |
bminor/glibc:sysdeps/aarch64/multiarch/memset_base64.S:1 | /* Copyright (C) 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 Lice... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/multiarch/memset_base64.S | LGPL-2.1 | b68fabfbbc5a4178338e167f5517787b76eb5962 | github | libc | https://github.com/bminor/glibc/blob/b68fabfbbc5a4178338e167f5517787b76eb5962/sysdeps/aarch64/multiarch/memset_base64.S | 1 | 60 |
bminor/glibc:sysdeps/aarch64/multiarch/memset_base64.S:1 | /* Copyright (C) 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 Lice... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/multiarch/memset_base64.S | LGPL-2.1 | c7d3890ff51bceb38fac0947ce1f2bb0c34f6b15 | github | libc | https://github.com/bminor/glibc/blob/c7d3890ff51bceb38fac0947ce1f2bb0c34f6b15/sysdeps/aarch64/multiarch/memset_base64.S | 1 | 60 |
bminor/glibc:sysdeps/aarch64/multiarch/memset_base64.S:2 | bfi valw, valw, 8, 8
bfi valw, valw, 16, 16
bfi val, val, 32, 32
add dstend, dstin, count
cmp count, 96
b.hi L(set_long)
cmp count, 16
b.hs L(set_medium)
/* Set 0..15 bytes. */
tbz count, 3, 1f
str val, [dstin]
str val, [dstend, -8]
ret
.p2align 3
1: tbz count, 2, 2f
str valw, [dstin]
str valw, [dst... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/multiarch/memset_base64.S | LGPL-2.1 | c7d3890ff51bceb38fac0947ce1f2bb0c34f6b15 | github | libc | https://github.com/bminor/glibc/blob/c7d3890ff51bceb38fac0947ce1f2bb0c34f6b15/sysdeps/aarch64/multiarch/memset_base64.S | 41 | 100 |
bminor/glibc:sysdeps/aarch64/multiarch/memset_base64.S:3 | /* Set 64..96 bytes. Write 64 bytes from the start and
32 bytes from the end. */
L(set96):
stp val, val, [dstin, 16]
stp val, val, [dstin, 32]
stp val, val, [dstin, 48]
stp val, val, [dstend, -32]
stp val, val, [dstend, -16]
ret
.p2align 4
L(set_long):
stp val, val, [dstin]
cmp count, DC_ZVA_THRESHOLD
... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/multiarch/memset_base64.S | LGPL-2.1 | c7d3890ff51bceb38fac0947ce1f2bb0c34f6b15 | github | libc | https://github.com/bminor/glibc/blob/c7d3890ff51bceb38fac0947ce1f2bb0c34f6b15/sysdeps/aarch64/multiarch/memset_base64.S | 81 | 140 |
bminor/glibc:sysdeps/aarch64/multiarch/memset_base64.S:4 | stp val, val, [dstend, -16]
ret
.p2align 3
L(zva_64):
stp val, val, [dst, 16]
stp val, val, [dst, 32]
stp val, val, [dst, 48]
bic dst, dst, 63
/*
* Previous memory writes might cross cache line boundary, and cause
* cache line partially dirty. Zeroing this kind of cache line using
* DC ZVA will incur ext... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/multiarch/memset_base64.S | LGPL-2.1 | c7d3890ff51bceb38fac0947ce1f2bb0c34f6b15 | github | libc | https://github.com/bminor/glibc/blob/c7d3890ff51bceb38fac0947ce1f2bb0c34f6b15/sysdeps/aarch64/multiarch/memset_base64.S | 121 | 178 |
bminor/glibc:sysdeps/aarch64/multiarch/memset_base64.S:5 | /*
* Write the last 64 byte aligned block using stp to force fully
* dirty cache line.
*/
stp val, val, [dst, 0]
stp val, val, [dst, 16]
stp val, val, [dst, 32]
stp val, val, [dst, 48]
tbz count, 5, 1f /* Remaining count is less than 33 bytes? */
stp val, val, [dst, 64]
stp val, val, [dst, 80]
1: stp val,... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/multiarch/memset_base64.S | LGPL-2.1 | c7d3890ff51bceb38fac0947ce1f2bb0c34f6b15 | github | libc | https://github.com/bminor/glibc/blob/c7d3890ff51bceb38fac0947ce1f2bb0c34f6b15/sysdeps/aarch64/multiarch/memset_base64.S | 161 | 178 |
bminor/glibc:sysdeps/aarch64/multiarch/memset_emag.S:1 | /* Optimized memset for AmpereComputing emag processor.
Copyright (C) 2018-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 th... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/multiarch/memset_emag.S | LGPL-2.1 | 04e750e75b73957cf1c791535a3f4319534a52fc | github | libc | https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/aarch64/multiarch/memset_emag.S | 1 | 60 |
bminor/glibc:sysdeps/aarch64/multiarch/memset_emag.S:2 | add dstend, dstin, count
cmp count, 96
b.hi L(set_long)
cmp count, 16
b.hs L(set_medium)
/* Set 0..15 bytes. */
tbz count, 3, 1f
str val, [dstin]
str val, [dstend, -8]
ret
.p2align 3
1: tbz count, 2, 2f
str valw, [dstin]
str valw, [dstend, -4]
ret
2: cbz count, 3f
strb valw, [dstin]
tbz count, 1, 3f
... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/multiarch/memset_emag.S | LGPL-2.1 | 04e750e75b73957cf1c791535a3f4319534a52fc | github | libc | https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/aarch64/multiarch/memset_emag.S | 41 | 100 |
bminor/glibc:sysdeps/aarch64/multiarch/memset_emag.S:3 | stp val, val, [dstin, 32]
stp val, val, [dstin, 48]
stp val, val, [dstend, -32]
stp val, val, [dstend, -16]
ret
.p2align 4
L(set_long):
stp val, val, [dstin]
bic dst, dstin, 15
/* Small-size or non-zero memset does not use DC ZVA. */
sub count, dstend, dst
/*
* Adjust count and bias for loop. By subtracti... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/multiarch/memset_emag.S | LGPL-2.1 | 04e750e75b73957cf1c791535a3f4319534a52fc | github | libc | https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/aarch64/multiarch/memset_emag.S | 81 | 115 |
bminor/glibc:sysdeps/aarch64/multiarch/memset_emag.S:1 | /* Optimized memset for AmpereComputing emag processor.
Copyright (C) 2018-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 th... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/multiarch/memset_emag.S | LGPL-2.1 | ce2f26a22e6b6f5c108d156afd9b43a452bb024c | github | libc | https://github.com/bminor/glibc/blob/ce2f26a22e6b6f5c108d156afd9b43a452bb024c/sysdeps/aarch64/multiarch/memset_emag.S | 1 | 60 |
bminor/glibc:sysdeps/aarch64/multiarch/memset_emag.S:1 | /* Optimized memset for AmpereComputing emag processor.
Copyright (C) 2018-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 th... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/multiarch/memset_emag.S | LGPL-2.1 | 2642002380aafb71a1d3b569b6d7ebeab3284816 | github | libc | https://github.com/bminor/glibc/blob/2642002380aafb71a1d3b569b6d7ebeab3284816/sysdeps/aarch64/multiarch/memset_emag.S | 1 | 60 |
bminor/glibc:sysdeps/aarch64/multiarch/memset_emag.S:2 | bfi valw, valw, 16, 16
bfi val, val, 32, 32
add dstend, dstin, count
cmp count, 96
b.hi L(set_long)
cmp count, 16
b.hs L(set_medium)
/* Set 0..15 bytes. */
tbz count, 3, 1f
str val, [dstin]
str val, [dstend, -8]
ret
.p2align 3
1: tbz count, 2, 2f
str valw, [dstin]
str valw, [dstend, -4]
ret
2: cbz c... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/multiarch/memset_emag.S | LGPL-2.1 | 2642002380aafb71a1d3b569b6d7ebeab3284816 | github | libc | https://github.com/bminor/glibc/blob/2642002380aafb71a1d3b569b6d7ebeab3284816/sysdeps/aarch64/multiarch/memset_emag.S | 41 | 100 |
bminor/glibc:sysdeps/aarch64/multiarch/memset_emag.S:3 | 32 bytes from the end. */
L(set96):
stp val, val, [dstin, 16]
stp val, val, [dstin, 32]
stp val, val, [dstin, 48]
stp val, val, [dstend, -32]
stp val, val, [dstend, -16]
ret
.p2align 4
L(set_long):
stp val, val, [dstin]
bic dst, dstin, 15
/* Small-size or non-zero memset does not use DC ZVA. */
sub count, ... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/multiarch/memset_emag.S | LGPL-2.1 | 2642002380aafb71a1d3b569b6d7ebeab3284816 | github | libc | https://github.com/bminor/glibc/blob/2642002380aafb71a1d3b569b6d7ebeab3284816/sysdeps/aarch64/multiarch/memset_emag.S | 81 | 118 |
bminor/glibc:sysdeps/aarch64/multiarch/memset_emag.S:1 | /* Optimized memset for AmpereComputing emag processor.
Copyright (C) 2018-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 th... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/multiarch/memset_emag.S | LGPL-2.1 | 8ecb477ea16a387a44ace5bf59d39a7e270b238b | github | libc | https://github.com/bminor/glibc/blob/8ecb477ea16a387a44ace5bf59d39a7e270b238b/sysdeps/aarch64/multiarch/memset_emag.S | 1 | 60 |
bminor/glibc:sysdeps/aarch64/multiarch/memset_emag.S:1 | /* Optimized memset for AmpereComputing emag processor.
Copyright (C) 2018-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 th... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/multiarch/memset_emag.S | LGPL-2.1 | dff8da6b3e89b986bb7f6b1ec18cf65d5972e307 | github | libc | https://github.com/bminor/glibc/blob/dff8da6b3e89b986bb7f6b1ec18cf65d5972e307/sysdeps/aarch64/multiarch/memset_emag.S | 1 | 60 |
bminor/glibc:sysdeps/aarch64/multiarch/memset_emag.S:2 | b.hi L(set_long)
cmp count, 16
b.hs L(set_medium)
/* Set 0..15 bytes. */
tbz count, 3, 1f
str val, [dstin]
str val, [dstend, -8]
ret
.p2align 3
1: tbz count, 2, 2f
str valw, [dstin]
str valw, [dstend, -4]
ret
2: cbz count, 3f
strb valw, [dstin]
tbz count, 1, 3f
strh valw, [dstend, -2]
3: ret
.p2align... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/multiarch/memset_emag.S | LGPL-2.1 | dff8da6b3e89b986bb7f6b1ec18cf65d5972e307 | github | libc | https://github.com/bminor/glibc/blob/dff8da6b3e89b986bb7f6b1ec18cf65d5972e307/sysdeps/aarch64/multiarch/memset_emag.S | 41 | 100 |
bminor/glibc:sysdeps/aarch64/multiarch/memset_emag.S:3 | stp val, val, [dstend, -16]
ret
.p2align 4
L(set_long):
stp val, val, [dstin]
bic dst, dstin, 15
/* Small-size or non-zero memset does not use DC ZVA. */
sub count, dstend, dst
/*
* Adjust count and bias for loop. By subtracting extra 1 from count,
* it is easy to use tbz instruction to check whether loop ... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/multiarch/memset_emag.S | LGPL-2.1 | dff8da6b3e89b986bb7f6b1ec18cf65d5972e307 | github | libc | https://github.com/bminor/glibc/blob/dff8da6b3e89b986bb7f6b1ec18cf65d5972e307/sysdeps/aarch64/multiarch/memset_emag.S | 81 | 112 |
bminor/glibc:sysdeps/aarch64/multiarch/memset_emag.S:1 | /* Optimized memset for AmpereComputing emag processor.
Copyright (C) 2018-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 th... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/multiarch/memset_emag.S | LGPL-2.1 | 9627ab99b50d250c6dd3001a3355aa03692f7fe5 | github | libc | https://github.com/bminor/glibc/blob/9627ab99b50d250c6dd3001a3355aa03692f7fe5/sysdeps/aarch64/multiarch/memset_emag.S | 1 | 60 |
bminor/glibc:sysdeps/aarch64/multiarch/memset_emag.S:1 | /* Optimized memset for AmpereComputing emag processor.
Copyright (C) 2018-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 th... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/multiarch/memset_emag.S | LGPL-2.1 | 9fd3409842b3e2d31cff5dbd6f96066c430f0aa2 | github | libc | https://github.com/bminor/glibc/blob/9fd3409842b3e2d31cff5dbd6f96066c430f0aa2/sysdeps/aarch64/multiarch/memset_emag.S | 1 | 34 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.