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/memchr_nosimd.S:2
#define tmp1 x2 #define tmp2 x3 #define tmp3 x4 #define tmp4 x5 #define src x6 #define srcend x7 #define srcend16 x8 #define anymore x9 #define zeroones x10 #define data1 x11 #define data2 x12 #define has_chr1 x13 #define has_chr2 x14 #define REP8_01 0x0101010101010101 #define REP8_7f 0x7f7f7f7f7f7f7f7...
arm64
gas-like
handwritten
bminor/glibc
sysdeps/aarch64/multiarch/memchr_nosimd.S
LGPL-2.1
6d7e8eda9b85b08f207a6dc6f187e94e4817270f
github
libc
https://github.com/bminor/glibc/blob/6d7e8eda9b85b08f207a6dc6f187e94e4817270f/sysdeps/aarch64/multiarch/memchr_nosimd.S
41
100
bminor/glibc:sysdeps/aarch64/multiarch/memchr_nosimd.S:3
add srcend, srcin, cntin /* * srcend16 is address of the block following the last block. * * [A block is 16-byte aligned and sized.] */ add srcend16, srcend, 15 bic srcend16, srcend16, 15 b.eq L(loop) /* Load the first block containing start address. */ ldp data1, data2, [src], 16 lsl tmp1, srcin, 3 ...
arm64
gas-like
handwritten
bminor/glibc
sysdeps/aarch64/multiarch/memchr_nosimd.S
LGPL-2.1
6d7e8eda9b85b08f207a6dc6f187e94e4817270f
github
libc
https://github.com/bminor/glibc/blob/6d7e8eda9b85b08f207a6dc6f187e94e4817270f/sysdeps/aarch64/multiarch/memchr_nosimd.S
81
140
bminor/glibc:sysdeps/aarch64/multiarch/memchr_nosimd.S:4
csinv data1, tmp1, xzr, eq csel data2, data2, tmp2, eq /* * When the first and last block are the same, there are two cases: * o. Memory range to search is just in one block. * ( start address - end address) < 0 * * o. Memory range is so large that end address wrap-around. * ( start address -...
arm64
gas-like
handwritten
bminor/glibc
sysdeps/aarch64/multiarch/memchr_nosimd.S
LGPL-2.1
6d7e8eda9b85b08f207a6dc6f187e94e4817270f
github
libc
https://github.com/bminor/glibc/blob/6d7e8eda9b85b08f207a6dc6f187e94e4817270f/sysdeps/aarch64/multiarch/memchr_nosimd.S
121
180
bminor/glibc:sysdeps/aarch64/multiarch/memchr_nosimd.S:5
sub tmp1, data1, zeroones sub tmp2, data2, zeroones orr tmp3, data1, REP8_7f orr tmp4, data2, REP8_7f bic has_chr1, tmp1, tmp3 bic has_chr2, tmp2, tmp4 orr tmp1, has_chr1, has_chr2 ccmp tmp1, 0, 0, ne b.eq L(loop) cbz has_chr1, 1f sub result, src, 16 #ifdef __AARCH64EB__ rev data1, data1 #else rev has_...
arm64
gas-like
handwritten
bminor/glibc
sysdeps/aarch64/multiarch/memchr_nosimd.S
LGPL-2.1
6d7e8eda9b85b08f207a6dc6f187e94e4817270f
github
libc
https://github.com/bminor/glibc/blob/6d7e8eda9b85b08f207a6dc6f187e94e4817270f/sysdeps/aarch64/multiarch/memchr_nosimd.S
161
220
bminor/glibc:sysdeps/aarch64/multiarch/memchr_nosimd.S:6
orr tmp3, data1, REP8_7f bic has_chr1, tmp1, tmp3 rev has_chr1, has_chr1 #endif /* * If the specified char is found in a qword, the corresponding * byte of in has_chr has value of 1, while this is only true for * the first occurrence, not other occurrences. */ cmp anymore, 0 clz tmp1, has_chr1 add result...
arm64
gas-like
handwritten
bminor/glibc
sysdeps/aarch64/multiarch/memchr_nosimd.S
LGPL-2.1
6d7e8eda9b85b08f207a6dc6f187e94e4817270f
github
libc
https://github.com/bminor/glibc/blob/6d7e8eda9b85b08f207a6dc6f187e94e4817270f/sysdeps/aarch64/multiarch/memchr_nosimd.S
201
223
bminor/glibc:sysdeps/aarch64/multiarch/memchr_nosimd.S:1
/* memchr - find a character in a memory zone using base integer registers 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 Licens...
arm64
gas-like
handwritten
bminor/glibc
sysdeps/aarch64/multiarch/memchr_nosimd.S
LGPL-2.1
581c785bf31bc74430320c7856bbfa3875d025fe
github
libc
https://github.com/bminor/glibc/blob/581c785bf31bc74430320c7856bbfa3875d025fe/sysdeps/aarch64/multiarch/memchr_nosimd.S
1
60
bminor/glibc:sysdeps/aarch64/multiarch/memchr_nosimd.S:1
/* memchr - find a character in a memory zone using base integer registers 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 Licens...
arm64
gas-like
handwritten
bminor/glibc
sysdeps/aarch64/multiarch/memchr_nosimd.S
LGPL-2.1
2b778ceb4010c28d70de9b8eab20e8d88eed586b
github
libc
https://github.com/bminor/glibc/blob/2b778ceb4010c28d70de9b8eab20e8d88eed586b/sysdeps/aarch64/multiarch/memchr_nosimd.S
1
60
bminor/glibc:sysdeps/aarch64/multiarch/memchr_nosimd.S:1
/* memchr - find a character in a memory zone using base integer registers 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 Licens...
arm64
gas-like
handwritten
bminor/glibc
sysdeps/aarch64/multiarch/memchr_nosimd.S
LGPL-2.1
45b1e17e9150dbd9ac2d578579063fbfa8e1b327
github
libc
https://github.com/bminor/glibc/blob/45b1e17e9150dbd9ac2d578579063fbfa8e1b327/sysdeps/aarch64/multiarch/memchr_nosimd.S
1
60
bminor/glibc:sysdeps/aarch64/multiarch/memchr_nosimd.S:2
#define tmp1 x2 #define tmp2 x3 #define tmp3 x4 #define tmp4 x5 #define src x6 #define srcend x7 #define srcend16 x8 #define anymore x9 #define zeroones x10 #define data1 x11 #define data2 x12 #define has_chr1 x13 #define has_chr2 x14 #define REP8_01 0x0101010101010101 #define REP8_7f 0x7f7f7f7f7f7f7f7...
arm64
gas-like
handwritten
bminor/glibc
sysdeps/aarch64/multiarch/memchr_nosimd.S
LGPL-2.1
d614a7539657941a9201c236b2f15afac18e1213
github
libc
https://github.com/bminor/glibc/blob/d614a7539657941a9201c236b2f15afac18e1213/sysdeps/aarch64/multiarch/memchr_nosimd.S
41
100
bminor/glibc:sysdeps/aarch64/multiarch/memchr_nosimd.S:1
/* memchr - find a character in a memory zone using base integer registers 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 ...
arm64
gas-like
handwritten
bminor/glibc
sysdeps/aarch64/multiarch/memchr_nosimd.S
LGPL-2.1
5a82c74822d3272df2f5929133680478c0cfb4bd
github
libc
https://github.com/bminor/glibc/blob/5a82c74822d3272df2f5929133680478c0cfb4bd/sysdeps/aarch64/multiarch/memchr_nosimd.S
1
60
bminor/glibc:sysdeps/aarch64/multiarch/memchr_nosimd.S:1
/* memchr - find a character in a memory zone using base integer registers 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 ...
arm64
gas-like
handwritten
bminor/glibc
sysdeps/aarch64/multiarch/memchr_nosimd.S
LGPL-2.1
83d1cc42d8e6b18a4b6ba53addfdae98c694ea36
github
libc
https://github.com/bminor/glibc/blob/83d1cc42d8e6b18a4b6ba53addfdae98c694ea36/sysdeps/aarch64/multiarch/memchr_nosimd.S
1
60
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_a64fx.S:1
/* Optimized memcpy 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/memcpy_a64fx.S
LGPL-2.1
04e750e75b73957cf1c791535a3f4319534a52fc
github
libc
https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/aarch64/multiarch/memcpy_a64fx.S
1
60
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_a64fx.S:2
ld1b z0.b, p0/z, [src, 0, mul vl] ld1b z1.b, p0/z, [src, 1, mul vl] ld1b z2.b, p0/z, [src, 2, mul vl] ld1b z3.b, p0/z, [src, 3, mul vl] ld1b z4.b, p0/z, [src, 4, mul vl] ld1b z5.b, p0/z, [src, 5, mul vl] ld1b z6.b, p0/z, [src, 6, mul vl] ld1b z7.b, p0/z, [src, 7, mul vl] .endm .macro stld1b_unroll4a st1b z0....
arm64
gas-like
macro-heavy
bminor/glibc
sysdeps/aarch64/multiarch/memcpy_a64fx.S
LGPL-2.1
04e750e75b73957cf1c791535a3f4319534a52fc
github
libc
https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/aarch64/multiarch/memcpy_a64fx.S
41
100
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_a64fx.S:3
st1b z2.b, p0, [dst, 2, mul vl] st1b z3.b, p0, [dst, 3, mul vl] st1b z4.b, p0, [dst, 4, mul vl] st1b z5.b, p0, [dst, 5, mul vl] st1b z6.b, p0, [dst, 6, mul vl] st1b z7.b, p0, [dst, 7, mul vl] .endm ENTRY (__memcpy_a64fx) cntb vlen cmp n, vlen, lsl 1 b.hi L(copy_small) whilelo p1.b, vlen, n whilelo p0.b, xz...
arm64
gas-like
macro-heavy
bminor/glibc
sysdeps/aarch64/multiarch/memcpy_a64fx.S
LGPL-2.1
04e750e75b73957cf1c791535a3f4319534a52fc
github
libc
https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/aarch64/multiarch/memcpy_a64fx.S
81
140
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_a64fx.S:4
st1b z3.b, p0, [dstend, -1, mul vl] ret .p2align 4 /* Copy 4-8 vectors. */ 1: ptrue p0.b ld1b z0.b, p0/z, [src, 0, mul vl] ld1b z1.b, p0/z, [src, 1, mul vl] ld1b z2.b, p0/z, [src, 2, mul vl] ld1b z3.b, p0/z, [src, 3, mul vl] ld1b z4.b, p0/z, [srcend, -4, mul vl] ld1b z5.b, p0/z, [srcend, -3, mul vl] ld1b z6...
arm64
gas-like
macro-heavy
bminor/glibc
sysdeps/aarch64/multiarch/memcpy_a64fx.S
LGPL-2.1
04e750e75b73957cf1c791535a3f4319534a52fc
github
libc
https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/aarch64/multiarch/memcpy_a64fx.S
121
180
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_a64fx.S:5
subs n, n, vlen8 b.ls 3f ld1b_unroll8 add src, src, vlen8 subs n, n, vlen8 b.ls 2f .p2align 4 /* 8x unrolled and software pipelined loop. */ 1: stld1b_unroll8 add dst, dst, vlen8 add src, src, vlen8 subs n, n, vlen8 b.hi 1b 2: st1b_unroll8 add dst, dst, vlen8 3: add n, n, vlen8 /* Move last 0-8 vectors....
arm64
gas-like
macro-heavy
bminor/glibc
sysdeps/aarch64/multiarch/memcpy_a64fx.S
LGPL-2.1
04e750e75b73957cf1c791535a3f4319534a52fc
github
libc
https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/aarch64/multiarch/memcpy_a64fx.S
161
220
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_a64fx.S:6
st1b z0.b, p0, [dst, 0, mul vl] st1b z1.b, p0, [dst, 1, mul vl] st1b z2.b, p0, [dstend, -2, mul vl] st1b z3.b, p0, [dstend, -1, mul vl] ret 1: ld1b z4.b, p0/z, [src, 2, mul vl] ld1b z5.b, p0/z, [src, 3, mul vl] ld1b z6.b, p0/z, [srcend, -4, mul vl] ld1b z7.b, p0/z, [srcend, -3, mul vl] st1b z0.b, p0, [dst, 0, ...
arm64
gas-like
macro-heavy
bminor/glibc
sysdeps/aarch64/multiarch/memcpy_a64fx.S
LGPL-2.1
04e750e75b73957cf1c791535a3f4319534a52fc
github
libc
https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/aarch64/multiarch/memcpy_a64fx.S
201
260
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_a64fx.S:7
/* Check for overlapping moves. Return if there is a full overlap. Small moves up to 8 vectors use the overlap-safe copy_small code. Non-overlapping or overlapping moves with dst < src use memcpy. Overlapping moves with dst > src use a backward copy loop. */ 1: sub tmp, dstin, src ands tmp, tmp, 0xfffffff...
arm64
gas-like
macro-heavy
bminor/glibc
sysdeps/aarch64/multiarch/memcpy_a64fx.S
LGPL-2.1
04e750e75b73957cf1c791535a3f4319534a52fc
github
libc
https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/aarch64/multiarch/memcpy_a64fx.S
241
290
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_a64fx.S:8
2: sub dst, dst, vlen8 st1b_unroll8 3: add n, n, vlen8 /* Adjust src/dst for last 0-8 vectors. */ sub src, src, n mov dst, dstin b L(last_bytes) END (__memmove_a64fx)
arm64
gas-like
macro-heavy
bminor/glibc
sysdeps/aarch64/multiarch/memcpy_a64fx.S
LGPL-2.1
04e750e75b73957cf1c791535a3f4319534a52fc
github
libc
https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/aarch64/multiarch/memcpy_a64fx.S
281
290
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_a64fx.S:1
/* Optimized memcpy 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/memcpy_a64fx.S
LGPL-2.1
b990b0aee2c20d45d53b1964b14b98a8d5e05fe6
github
libc
https://github.com/bminor/glibc/blob/b990b0aee2c20d45d53b1964b14b98a8d5e05fe6/sysdeps/aarch64/multiarch/memcpy_a64fx.S
1
60
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_a64fx.S:1
/* Optimized memcpy 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/memcpy_a64fx.S
LGPL-2.1
2c421fc4302ecb729823ca442f9dfab95afba752
github
libc
https://github.com/bminor/glibc/blob/2c421fc4302ecb729823ca442f9dfab95afba752/sysdeps/aarch64/multiarch/memcpy_a64fx.S
1
60
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_a64fx.S:2
.macro ld1b_unroll8 ld1b z0.b, p0/z, [src, 0, mul vl] ld1b z1.b, p0/z, [src, 1, mul vl] ld1b z2.b, p0/z, [src, 2, mul vl] ld1b z3.b, p0/z, [src, 3, mul vl] ld1b z4.b, p0/z, [src, 4, mul vl] ld1b z5.b, p0/z, [src, 5, mul vl] ld1b z6.b, p0/z, [src, 6, mul vl] ld1b z7.b, p0/z, [src, 7, mul vl] .endm .macro stld...
arm64
gas-like
macro-heavy
bminor/glibc
sysdeps/aarch64/multiarch/memcpy_a64fx.S
LGPL-2.1
2c421fc4302ecb729823ca442f9dfab95afba752
github
libc
https://github.com/bminor/glibc/blob/2c421fc4302ecb729823ca442f9dfab95afba752/sysdeps/aarch64/multiarch/memcpy_a64fx.S
41
100
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_a64fx.S:3
st1b z0.b, p0, [dst, 0, mul vl] st1b z1.b, p0, [dst, 1, mul vl] st1b z2.b, p0, [dst, 2, mul vl] st1b z3.b, p0, [dst, 3, mul vl] st1b z4.b, p0, [dst, 4, mul vl] st1b z5.b, p0, [dst, 5, mul vl] st1b z6.b, p0, [dst, 6, mul vl] st1b z7.b, p0, [dst, 7, mul vl] .endm ENTRY (__memcpy_a64fx) cntb vlen cmp n, vlen, ...
arm64
gas-like
macro-heavy
bminor/glibc
sysdeps/aarch64/multiarch/memcpy_a64fx.S
LGPL-2.1
2c421fc4302ecb729823ca442f9dfab95afba752
github
libc
https://github.com/bminor/glibc/blob/2c421fc4302ecb729823ca442f9dfab95afba752/sysdeps/aarch64/multiarch/memcpy_a64fx.S
81
140
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_a64fx.S:4
st1b z1.b, p0, [dstin, 1, mul vl] st1b z2.b, p0, [dstend, -2, mul vl] st1b z3.b, p0, [dstend, -1, mul vl] ret .p2align 4 /* Copy 4-8 vectors. */ 1: ptrue p0.b ld1b z0.b, p0/z, [src, 0, mul vl] ld1b z1.b, p0/z, [src, 1, mul vl] ld1b z2.b, p0/z, [src, 2, mul vl] ld1b z3.b, p0/z, [src, 3, mul vl] ld1b z4.b, p0...
arm64
gas-like
macro-heavy
bminor/glibc
sysdeps/aarch64/multiarch/memcpy_a64fx.S
LGPL-2.1
2c421fc4302ecb729823ca442f9dfab95afba752
github
libc
https://github.com/bminor/glibc/blob/2c421fc4302ecb729823ca442f9dfab95afba752/sysdeps/aarch64/multiarch/memcpy_a64fx.S
121
180
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_a64fx.S:5
lsl vlen8, vlen, 3 subs n, n, vlen8 b.ls 3f ld1b_unroll8 add src, src, vlen8 subs n, n, vlen8 b.ls 2f .p2align 4 /* 8x unrolled and software pipelined loop. */ 1: stld1b_unroll8 add dst, dst, vlen8 add src, src, vlen8 subs n, n, vlen8 b.hi 1b 2: st1b_unroll8 add dst, dst, vlen8 3: add n, n, vlen8 /* Mo...
arm64
gas-like
macro-heavy
bminor/glibc
sysdeps/aarch64/multiarch/memcpy_a64fx.S
LGPL-2.1
2c421fc4302ecb729823ca442f9dfab95afba752
github
libc
https://github.com/bminor/glibc/blob/2c421fc4302ecb729823ca442f9dfab95afba752/sysdeps/aarch64/multiarch/memcpy_a64fx.S
161
220
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_a64fx.S:6
cmp n, vlen, lsl 2 b.hi 1f st1b z0.b, p0, [dst, 0, mul vl] st1b z1.b, p0, [dst, 1, mul vl] st1b z2.b, p0, [dstend, -2, mul vl] st1b z3.b, p0, [dstend, -1, mul vl] ret 1: ld1b z4.b, p0/z, [src, 2, mul vl] ld1b z5.b, p0/z, [src, 3, mul vl] ld1b z6.b, p0/z, [srcend, -4, mul vl] ld1b z7.b, p0/z, [srcend, -3, mul...
arm64
gas-like
macro-heavy
bminor/glibc
sysdeps/aarch64/multiarch/memcpy_a64fx.S
LGPL-2.1
2c421fc4302ecb729823ca442f9dfab95afba752
github
libc
https://github.com/bminor/glibc/blob/2c421fc4302ecb729823ca442f9dfab95afba752/sysdeps/aarch64/multiarch/memcpy_a64fx.S
201
260
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_a64fx.S:7
.p2align 4 /* Check for overlapping moves. Return if there is a full overlap. Small moves up to 8 vectors use the overlap-safe copy_small code. Non-overlapping or overlapping moves with dst < src use memcpy. Overlapping moves with dst > src use a backward copy loop. */ 1: sub tmp, dstin, src ands tmp, tm...
arm64
gas-like
macro-heavy
bminor/glibc
sysdeps/aarch64/multiarch/memcpy_a64fx.S
LGPL-2.1
2c421fc4302ecb729823ca442f9dfab95afba752
github
libc
https://github.com/bminor/glibc/blob/2c421fc4302ecb729823ca442f9dfab95afba752/sysdeps/aarch64/multiarch/memcpy_a64fx.S
241
293
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_a64fx.S:8
subs n, n, vlen8 b.hi 1b 2: sub dst, dst, vlen8 st1b_unroll8 3: add n, n, vlen8 /* Adjust src/dst for last 0-8 vectors. */ sub src, src, n mov dst, dstin b L(last_bytes) END (__memmove_a64fx) #endif /* HAVE_AARCH64_SVE_ASM */
arm64
gas-like
macro-heavy
bminor/glibc
sysdeps/aarch64/multiarch/memcpy_a64fx.S
LGPL-2.1
2c421fc4302ecb729823ca442f9dfab95afba752
github
libc
https://github.com/bminor/glibc/blob/2c421fc4302ecb729823ca442f9dfab95afba752/sysdeps/aarch64/multiarch/memcpy_a64fx.S
281
293
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_a64fx.S:1
/* Optimized memcpy 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/memcpy_a64fx.S
LGPL-2.1
ce2f26a22e6b6f5c108d156afd9b43a452bb024c
github
libc
https://github.com/bminor/glibc/blob/ce2f26a22e6b6f5c108d156afd9b43a452bb024c/sysdeps/aarch64/multiarch/memcpy_a64fx.S
1
60
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_a64fx.S:2
#if HAVE_AARCH64_SVE_ASM .arch armv8.2-a+sve .macro ld1b_unroll8 ld1b z0.b, p0/z, [src, 0, mul vl] ld1b z1.b, p0/z, [src, 1, mul vl] ld1b z2.b, p0/z, [src, 2, mul vl] ld1b z3.b, p0/z, [src, 3, mul vl] ld1b z4.b, p0/z, [src, 4, mul vl] ld1b z5.b, p0/z, [src, 5, mul vl] ld1b z6.b, p0/z, [src, 6, mul vl] ld1b ...
arm64
gas-like
macro-heavy
bminor/glibc
sysdeps/aarch64/multiarch/memcpy_a64fx.S
LGPL-2.1
ce2f26a22e6b6f5c108d156afd9b43a452bb024c
github
libc
https://github.com/bminor/glibc/blob/ce2f26a22e6b6f5c108d156afd9b43a452bb024c/sysdeps/aarch64/multiarch/memcpy_a64fx.S
41
100
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_a64fx.S:3
.endm .macro st1b_unroll8 st1b z0.b, p0, [dst, 0, mul vl] st1b z1.b, p0, [dst, 1, mul vl] st1b z2.b, p0, [dst, 2, mul vl] st1b z3.b, p0, [dst, 3, mul vl] st1b z4.b, p0, [dst, 4, mul vl] st1b z5.b, p0, [dst, 5, mul vl] st1b z6.b, p0, [dst, 6, mul vl] st1b z7.b, p0, [dst, 7, mul vl] .endm #undef BTI_C #define...
arm64
gas-like
macro-heavy
bminor/glibc
sysdeps/aarch64/multiarch/memcpy_a64fx.S
LGPL-2.1
ce2f26a22e6b6f5c108d156afd9b43a452bb024c
github
libc
https://github.com/bminor/glibc/blob/ce2f26a22e6b6f5c108d156afd9b43a452bb024c/sysdeps/aarch64/multiarch/memcpy_a64fx.S
81
140
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_a64fx.S:4
ptrue p0.b ld1b z0.b, p0/z, [src, 0, mul vl] ld1b z1.b, p0/z, [src, 1, mul vl] ld1b z2.b, p0/z, [srcend, -2, mul vl] ld1b z3.b, p0/z, [srcend, -1, mul vl] st1b z0.b, p0, [dstin, 0, mul vl] st1b z1.b, p0, [dstin, 1, mul vl] st1b z2.b, p0, [dstend, -2, mul vl] st1b z3.b, p0, [dstend, -1, mul vl] ret .p2align 4...
arm64
gas-like
macro-heavy
bminor/glibc
sysdeps/aarch64/multiarch/memcpy_a64fx.S
LGPL-2.1
ce2f26a22e6b6f5c108d156afd9b43a452bb024c
github
libc
https://github.com/bminor/glibc/blob/ce2f26a22e6b6f5c108d156afd9b43a452bb024c/sysdeps/aarch64/multiarch/memcpy_a64fx.S
121
180
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_a64fx.S:5
ld1b z1.b, p1/z, [src] st1b z1.b, p1, [dstin] add dst, dstin, tmp add src, src, tmp sub n, n, tmp ptrue p0.b lsl vlen8, vlen, 3 subs n, n, vlen8 b.ls 3f ld1b_unroll8 add src, src, vlen8 subs n, n, vlen8 b.ls 2f .p2align 4 /* 8x unrolled and software pipelined loop. */ 1: stld1b_unroll8 add dst, dst, v...
arm64
gas-like
macro-heavy
bminor/glibc
sysdeps/aarch64/multiarch/memcpy_a64fx.S
LGPL-2.1
ce2f26a22e6b6f5c108d156afd9b43a452bb024c
github
libc
https://github.com/bminor/glibc/blob/ce2f26a22e6b6f5c108d156afd9b43a452bb024c/sysdeps/aarch64/multiarch/memcpy_a64fx.S
161
220
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_a64fx.S:6
1: add srcend, src, n add dstend, dst, n ld1b z0.b, p0/z, [src, 0, mul vl] ld1b z1.b, p0/z, [src, 1, mul vl] ld1b z2.b, p0/z, [srcend, -2, mul vl] ld1b z3.b, p0/z, [srcend, -1, mul vl] cmp n, vlen, lsl 2 b.hi 1f st1b z0.b, p0, [dst, 0, mul vl] st1b z1.b, p0, [dst, 1, mul vl] st1b z2.b, p0, [dstend, -2, mul v...
arm64
gas-like
macro-heavy
bminor/glibc
sysdeps/aarch64/multiarch/memcpy_a64fx.S
LGPL-2.1
ce2f26a22e6b6f5c108d156afd9b43a452bb024c
github
libc
https://github.com/bminor/glibc/blob/ce2f26a22e6b6f5c108d156afd9b43a452bb024c/sysdeps/aarch64/multiarch/memcpy_a64fx.S
201
260
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_a64fx.S:7
ld1b z0.b, p0/z, [src, 0, mul vl] ld1b z1.b, p1/z, [src, 1, mul vl] st1b z0.b, p0, [dstin, 0, mul vl] st1b z1.b, p1, [dstin, 1, mul vl] L(full_overlap): ret .p2align 4 /* Check for overlapping moves. Return if there is a full overlap. Small moves up to 8 vectors use the overlap-safe copy_small code. Non-...
arm64
gas-like
macro-heavy
bminor/glibc
sysdeps/aarch64/multiarch/memcpy_a64fx.S
LGPL-2.1
ce2f26a22e6b6f5c108d156afd9b43a452bb024c
github
libc
https://github.com/bminor/glibc/blob/ce2f26a22e6b6f5c108d156afd9b43a452bb024c/sysdeps/aarch64/multiarch/memcpy_a64fx.S
241
299
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_a64fx.S:8
.p2align 4 /* 8x unrolled and software pipelined backward copy loop. */ 1: sub src, src, vlen8 sub dst, dst, vlen8 stld1b_unroll8 subs n, n, vlen8 b.hi 1b 2: sub dst, dst, vlen8 st1b_unroll8 3: add n, n, vlen8 /* Adjust src/dst for last 0-8 vectors. */ sub src, src, n mov dst, dstin b L(last_bytes) END (_...
arm64
gas-like
macro-heavy
bminor/glibc
sysdeps/aarch64/multiarch/memcpy_a64fx.S
LGPL-2.1
ce2f26a22e6b6f5c108d156afd9b43a452bb024c
github
libc
https://github.com/bminor/glibc/blob/ce2f26a22e6b6f5c108d156afd9b43a452bb024c/sysdeps/aarch64/multiarch/memcpy_a64fx.S
281
299
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_a64fx.S:2
#if HAVE_AARCH64_SVE_ASM .arch armv8.2-a+sve .macro ld1b_unroll8 ld1b z0.b, p0/z, [src, 0, mul vl] ld1b z1.b, p0/z, [src, 1, mul vl] ld1b z2.b, p0/z, [src, 2, mul vl] ld1b z3.b, p0/z, [src, 3, mul vl] ld1b z4.b, p0/z, [src, 4, mul vl] ld1b z5.b, p0/z, [src, 5, mul vl] ld1b z6.b, p0/z, [src, 6, mul vl] ld1b ...
arm64
gas-like
macro-heavy
bminor/glibc
sysdeps/aarch64/multiarch/memcpy_a64fx.S
LGPL-2.1
2642002380aafb71a1d3b569b6d7ebeab3284816
github
libc
https://github.com/bminor/glibc/blob/2642002380aafb71a1d3b569b6d7ebeab3284816/sysdeps/aarch64/multiarch/memcpy_a64fx.S
41
100
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_a64fx.S:3
.endm .macro st1b_unroll8 st1b z0.b, p0, [dst, 0, mul vl] st1b z1.b, p0, [dst, 1, mul vl] st1b z2.b, p0, [dst, 2, mul vl] st1b z3.b, p0, [dst, 3, mul vl] st1b z4.b, p0, [dst, 4, mul vl] st1b z5.b, p0, [dst, 5, mul vl] st1b z6.b, p0, [dst, 6, mul vl] st1b z7.b, p0, [dst, 7, mul vl] .endm #undef BTI_C #define...
arm64
gas-like
macro-heavy
bminor/glibc
sysdeps/aarch64/multiarch/memcpy_a64fx.S
LGPL-2.1
2642002380aafb71a1d3b569b6d7ebeab3284816
github
libc
https://github.com/bminor/glibc/blob/2642002380aafb71a1d3b569b6d7ebeab3284816/sysdeps/aarch64/multiarch/memcpy_a64fx.S
81
140
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_a64fx.S:4
cmp n, vlen, lsl 2 b.hi 1f /* Copy 2-4 vectors. */ ptrue p0.b ld1b z0.b, p0/z, [src, 0, mul vl] ld1b z1.b, p0/z, [src, 1, mul vl] ld1b z2.b, p0/z, [srcend, -2, mul vl] ld1b z3.b, p0/z, [srcend, -1, mul vl] st1b z0.b, p0, [dstin, 0, mul vl] st1b z1.b, p0, [dstin, 1, mul vl] st1b z2.b, p0, [dstend, -2, mul vl...
arm64
gas-like
macro-heavy
bminor/glibc
sysdeps/aarch64/multiarch/memcpy_a64fx.S
LGPL-2.1
2642002380aafb71a1d3b569b6d7ebeab3284816
github
libc
https://github.com/bminor/glibc/blob/2642002380aafb71a1d3b569b6d7ebeab3284816/sysdeps/aarch64/multiarch/memcpy_a64fx.S
121
180
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_a64fx.S:5
sub tmp, vlen, 1 and tmp, dstin, tmp sub tmp, vlen, tmp whilelo p1.b, xzr, tmp ld1b z1.b, p1/z, [src] st1b z1.b, p1, [dstin] add dst, dstin, tmp add src, src, tmp sub n, n, tmp ptrue p0.b lsl vlen8, vlen, 3 subs n, n, vlen8 b.ls 3f ld1b_unroll8 add src, src, vlen8 subs n, n, vlen8 b.ls 2f .p2align 4 ...
arm64
gas-like
macro-heavy
bminor/glibc
sysdeps/aarch64/multiarch/memcpy_a64fx.S
LGPL-2.1
2642002380aafb71a1d3b569b6d7ebeab3284816
github
libc
https://github.com/bminor/glibc/blob/2642002380aafb71a1d3b569b6d7ebeab3284816/sysdeps/aarch64/multiarch/memcpy_a64fx.S
161
220
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_a64fx.S:6
ret .p2align 4 1: add srcend, src, n add dstend, dst, n ld1b z0.b, p0/z, [src, 0, mul vl] ld1b z1.b, p0/z, [src, 1, mul vl] ld1b z2.b, p0/z, [srcend, -2, mul vl] ld1b z3.b, p0/z, [srcend, -1, mul vl] cmp n, vlen, lsl 2 b.hi 1f st1b z0.b, p0, [dst, 0, mul vl] st1b z1.b, p0, [dst, 1, mul vl] st1b z2.b, p0, ...
arm64
gas-like
macro-heavy
bminor/glibc
sysdeps/aarch64/multiarch/memcpy_a64fx.S
LGPL-2.1
2642002380aafb71a1d3b569b6d7ebeab3284816
github
libc
https://github.com/bminor/glibc/blob/2642002380aafb71a1d3b569b6d7ebeab3284816/sysdeps/aarch64/multiarch/memcpy_a64fx.S
201
260
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_a64fx.S:7
SIZE_ARG (2) /* Fast case for up to 2 vectors. */ cntb vlen cmp n, vlen, lsl 1 b.hi 1f whilelo p0.b, xzr, n whilelo p1.b, vlen, n ld1b z0.b, p0/z, [src, 0, mul vl] ld1b z1.b, p1/z, [src, 1, mul vl] st1b z0.b, p0, [dstin, 0, mul vl] st1b z1.b, p1, [dstin, 1, mul vl] L(full_overlap): ret .p2align 4 /* Che...
arm64
gas-like
macro-heavy
bminor/glibc
sysdeps/aarch64/multiarch/memcpy_a64fx.S
LGPL-2.1
2642002380aafb71a1d3b569b6d7ebeab3284816
github
libc
https://github.com/bminor/glibc/blob/2642002380aafb71a1d3b569b6d7ebeab3284816/sysdeps/aarch64/multiarch/memcpy_a64fx.S
241
300
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_a64fx.S:8
ptrue p0.b lsl vlen8, vlen, 3 subs n, n, vlen8 b.ls 3f sub src, src, vlen8 ld1b_unroll8 subs n, n, vlen8 b.ls 2f .p2align 4 /* 8x unrolled and software pipelined backward copy loop. */ 1: sub src, src, vlen8 sub dst, dst, vlen8 stld1b_unroll8 subs n, n, vlen8 b.hi 1b 2: sub dst, dst, vlen8 st1b_unroll8 ...
arm64
gas-like
macro-heavy
bminor/glibc
sysdeps/aarch64/multiarch/memcpy_a64fx.S
LGPL-2.1
2642002380aafb71a1d3b569b6d7ebeab3284816
github
libc
https://github.com/bminor/glibc/blob/2642002380aafb71a1d3b569b6d7ebeab3284816/sysdeps/aarch64/multiarch/memcpy_a64fx.S
281
307
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_a64fx.S:1
/* Optimized memcpy 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/memcpy_a64fx.S
LGPL-2.1
dff8da6b3e89b986bb7f6b1ec18cf65d5972e307
github
libc
https://github.com/bminor/glibc/blob/dff8da6b3e89b986bb7f6b1ec18cf65d5972e307/sysdeps/aarch64/multiarch/memcpy_a64fx.S
1
60
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_a64fx.S:1
/* Optimized memcpy 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/memcpy_a64fx.S
LGPL-2.1
9fd3409842b3e2d31cff5dbd6f96066c430f0aa2
github
libc
https://github.com/bminor/glibc/blob/9fd3409842b3e2d31cff5dbd6f96066c430f0aa2/sysdeps/aarch64/multiarch/memcpy_a64fx.S
1
60
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_a64fx.S:1
/* Optimized memcpy 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/memcpy_a64fx.S
LGPL-2.1
6d7e8eda9b85b08f207a6dc6f187e94e4817270f
github
libc
https://github.com/bminor/glibc/blob/6d7e8eda9b85b08f207a6dc6f187e94e4817270f/sysdeps/aarch64/multiarch/memcpy_a64fx.S
1
60
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_a64fx.S:2
#if HAVE_AARCH64_SVE_ASM # if IS_IN (libc) # define MEMCPY __memcpy_a64fx # define MEMMOVE __memmove_a64fx .arch armv8.2-a+sve .macro ld1b_unroll8 ld1b z0.b, p0/z, [src, 0, mul vl] ld1b z1.b, p0/z, [src, 1, mul vl] ld1b z2.b, p0/z, [src, 2, mul vl] ld1b z3.b, p0/z, [src, 3, mul vl] ld1b z4.b, p0/z, [src, 4, ...
arm64
gas-like
macro-heavy
bminor/glibc
sysdeps/aarch64/multiarch/memcpy_a64fx.S
LGPL-2.1
6d7e8eda9b85b08f207a6dc6f187e94e4817270f
github
libc
https://github.com/bminor/glibc/blob/6d7e8eda9b85b08f207a6dc6f187e94e4817270f/sysdeps/aarch64/multiarch/memcpy_a64fx.S
41
100
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_a64fx.S:3
.macro stld1b_unroll8 stld1b_unroll4a stld1b_unroll4b .endm .macro st1b_unroll8 st1b z0.b, p0, [dst, 0, mul vl] st1b z1.b, p0, [dst, 1, mul vl] st1b z2.b, p0, [dst, 2, mul vl] st1b z3.b, p0, [dst, 3, mul vl] st1b z4.b, p0, [dst, 4, mul vl] st1b z5.b, p0, [dst, 5, mul vl] st1b z6.b, p0, [dst, 6, mul vl] st1...
arm64
gas-like
macro-heavy
bminor/glibc
sysdeps/aarch64/multiarch/memcpy_a64fx.S
LGPL-2.1
6d7e8eda9b85b08f207a6dc6f187e94e4817270f
github
libc
https://github.com/bminor/glibc/blob/6d7e8eda9b85b08f207a6dc6f187e94e4817270f/sysdeps/aarch64/multiarch/memcpy_a64fx.S
81
140
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_a64fx.S:4
b.hi L(copy_large) add dstend, dstin, n add srcend, src, n cmp n, vlen, lsl 2 b.hi 1f /* Copy 2-4 vectors. */ ptrue p0.b ld1b z0.b, p0/z, [src, 0, mul vl] ld1b z1.b, p0/z, [src, 1, mul vl] ld1b z2.b, p0/z, [srcend, -2, mul vl] ld1b z3.b, p0/z, [srcend, -1, mul vl] st1b z0.b, p0, [dstin, 0, mul vl] st1b z1...
arm64
gas-like
macro-heavy
bminor/glibc
sysdeps/aarch64/multiarch/memcpy_a64fx.S
LGPL-2.1
6d7e8eda9b85b08f207a6dc6f187e94e4817270f
github
libc
https://github.com/bminor/glibc/blob/6d7e8eda9b85b08f207a6dc6f187e94e4817270f/sysdeps/aarch64/multiarch/memcpy_a64fx.S
121
180
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_a64fx.S:5
/* At least 8 vectors - always align to vector length for higher and consistent write performance. */ L(copy_large): sub tmp, vlen, 1 and tmp, dstin, tmp sub tmp, vlen, tmp whilelo p1.b, xzr, tmp ld1b z1.b, p1/z, [src] st1b z1.b, p1, [dstin] add dst, dstin, tmp add src, src, tmp sub n, n, tmp ptrue p0.b ...
arm64
gas-like
macro-heavy
bminor/glibc
sysdeps/aarch64/multiarch/memcpy_a64fx.S
LGPL-2.1
6d7e8eda9b85b08f207a6dc6f187e94e4817270f
github
libc
https://github.com/bminor/glibc/blob/6d7e8eda9b85b08f207a6dc6f187e94e4817270f/sysdeps/aarch64/multiarch/memcpy_a64fx.S
161
220
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_a64fx.S:6
ld1b z1.b, p1/z, [src, 1, mul vl] st1b z0.b, p0, [dst, 0, mul vl] st1b z1.b, p1, [dst, 1, mul vl] ret .p2align 4 1: add srcend, src, n add dstend, dst, n ld1b z0.b, p0/z, [src, 0, mul vl] ld1b z1.b, p0/z, [src, 1, mul vl] ld1b z2.b, p0/z, [srcend, -2, mul vl] ld1b z3.b, p0/z, [srcend, -1, mul vl] cmp n, vle...
arm64
gas-like
macro-heavy
bminor/glibc
sysdeps/aarch64/multiarch/memcpy_a64fx.S
LGPL-2.1
6d7e8eda9b85b08f207a6dc6f187e94e4817270f
github
libc
https://github.com/bminor/glibc/blob/6d7e8eda9b85b08f207a6dc6f187e94e4817270f/sysdeps/aarch64/multiarch/memcpy_a64fx.S
201
260
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_a64fx.S:7
ENTRY_ALIGN (MEMMOVE, 4) PTR_ARG (0) PTR_ARG (1) SIZE_ARG (2) /* Fast case for up to 2 vectors. */ cntb vlen cmp n, vlen, lsl 1 b.hi 1f whilelo p0.b, xzr, n whilelo p1.b, vlen, n ld1b z0.b, p0/z, [src, 0, mul vl] ld1b z1.b, p1/z, [src, 1, mul vl] st1b z0.b, p0, [dstin, 0, mul vl] st1b z1.b, p1, [dstin, ...
arm64
gas-like
macro-heavy
bminor/glibc
sysdeps/aarch64/multiarch/memcpy_a64fx.S
LGPL-2.1
6d7e8eda9b85b08f207a6dc6f187e94e4817270f
github
libc
https://github.com/bminor/glibc/blob/6d7e8eda9b85b08f207a6dc6f187e94e4817270f/sysdeps/aarch64/multiarch/memcpy_a64fx.S
241
300
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_a64fx.S:8
st1b z1.b, p1, [dstin, n] add src, src, n add dst, dstin, n ptrue p0.b lsl vlen8, vlen, 3 subs n, n, vlen8 b.ls 3f sub src, src, vlen8 ld1b_unroll8 subs n, n, vlen8 b.ls 2f .p2align 4 /* 8x unrolled and software pipelined backward copy loop. */ 1: sub src, src, vlen8 sub dst, dst, vlen8 stld1b_unroll8 ...
arm64
gas-like
macro-heavy
bminor/glibc
sysdeps/aarch64/multiarch/memcpy_a64fx.S
LGPL-2.1
6d7e8eda9b85b08f207a6dc6f187e94e4817270f
github
libc
https://github.com/bminor/glibc/blob/6d7e8eda9b85b08f207a6dc6f187e94e4817270f/sysdeps/aarch64/multiarch/memcpy_a64fx.S
281
313
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_a64fx.S:1
/* Optimized memcpy 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/memcpy_a64fx.S
LGPL-2.1
581c785bf31bc74430320c7856bbfa3875d025fe
github
libc
https://github.com/bminor/glibc/blob/581c785bf31bc74430320c7856bbfa3875d025fe/sysdeps/aarch64/multiarch/memcpy_a64fx.S
1
60
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_a64fx.S:1
/* Optimized memcpy 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/memcpy_a64fx.S
LGPL-2.1
b31bd11454fade731e5158b1aea40b133ae19926
github
libc
https://github.com/bminor/glibc/blob/b31bd11454fade731e5158b1aea40b133ae19926/sysdeps/aarch64/multiarch/memcpy_a64fx.S
1
60
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_a64fx.S:1
/* Optimized memcpy 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/memcpy_a64fx.S
LGPL-2.1
381b29616abb82babc8163bdf516c6da87544b35
github
libc
https://github.com/bminor/glibc/blob/381b29616abb82babc8163bdf516c6da87544b35/sysdeps/aarch64/multiarch/memcpy_a64fx.S
1
60
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_a64fx.S:2
#define dest_ptr x7 #define src_ptr x8 #define vector_length x9 #define cl_remainder x10 // CACHE_LINE_SIZE remainder #if HAVE_AARCH64_SVE_ASM # if IS_IN (libc) # define MEMCPY __memcpy_a64fx # define MEMMOVE __memmove_a64fx .arch armv8.2-a+sve .macro dc_zva times dc zva, tmp1 add tmp1, tmp1, CACHE_LINE_SIZE ...
arm64
gas-like
macro-heavy
bminor/glibc
sysdeps/aarch64/multiarch/memcpy_a64fx.S
LGPL-2.1
381b29616abb82babc8163bdf516c6da87544b35
github
libc
https://github.com/bminor/glibc/blob/381b29616abb82babc8163bdf516c6da87544b35/sysdeps/aarch64/multiarch/memcpy_a64fx.S
41
100
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_a64fx.S:3
.endm .macro stld1b_unroll4b st1b z4.b, p0, [dest_ptr, #4, mul vl] st1b z5.b, p0, [dest_ptr, #5, mul vl] ld1b z4.b, p0/z, [src_ptr, #4, mul vl] ld1b z5.b, p0/z, [src_ptr, #5, mul vl] st1b z6.b, p0, [dest_ptr, #6, mul vl] st1b z7.b, p0, [dest_ptr, #7, mul vl] ld1b z6.b, p0/z, [src_ptr, #6, mul vl] l...
arm64
gas-like
macro-heavy
bminor/glibc
sysdeps/aarch64/multiarch/memcpy_a64fx.S
LGPL-2.1
381b29616abb82babc8163bdf516c6da87544b35
github
libc
https://github.com/bminor/glibc/blob/381b29616abb82babc8163bdf516c6da87544b35/sysdeps/aarch64/multiarch/memcpy_a64fx.S
81
140
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_a64fx.S:4
cmp n, vector_length, lsl 3 // vector_length * 8 b.hi \exit // if rest <= vector_length * 4 lsl tmp1, vector_length, 1 // vector_length * 2 whilelo p2.b, tmp1, n incb tmp1 whilelo p3.b, tmp1, n b.last 1f ld1b z0.b, p0/z, [src, #0, mul vl] ld1b z1.b, p1/z, [src, #1, mul vl] ld1b z2.b, p2/z, [src, #2, mul vl] ...
arm64
gas-like
macro-heavy
bminor/glibc
sysdeps/aarch64/multiarch/memcpy_a64fx.S
LGPL-2.1
381b29616abb82babc8163bdf516c6da87544b35
github
libc
https://github.com/bminor/glibc/blob/381b29616abb82babc8163bdf516c6da87544b35/sysdeps/aarch64/multiarch/memcpy_a64fx.S
121
180
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_a64fx.S:5
incb tmp1 whilelo p7.b, tmp1, n ld1b z0.b, p0/z, [src, #0, mul vl] ld1b z1.b, p1/z, [src, #1, mul vl] ld1b z2.b, p2/z, [src, #2, mul vl] ld1b z3.b, p3/z, [src, #3, mul vl] ld1b z4.b, p4/z, [src, #4, mul vl] ld1b z5.b, p5/z, [src, #5, mul vl] ld1b z6.b, p6/z, [src, #6, mul vl] ld1b z7.b, p7/z, [src, #7, mul vl]...
arm64
gas-like
macro-heavy
bminor/glibc
sysdeps/aarch64/multiarch/memcpy_a64fx.S
LGPL-2.1
381b29616abb82babc8163bdf516c6da87544b35
github
libc
https://github.com/bminor/glibc/blob/381b29616abb82babc8163bdf516c6da87544b35/sysdeps/aarch64/multiarch/memcpy_a64fx.S
161
220
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_a64fx.S:6
cmp rest, L2_SIZE ccmp vector_length, tmp1, 0, cs b.eq L(L2) L(unroll8): // unrolling and software pipeline lsl tmp1, vector_length, 3 // vector_length * 8 .p2align 3 cmp rest, tmp1 b.cc L(last) ld1b_unroll8 add src_ptr, src_ptr, tmp1 sub rest, rest, tmp1 cmp rest, tmp1 b.cc 2f .p2align 3 1: stld1b_unroll...
arm64
gas-like
macro-heavy
bminor/glibc
sysdeps/aarch64/multiarch/memcpy_a64fx.S
LGPL-2.1
381b29616abb82babc8163bdf516c6da87544b35
github
libc
https://github.com/bminor/glibc/blob/381b29616abb82babc8163bdf516c6da87544b35/sysdeps/aarch64/multiarch/memcpy_a64fx.S
201
260
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_a64fx.S:7
ld1b z1.b, p1/z, [src_ptr, #1, mul vl] ld1b z2.b, p2/z, [src_ptr, #2, mul vl] ld1b z3.b, p3/z, [src_ptr, #3, mul vl] st1b z0.b, p0, [dest_ptr, #0, mul vl] st1b z1.b, p1, [dest_ptr, #1, mul vl] st1b z2.b, p2, [dest_ptr, #2, mul vl] st1b z3.b, p3, [dest_ptr, #3, mul vl] ret 1: lsl tmp1, vector_length, 2 // vector_...
arm64
gas-like
macro-heavy
bminor/glibc
sysdeps/aarch64/multiarch/memcpy_a64fx.S
LGPL-2.1
381b29616abb82babc8163bdf516c6da87544b35
github
libc
https://github.com/bminor/glibc/blob/381b29616abb82babc8163bdf516c6da87544b35/sysdeps/aarch64/multiarch/memcpy_a64fx.S
241
300
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_a64fx.S:8
sub cl_remainder, tmp1, tmp2 // process remainder until the first CACHE_LINE_SIZE boundary whilelo p1.b, xzr, cl_remainder // keep p0.b all true whilelo p2.b, vector_length, cl_remainder b.last 1f ld1b z1.b, p1/z, [src_ptr, #0, mul vl] ld1b z2.b, p2/z, [src_ptr, #1, mul vl] st1b z1.b, p1, [dest_ptr, #0, mul vl] ...
arm64
gas-like
macro-heavy
bminor/glibc
sysdeps/aarch64/multiarch/memcpy_a64fx.S
LGPL-2.1
381b29616abb82babc8163bdf516c6da87544b35
github
libc
https://github.com/bminor/glibc/blob/381b29616abb82babc8163bdf516c6da87544b35/sysdeps/aarch64/multiarch/memcpy_a64fx.S
281
340
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_a64fx.S:9
add src_ptr, src_ptr, CACHE_LINE_SIZE * 2 sub rest, rest, CACHE_LINE_SIZE * 2 mov tmp1, ZF_DIST .p2align 3 1: stld1b_unroll4a add tmp2, dest_ptr, tmp1 // dest_ptr + ZF_DIST dc zva, tmp2 stld1b_unroll4b add tmp2, tmp2, CACHE_LINE_SIZE dc zva, tmp2 add dest_ptr, dest_ptr, CACHE_LINE_SIZE * 2 add src_ptr, src...
arm64
gas-like
macro-heavy
bminor/glibc
sysdeps/aarch64/multiarch/memcpy_a64fx.S
LGPL-2.1
381b29616abb82babc8163bdf516c6da87544b35
github
libc
https://github.com/bminor/glibc/blob/381b29616abb82babc8163bdf516c6da87544b35/sysdeps/aarch64/multiarch/memcpy_a64fx.S
321
380
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_a64fx.S:10
// gives a free ptrue to p0.b for n >= vector_length // tmp2 and tmp3 should not be used in this macro to keep // notag addresses shortcut_for_small_size L(dispatch) // end of shortcut L(dispatch): // tmp2 = dest_notag, tmp3 = src_notag // diff = dest_notag - src_notag sub tmp1, tmp2, tmp3 // if diff <= 0 || d...
arm64
gas-like
macro-heavy
bminor/glibc
sysdeps/aarch64/multiarch/memcpy_a64fx.S
LGPL-2.1
381b29616abb82babc8163bdf516c6da87544b35
github
libc
https://github.com/bminor/glibc/blob/381b29616abb82babc8163bdf516c6da87544b35/sysdeps/aarch64/multiarch/memcpy_a64fx.S
361
409
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_a64fx.S:1
/* Optimized memcpy 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/memcpy_a64fx.S
LGPL-2.1
fa527f345cbbe852ec085932fbea979956c195b5
github
libc
https://github.com/bminor/glibc/blob/fa527f345cbbe852ec085932fbea979956c195b5/sysdeps/aarch64/multiarch/memcpy_a64fx.S
1
60
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_a64fx.S:2
#define cl_remainder x10 // CACHE_LINE_SIZE remainder #if HAVE_AARCH64_SVE_ASM # if IS_IN (libc) # define MEMCPY __memcpy_a64fx # define MEMMOVE __memmove_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 ld1b_u...
arm64
gas-like
macro-heavy
bminor/glibc
sysdeps/aarch64/multiarch/memcpy_a64fx.S
LGPL-2.1
fa527f345cbbe852ec085932fbea979956c195b5
github
libc
https://github.com/bminor/glibc/blob/fa527f345cbbe852ec085932fbea979956c195b5/sysdeps/aarch64/multiarch/memcpy_a64fx.S
41
100
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_a64fx.S:3
st1b z4.b, p0, [dest_ptr, #4, mul vl] st1b z5.b, p0, [dest_ptr, #5, mul vl] ld1b z4.b, p0/z, [src_ptr, #4, mul vl] ld1b z5.b, p0/z, [src_ptr, #5, mul vl] st1b z6.b, p0, [dest_ptr, #6, mul vl] st1b z7.b, p0, [dest_ptr, #7, mul vl] ld1b z6.b, p0/z, [src_ptr, #6, mul vl] ld1b z7.b, p0/z, [src_ptr, #7, m...
arm64
gas-like
macro-heavy
bminor/glibc
sysdeps/aarch64/multiarch/memcpy_a64fx.S
LGPL-2.1
fa527f345cbbe852ec085932fbea979956c195b5
github
libc
https://github.com/bminor/glibc/blob/fa527f345cbbe852ec085932fbea979956c195b5/sysdeps/aarch64/multiarch/memcpy_a64fx.S
81
140
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_a64fx.S:4
lsl tmp1, vector_length, 1 // vector_length * 2 whilelo p2.b, tmp1, n incb tmp1 whilelo p3.b, tmp1, n b.last 1f ld1b z0.b, p0/z, [src, #0, mul vl] ld1b z1.b, p1/z, [src, #1, mul vl] ld1b z2.b, p2/z, [src, #2, mul vl] ld1b z3.b, p3/z, [src, #3, mul vl] st1b z0.b, p0, [dest, #0, mul vl] st1b z1.b, p1, [dest, #...
arm64
gas-like
macro-heavy
bminor/glibc
sysdeps/aarch64/multiarch/memcpy_a64fx.S
LGPL-2.1
fa527f345cbbe852ec085932fbea979956c195b5
github
libc
https://github.com/bminor/glibc/blob/fa527f345cbbe852ec085932fbea979956c195b5/sysdeps/aarch64/multiarch/memcpy_a64fx.S
121
180
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_a64fx.S:5
ld1b z1.b, p1/z, [src, #1, mul vl] ld1b z2.b, p2/z, [src, #2, mul vl] ld1b z3.b, p3/z, [src, #3, mul vl] ld1b z4.b, p4/z, [src, #4, mul vl] ld1b z5.b, p5/z, [src, #5, mul vl] ld1b z6.b, p6/z, [src, #6, mul vl] ld1b z7.b, p7/z, [src, #7, mul vl] st1b z0.b, p0, [dest, #0, mul vl] st1b z1.b, p1, [dest, #1, mul vl]...
arm64
gas-like
macro-heavy
bminor/glibc
sysdeps/aarch64/multiarch/memcpy_a64fx.S
LGPL-2.1
fa527f345cbbe852ec085932fbea979956c195b5
github
libc
https://github.com/bminor/glibc/blob/fa527f345cbbe852ec085932fbea979956c195b5/sysdeps/aarch64/multiarch/memcpy_a64fx.S
161
220
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_a64fx.S:6
L(unroll8): // unrolling and software pipeline lsl tmp1, vector_length, 3 // vector_length * 8 .p2align 3 cmp rest, tmp1 b.cc L(last) ld1b_unroll8 add src_ptr, src_ptr, tmp1 sub rest, rest, tmp1 cmp rest, tmp1 b.cc 2f .p2align 3 1: stld1b_unroll8 add dest_ptr, dest_ptr, tmp1 add src_ptr, src_ptr, tmp1 sub...
arm64
gas-like
macro-heavy
bminor/glibc
sysdeps/aarch64/multiarch/memcpy_a64fx.S
LGPL-2.1
fa527f345cbbe852ec085932fbea979956c195b5
github
libc
https://github.com/bminor/glibc/blob/fa527f345cbbe852ec085932fbea979956c195b5/sysdeps/aarch64/multiarch/memcpy_a64fx.S
201
260
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_a64fx.S:7
st1b z0.b, p0, [dest_ptr, #0, mul vl] st1b z1.b, p1, [dest_ptr, #1, mul vl] st1b z2.b, p2, [dest_ptr, #2, mul vl] st1b z3.b, p3, [dest_ptr, #3, mul vl] ret 1: lsl tmp1, vector_length, 2 // vector_length * 4 whilelo p4.b, tmp1, rest incb tmp1 whilelo p5.b, tmp1, rest incb tmp1 whilelo p6.b, tmp1, rest incb tmp...
arm64
gas-like
macro-heavy
bminor/glibc
sysdeps/aarch64/multiarch/memcpy_a64fx.S
LGPL-2.1
fa527f345cbbe852ec085932fbea979956c195b5
github
libc
https://github.com/bminor/glibc/blob/fa527f345cbbe852ec085932fbea979956c195b5/sysdeps/aarch64/multiarch/memcpy_a64fx.S
241
300
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_a64fx.S:8
whilelo p2.b, vector_length, cl_remainder b.last 1f ld1b z1.b, p1/z, [src_ptr, #0, mul vl] ld1b z2.b, p2/z, [src_ptr, #1, mul vl] st1b z1.b, p1, [dest_ptr, #0, mul vl] st1b z2.b, p2, [dest_ptr, #1, mul vl] b 2f 1: lsl tmp1, vector_length, 1 // vector_length * 2 whilelo p3.b, tmp1, cl_remainder incb tmp1 whilel...
arm64
gas-like
macro-heavy
bminor/glibc
sysdeps/aarch64/multiarch/memcpy_a64fx.S
LGPL-2.1
fa527f345cbbe852ec085932fbea979956c195b5
github
libc
https://github.com/bminor/glibc/blob/fa527f345cbbe852ec085932fbea979956c195b5/sysdeps/aarch64/multiarch/memcpy_a64fx.S
281
340
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_a64fx.S:9
.p2align 3 1: stld1b_unroll4a add tmp2, dest_ptr, tmp1 // dest_ptr + ZF_DIST dc zva, tmp2 stld1b_unroll4b add tmp2, tmp2, CACHE_LINE_SIZE dc zva, tmp2 add dest_ptr, dest_ptr, CACHE_LINE_SIZE * 2 add src_ptr, src_ptr, CACHE_LINE_SIZE * 2 sub rest, rest, CACHE_LINE_SIZE * 2 cmp rest, tmp3 // ZF_DIST + CACHE_LINE...
arm64
gas-like
macro-heavy
bminor/glibc
sysdeps/aarch64/multiarch/memcpy_a64fx.S
LGPL-2.1
fa527f345cbbe852ec085932fbea979956c195b5
github
libc
https://github.com/bminor/glibc/blob/fa527f345cbbe852ec085932fbea979956c195b5/sysdeps/aarch64/multiarch/memcpy_a64fx.S
321
380
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_a64fx.S:10
shortcut_for_small_size L(dispatch) // end of shortcut L(dispatch): // tmp2 = dest_notag, tmp3 = src_notag // diff = dest_notag - src_notag sub tmp1, tmp2, tmp3 // if diff <= 0 || diff >= n then memcpy cmp tmp1, 0 ccmp tmp1, n, 2, gt b.cs L(vl_agnostic) L(bwd_start): mov rest, n add dest_ptr, dest, n // des...
arm64
gas-like
macro-heavy
bminor/glibc
sysdeps/aarch64/multiarch/memcpy_a64fx.S
LGPL-2.1
fa527f345cbbe852ec085932fbea979956c195b5
github
libc
https://github.com/bminor/glibc/blob/fa527f345cbbe852ec085932fbea979956c195b5/sysdeps/aarch64/multiarch/memcpy_a64fx.S
361
406
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_advsimd.S:1
/* Generic optimized memcpy using SIMD. 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 published by the Free Software ...
arm64
gas-like
handwritten
bminor/glibc
sysdeps/aarch64/multiarch/memcpy_advsimd.S
LGPL-2.1
581c785bf31bc74430320c7856bbfa3875d025fe
github
libc
https://github.com/bminor/glibc/blob/581c785bf31bc74430320c7856bbfa3875d025fe/sysdeps/aarch64/multiarch/memcpy_advsimd.S
1
60
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_advsimd.S:2
#define tmp1 x14 #define A_q q0 #define B_q q1 #define C_q q2 #define D_q q3 #define E_q q4 #define F_q q5 #define G_q q6 #define H_q q7 /* This implementation supports both memcpy and memmove and shares most code. It uses unaligned accesses and branchless sequences to keep the code small, simple and improve p...
arm64
gas-like
handwritten
bminor/glibc
sysdeps/aarch64/multiarch/memcpy_advsimd.S
LGPL-2.1
581c785bf31bc74430320c7856bbfa3875d025fe
github
libc
https://github.com/bminor/glibc/blob/581c785bf31bc74430320c7856bbfa3875d025fe/sysdeps/aarch64/multiarch/memcpy_advsimd.S
41
100
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_advsimd.S:3
ldr A_q, [src] ldr B_q, [srcend, -16] str A_q, [dstin] str B_q, [dstend, -16] ret /* Copy 8-15 bytes. */ L(copy16): tbz count, 3, L(copy8) ldr A_l, [src] ldr A_h, [srcend, -8] str A_l, [dstin] str A_h, [dstend, -8] ret /* Copy 4-7 bytes. */ L(copy8): tbz count, 2, L(copy4) ldr A_lw, [src] ldr B_lw, [...
arm64
gas-like
handwritten
bminor/glibc
sysdeps/aarch64/multiarch/memcpy_advsimd.S
LGPL-2.1
581c785bf31bc74430320c7856bbfa3875d025fe
github
libc
https://github.com/bminor/glibc/blob/581c785bf31bc74430320c7856bbfa3875d025fe/sysdeps/aarch64/multiarch/memcpy_advsimd.S
81
140
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_advsimd.S:4
ldp A_q, B_q, [src] ldp C_q, D_q, [srcend, -32] cmp count, 64 b.hi L(copy128) stp A_q, B_q, [dstin] stp C_q, D_q, [dstend, -32] ret .p2align 4 /* Copy 65..128 bytes. */ L(copy128): ldp E_q, F_q, [src, 32] cmp count, 96 b.ls L(copy96) ldp G_q, H_q, [srcend, -64] stp G_q, H_q, [dstend, -64] L(copy96): stp...
arm64
gas-like
handwritten
bminor/glibc
sysdeps/aarch64/multiarch/memcpy_advsimd.S
LGPL-2.1
581c785bf31bc74430320c7856bbfa3875d025fe
github
libc
https://github.com/bminor/glibc/blob/581c785bf31bc74430320c7856bbfa3875d025fe/sysdeps/aarch64/multiarch/memcpy_advsimd.S
121
180
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_advsimd.S:5
ldp A_q, B_q, [src, 80] stp C_q, D_q, [dst, 48] ldp C_q, D_q, [src, 112] add src, src, 64 add dst, dst, 64 subs count, count, 64 b.hi L(loop64) /* Write the last iteration and copy 64 bytes from the end. */ L(copy64_from_end): ldp E_q, F_q, [srcend, -64] stp A_q, B_q, [dst, 16] ldp A_q, B_q, [srcend, -32] ...
arm64
gas-like
handwritten
bminor/glibc
sysdeps/aarch64/multiarch/memcpy_advsimd.S
LGPL-2.1
581c785bf31bc74430320c7856bbfa3875d025fe
github
libc
https://github.com/bminor/glibc/blob/581c785bf31bc74430320c7856bbfa3875d025fe/sysdeps/aarch64/multiarch/memcpy_advsimd.S
161
220
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_advsimd.S:6
str B_q, [dstend, -16] ret L(move_long): /* Only use backward copy if there is an overlap. */ sub tmp1, dstin, src cbz tmp1, L(move0) cmp tmp1, count b.hs L(copy_long) /* Large backwards copy for overlapping copies. Copy 16 bytes and then align srcend to 16-byte alignment. */ L(copy_long_backwards): ldr...
arm64
gas-like
handwritten
bminor/glibc
sysdeps/aarch64/multiarch/memcpy_advsimd.S
LGPL-2.1
581c785bf31bc74430320c7856bbfa3875d025fe
github
libc
https://github.com/bminor/glibc/blob/581c785bf31bc74430320c7856bbfa3875d025fe/sysdeps/aarch64/multiarch/memcpy_advsimd.S
201
248
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_advsimd.S:1
/* Generic optimized memcpy using SIMD. 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 published by the Free Software ...
arm64
gas-like
handwritten
bminor/glibc
sysdeps/aarch64/multiarch/memcpy_advsimd.S
LGPL-2.1
2b778ceb4010c28d70de9b8eab20e8d88eed586b
github
libc
https://github.com/bminor/glibc/blob/2b778ceb4010c28d70de9b8eab20e8d88eed586b/sysdeps/aarch64/multiarch/memcpy_advsimd.S
1
60
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_advsimd.S:1
/* Generic optimized memcpy using SIMD. 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 by the Free Software Found...
arm64
gas-like
handwritten
bminor/glibc
sysdeps/aarch64/multiarch/memcpy_advsimd.S
LGPL-2.1
45b1e17e9150dbd9ac2d578579063fbfa8e1b327
github
libc
https://github.com/bminor/glibc/blob/45b1e17e9150dbd9ac2d578579063fbfa8e1b327/sysdeps/aarch64/multiarch/memcpy_advsimd.S
1
60
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_advsimd.S:2
#define tmp1 x14 #define A_q q0 #define B_q q1 #define C_q q2 #define D_q q3 #define E_q q4 #define F_q q5 #define G_q q6 #define H_q q7 /* This implementation supports both memcpy and memmove and shares most code. It uses unaligned accesses and branchless sequences to keep the code small, simple and improve p...
arm64
gas-like
handwritten
bminor/glibc
sysdeps/aarch64/multiarch/memcpy_advsimd.S
LGPL-2.1
bd394d131c10c9ec22c6424197b79410042eed99
github
libc
https://github.com/bminor/glibc/blob/bd394d131c10c9ec22c6424197b79410042eed99/sysdeps/aarch64/multiarch/memcpy_advsimd.S
41
100
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_advsimd.S:5
ldp A_q, B_q, [src, 80] stp C_q, D_q, [dst, 48] ldp C_q, D_q, [src, 112] add src, src, 64 add dst, dst, 64 subs count, count, 64 b.hi L(loop64) /* Write the last iteration and copy 64 bytes from the end. */ L(copy64_from_end): ldp E_q, F_q, [srcend, -64] stp A_q, B_q, [dst, 16] ldp A_q, B_q, [srcend, -32] ...
arm64
gas-like
handwritten
bminor/glibc
sysdeps/aarch64/multiarch/memcpy_advsimd.S
LGPL-2.1
bd394d131c10c9ec22c6424197b79410042eed99
github
libc
https://github.com/bminor/glibc/blob/bd394d131c10c9ec22c6424197b79410042eed99/sysdeps/aarch64/multiarch/memcpy_advsimd.S
161
220
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_advsimd.S:6
str B_q, [dstend, -16] ret L(move_long): /* Only use backward copy if there is an overlap. */ sub tmp1, dstin, src cbz tmp1, L(move0) cmp tmp1, count b.hs L(copy_long) /* Large backwards copy for overlapping copies. Copy 16 bytes and then align srcend to 16-byte alignment. */ L(copy_long_backwards): ldr...
arm64
gas-like
handwritten
bminor/glibc
sysdeps/aarch64/multiarch/memcpy_advsimd.S
LGPL-2.1
4a733bf375238a6a595033b5785cea7f27d61307
github
libc
https://github.com/bminor/glibc/blob/4a733bf375238a6a595033b5785cea7f27d61307/sysdeps/aarch64/multiarch/memcpy_advsimd.S
201
247
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_falkor.S:1
/* Optimized memcpy for Qualcomm Falkor processor. Copyright (C) 2017-2023 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Fre...
arm64
gas-like
handwritten
bminor/glibc
sysdeps/aarch64/multiarch/memcpy_falkor.S
LGPL-2.1
9fd3409842b3e2d31cff5dbd6f96066c430f0aa2
github
libc
https://github.com/bminor/glibc/blob/9fd3409842b3e2d31cff5dbd6f96066c430f0aa2/sysdeps/aarch64/multiarch/memcpy_falkor.S
1
60
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_falkor.S:2
#define D_q q3 #define E_q q4 #define F_q q5 #define G_q q6 #define H_q q7 #define Q_q q6 #define S_q q22 /* Copies are split into 3 main cases: 1. Small copies of up to 32 bytes 2. Medium copies of 33..128 bytes which are fully unrolled 3. Large copies of more than 128 bytes. Large copies align the sour...
arm64
gas-like
handwritten
bminor/glibc
sysdeps/aarch64/multiarch/memcpy_falkor.S
LGPL-2.1
9fd3409842b3e2d31cff5dbd6f96066c430f0aa2
github
libc
https://github.com/bminor/glibc/blob/9fd3409842b3e2d31cff5dbd6f96066c430f0aa2/sysdeps/aarch64/multiarch/memcpy_falkor.S
41
100
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_falkor.S:3
add srcend, src, count add dstend, dstin, count b.ls L(copy32) cmp count, 128 b.hi L(copy_long) /* Medium copies: 33..128 bytes. */ L(copy128): sub tmp1, count, 1 ldr A_q, [src] ldr B_q, [src, 16] ldr C_q, [srcend, -32] ldr D_q, [srcend, -16] tbz tmp1, 6, 1f ldr E_q, [src, 32] ldr F_q, [src, 48] ldr G_q...
arm64
gas-like
handwritten
bminor/glibc
sysdeps/aarch64/multiarch/memcpy_falkor.S
LGPL-2.1
9fd3409842b3e2d31cff5dbd6f96066c430f0aa2
github
libc
https://github.com/bminor/glibc/blob/9fd3409842b3e2d31cff5dbd6f96066c430f0aa2/sysdeps/aarch64/multiarch/memcpy_falkor.S
81
140
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_falkor.S:4
.p2align 4 1: /* 8-15 */ tbz count, 3, 1f ldr A_x, [src] ldr B_x, [srcend, -8] str A_x, [dstin] str B_x, [dstend, -8] ret .p2align 4 1: /* 4-7 */ tbz count, 2, 1f ldr A_w, [src] ldr B_w, [srcend, -4] str A_w, [dstin] str B_w, [dstend, -4] ret .p2align 4 1: /* 2-3 */ tbz count, 1, 1f ldrh A_w, [src] ...
arm64
gas-like
handwritten
bminor/glibc
sysdeps/aarch64/multiarch/memcpy_falkor.S
LGPL-2.1
9fd3409842b3e2d31cff5dbd6f96066c430f0aa2
github
libc
https://github.com/bminor/glibc/blob/9fd3409842b3e2d31cff5dbd6f96066c430f0aa2/sysdeps/aarch64/multiarch/memcpy_falkor.S
121
180
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_falkor.S:5
off the last 64 bytes to copy off from the end. Due to this the loop never runs out of bounds. */ .p2align 4 nop /* Align loop64 below. */ L(copy_long): ldr A_q, [src] sub count, count, 64 + 16 and tmp1, src, 15 str A_q, [dstin] bic src, src, 15 sub dst, dstin, tmp1 add count, count, tmp1 L(loop64): ...
arm64
gas-like
handwritten
bminor/glibc
sysdeps/aarch64/multiarch/memcpy_falkor.S
LGPL-2.1
9fd3409842b3e2d31cff5dbd6f96066c430f0aa2
github
libc
https://github.com/bminor/glibc/blob/9fd3409842b3e2d31cff5dbd6f96066c430f0aa2/sysdeps/aarch64/multiarch/memcpy_falkor.S
161
220
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_falkor.S:6
/* RATIONALE: The move has 4 distinct parts: * Small moves of 32 bytes and under. * Medium sized moves of 33-128 bytes (fully unrolled). * Large moves where the source address is higher than the destination (forward copies) * Large moves where the destination address is higher than the source ...
arm64
gas-like
handwritten
bminor/glibc
sysdeps/aarch64/multiarch/memcpy_falkor.S
LGPL-2.1
9fd3409842b3e2d31cff5dbd6f96066c430f0aa2
github
libc
https://github.com/bminor/glibc/blob/9fd3409842b3e2d31cff5dbd6f96066c430f0aa2/sysdeps/aarch64/multiarch/memcpy_falkor.S
201
260
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_falkor.S:7
ldr S_q, [src] and tmp1, src, 15 bic src, src, 15 sub dst, dstin, tmp1 add count, count, tmp1 /* Count is now 16 too large. */ ldr Q_q, [src, 16]! str S_q, [dstin] ldr S_q, [src, 16]! sub count, count, 32 + 32 + 16 /* Test and readjust count. */ .p2align 4 1: subs count, count, 32 str Q_q, [dst, 16] ldr ...
arm64
gas-like
handwritten
bminor/glibc
sysdeps/aarch64/multiarch/memcpy_falkor.S
LGPL-2.1
9fd3409842b3e2d31cff5dbd6f96066c430f0aa2
github
libc
https://github.com/bminor/glibc/blob/9fd3409842b3e2d31cff5dbd6f96066c430f0aa2/sysdeps/aarch64/multiarch/memcpy_falkor.S
241
300
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_falkor.S:8
L(move_long): cbz tmp1, 3f /* Return early if src == dstin */ ldr S_q, [srcend, -16] and tmp1, srcend, 15 sub srcend, srcend, tmp1 ldr Q_q, [srcend, -16]! str S_q, [dstend, -16] sub count, count, tmp1 ldr S_q, [srcend, -16]! sub dstend, dstend, tmp1 sub count, count, 32 + 32 1: subs count, count, 32 str Q...
arm64
gas-like
handwritten
bminor/glibc
sysdeps/aarch64/multiarch/memcpy_falkor.S
LGPL-2.1
9fd3409842b3e2d31cff5dbd6f96066c430f0aa2
github
libc
https://github.com/bminor/glibc/blob/9fd3409842b3e2d31cff5dbd6f96066c430f0aa2/sysdeps/aarch64/multiarch/memcpy_falkor.S
281
313
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_falkor.S:2
#define D_q q3 #define E_q q4 #define F_q q5 #define G_q q6 #define H_q q7 #define Q_q q6 #define S_q q22 /* Copies are split into 3 main cases: 1. Small copies of up to 32 bytes 2. Medium copies of 33..128 bytes which are fully unrolled 3. Large copies of more than 128 bytes. Large copies align the sour...
arm64
gas-like
handwritten
bminor/glibc
sysdeps/aarch64/multiarch/memcpy_falkor.S
LGPL-2.1
6d7e8eda9b85b08f207a6dc6f187e94e4817270f
github
libc
https://github.com/bminor/glibc/blob/6d7e8eda9b85b08f207a6dc6f187e94e4817270f/sysdeps/aarch64/multiarch/memcpy_falkor.S
41
100
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_falkor.S:5
off the last 64 bytes to copy off from the end. Due to this the loop never runs out of bounds. */ .p2align 4 nop /* Align loop64 below. */ L(copy_long): ldr A_q, [src] sub count, count, 64 + 16 and tmp1, src, 15 str A_q, [dstin] bic src, src, 15 sub dst, dstin, tmp1 add count, count, tmp1 L(loop64): ...
arm64
gas-like
handwritten
bminor/glibc
sysdeps/aarch64/multiarch/memcpy_falkor.S
LGPL-2.1
6d7e8eda9b85b08f207a6dc6f187e94e4817270f
github
libc
https://github.com/bminor/glibc/blob/6d7e8eda9b85b08f207a6dc6f187e94e4817270f/sysdeps/aarch64/multiarch/memcpy_falkor.S
161
220
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_falkor.S:6
libc_hidden_builtin_def (__memcpy_falkor) /* RATIONALE: The move has 4 distinct parts: * Small moves of 32 bytes and under. * Medium sized moves of 33-128 bytes (fully unrolled). * Large moves where the source address is higher than the destination (forward copies) * Large moves where the destina...
arm64
gas-like
handwritten
bminor/glibc
sysdeps/aarch64/multiarch/memcpy_falkor.S
LGPL-2.1
6d7e8eda9b85b08f207a6dc6f187e94e4817270f
github
libc
https://github.com/bminor/glibc/blob/6d7e8eda9b85b08f207a6dc6f187e94e4817270f/sysdeps/aarch64/multiarch/memcpy_falkor.S
201
260
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_falkor.S:8
nop L(move_long): cbz tmp1, 3f /* Return early if src == dstin */ ldr S_q, [srcend, -16] and tmp1, srcend, 15 sub srcend, srcend, tmp1 ldr Q_q, [srcend, -16]! str S_q, [dstend, -16] sub count, count, tmp1 ldr S_q, [srcend, -16]! sub dstend, dstend, tmp1 sub count, count, 32 + 32 1: subs count, count, 32 s...
arm64
gas-like
handwritten
bminor/glibc
sysdeps/aarch64/multiarch/memcpy_falkor.S
LGPL-2.1
6d7e8eda9b85b08f207a6dc6f187e94e4817270f
github
libc
https://github.com/bminor/glibc/blob/6d7e8eda9b85b08f207a6dc6f187e94e4817270f/sysdeps/aarch64/multiarch/memcpy_falkor.S
281
315
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_falkor.S:1
/* Optimized memcpy for Qualcomm Falkor processor. Copyright (C) 2017-2022 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Fre...
arm64
gas-like
handwritten
bminor/glibc
sysdeps/aarch64/multiarch/memcpy_falkor.S
LGPL-2.1
581c785bf31bc74430320c7856bbfa3875d025fe
github
libc
https://github.com/bminor/glibc/blob/581c785bf31bc74430320c7856bbfa3875d025fe/sysdeps/aarch64/multiarch/memcpy_falkor.S
1
60
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_falkor.S:1
/* Optimized memcpy for Qualcomm Falkor processor. Copyright (C) 2017-2021 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Fre...
arm64
gas-like
handwritten
bminor/glibc
sysdeps/aarch64/multiarch/memcpy_falkor.S
LGPL-2.1
2b778ceb4010c28d70de9b8eab20e8d88eed586b
github
libc
https://github.com/bminor/glibc/blob/2b778ceb4010c28d70de9b8eab20e8d88eed586b/sysdeps/aarch64/multiarch/memcpy_falkor.S
1
60