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/memcpy_falkor.S:1 | /* Optimized memcpy for Qualcomm Falkor processor.
Copyright (C) 2017-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 Fre... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/multiarch/memcpy_falkor.S | LGPL-2.1 | 45b1e17e9150dbd9ac2d578579063fbfa8e1b327 | github | libc | https://github.com/bminor/glibc/blob/45b1e17e9150dbd9ac2d578579063fbfa8e1b327/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 | d1f75e964484504e4f30f4623569d5889a97ac18 | github | libc | https://github.com/bminor/glibc/blob/d1f75e964484504e4f30f4623569d5889a97ac18/sysdeps/aarch64/multiarch/memcpy_falkor.S | 41 | 100 |
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 | d1f75e964484504e4f30f4623569d5889a97ac18 | github | libc | https://github.com/bminor/glibc/blob/d1f75e964484504e4f30f4623569d5889a97ac18/sysdeps/aarch64/multiarch/memcpy_falkor.S | 201 | 260 |
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_falkor.S:1 | /* Optimized memcpy for Qualcomm Falkor processor.
Copyright (C) 2017-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 Fre... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/multiarch/memcpy_falkor.S | LGPL-2.1 | d614a7539657941a9201c236b2f15afac18e1213 | github | libc | https://github.com/bminor/glibc/blob/d614a7539657941a9201c236b2f15afac18e1213/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
/* 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 sourceto a quad word and use an unrolled loop
p... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/multiarch/memcpy_falkor.S | LGPL-2.1 | d614a7539657941a9201c236b2f15afac18e1213 | github | libc | https://github.com/bminor/glibc/blob/d614a7539657941a9201c236b2f15afac18e1213/sysdeps/aarch64/multiarch/memcpy_falkor.S | 41 | 100 |
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_falkor.S:3 | /* Medium copies: 33..128 bytes. */
sub tmp1, count, 1
ldr A_q, [src, 16]
ldr B_q, [srcend, -32]
ldr C_q, [srcend, -16]
tbz tmp1, 6, 1f
ldr D_q, [src, 32]
ldr E_q, [src, 48]
str D_q, [dstin, 32]
str E_q, [dstin, 48]
ldr F_q, [srcend, -64]
ldr G_q, [srcend, -48]
str F_q, [dstend, -64]
str G_q, [dstend, -48... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/multiarch/memcpy_falkor.S | LGPL-2.1 | d614a7539657941a9201c236b2f15afac18e1213 | github | libc | https://github.com/bminor/glibc/blob/d614a7539657941a9201c236b2f15afac18e1213/sysdeps/aarch64/multiarch/memcpy_falkor.S | 81 | 140 |
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_falkor.S:4 | 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]
ldrh B_w, [srcend, -2]
strh A_w, [dstin]
strh B_w, [dstend, -2]
ret
.p2align 4
1:
/* 0-1 */
tbz count, 0, 1f
ldrb A_w,... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/multiarch/memcpy_falkor.S | LGPL-2.1 | d614a7539657941a9201c236b2f15afac18e1213 | github | libc | https://github.com/bminor/glibc/blob/d614a7539657941a9201c236b2f15afac18e1213/sysdeps/aarch64/multiarch/memcpy_falkor.S | 121 | 180 |
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_falkor.S:5 | add count, count, tmp1
L(loop64):
ldr A_q, [src, 16]!
str A_q, [dst, 16]
ldr A_q, [src, 16]!
subs count, count, 64
str A_q, [dst, 32]
ldr A_q, [src, 16]!
str A_q, [dst, 48]
ldr A_q, [src, 16]!
str A_q, [dst, 64]!
b.hi L(loop64)
/* Write the last full set of 64 bytes. The remainder is at most 64
bytes,... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/multiarch/memcpy_falkor.S | LGPL-2.1 | d614a7539657941a9201c236b2f15afac18e1213 | github | libc | https://github.com/bminor/glibc/blob/d614a7539657941a9201c236b2f15afac18e1213/sysdeps/aarch64/multiarch/memcpy_falkor.S | 161 | 191 |
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_falkor.S:1 | /* Optimized memcpy for Qualcomm Falkor processor.
Copyright (C) 2017-2019 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Fre... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/multiarch/memcpy_falkor.S | LGPL-2.1 | 5a82c74822d3272df2f5929133680478c0cfb4bd | github | libc | https://github.com/bminor/glibc/blob/5a82c74822d3272df2f5929133680478c0cfb4bd/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-2019 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Fre... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/multiarch/memcpy_falkor.S | LGPL-2.1 | 04277e02d7f54d3582bebcf8386b317018cd5e1d | github | libc | https://github.com/bminor/glibc/blob/04277e02d7f54d3582bebcf8386b317018cd5e1d/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-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 Fre... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/multiarch/memcpy_falkor.S | LGPL-2.1 | 0aec4c1d1801e8016ebe89281d16597e0557b8be | github | libc | https://github.com/bminor/glibc/blob/0aec4c1d1801e8016ebe89281d16597e0557b8be/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-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 Fre... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/multiarch/memcpy_falkor.S | LGPL-2.1 | db725a458e1cb0e17204daa543744faf08bb2e06 | github | libc | https://github.com/bminor/glibc/blob/db725a458e1cb0e17204daa543744faf08bb2e06/sysdeps/aarch64/multiarch/memcpy_falkor.S | 1 | 60 |
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_falkor.S:2 | #define C_l x10
#define C_h x11
#define D_l x12
#define D_h x13
#define E_l dst
#define E_h tmp1
#define F_l src
#define F_h count
#define G_l srcend
#define G_h x15
/* 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 co... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/multiarch/memcpy_falkor.S | LGPL-2.1 | db725a458e1cb0e17204daa543744faf08bb2e06 | github | libc | https://github.com/bminor/glibc/blob/db725a458e1cb0e17204daa543744faf08bb2e06/sysdeps/aarch64/multiarch/memcpy_falkor.S | 41 | 100 |
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_falkor.S:3 | add dstend, dstin, count
b.ls L(copy32)
ldp A_l, A_h, [src]
cmp count, 128
stp A_l, A_h, [dstin]
b.hi L(copy_long)
/* Medium copies: 33..128 bytes. */
sub tmp1, count, 1
ldp A_l, A_h, [src, 16]
ldp B_l, B_h, [srcend, -32]
ldp C_l, C_h, [srcend, -16]
tbz tmp1, 6, 1f
ldp D_l, D_h, [src, 32]
ldp E_l, E_h, [... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/multiarch/memcpy_falkor.S | LGPL-2.1 | db725a458e1cb0e17204daa543744faf08bb2e06 | github | libc | https://github.com/bminor/glibc/blob/db725a458e1cb0e17204daa543744faf08bb2e06/sysdeps/aarch64/multiarch/memcpy_falkor.S | 81 | 140 |
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_falkor.S:4 | /* 8-15 */
tbz count, 3, 1f
ldr A_l, [src]
ldr B_l, [srcend, -8]
str A_l, [dstin]
str B_l, [dstend, -8]
ret
.p2align 4
1:
/* 4-7 */
tbz count, 2, 1f
ldr A_lw, [src]
ldr B_lw, [srcend, -4]
str A_lw, [dstin]
str B_lw, [dstend, -4]
ret
.p2align 4
1:
/* 2-3 */
tbz count, 1, 1f
ldrh A_lw, [src]
ldrh B_lw,... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/multiarch/memcpy_falkor.S | LGPL-2.1 | db725a458e1cb0e17204daa543744faf08bb2e06 | github | libc | https://github.com/bminor/glibc/blob/db725a458e1cb0e17204daa543744faf08bb2e06/sysdeps/aarch64/multiarch/memcpy_falkor.S | 121 | 180 |
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_falkor.S:5 | .p2align 6
L(copy_long):
sub count, count, 64 + 16
and tmp1, src, 15
bic src, src, 15
sub dst, dstin, tmp1
add count, count, tmp1
L(loop64):
ldp A_l, A_h, [src, 16]!
stnp A_l, A_h, [dst, 16]
ldp A_l, A_h, [src, 16]!
subs count, count, 64
stnp A_l, A_h, [dst, 32]
ldp A_l, A_h, [src, 16]!
stnp A_l, A_h, [dst... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/multiarch/memcpy_falkor.S | LGPL-2.1 | db725a458e1cb0e17204daa543744faf08bb2e06 | github | libc | https://github.com/bminor/glibc/blob/db725a458e1cb0e17204daa543744faf08bb2e06/sysdeps/aarch64/multiarch/memcpy_falkor.S | 161 | 198 |
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_falkor.S:1 | /* Optimized memcpy for Qualcomm Falkor processor.
Copyright (C) 2017-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 Fre... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/multiarch/memcpy_falkor.S | LGPL-2.1 | 688903eb3ef01301d239ab753d309d45720610a7 | github | libc | https://github.com/bminor/glibc/blob/688903eb3ef01301d239ab753d309d45720610a7/sysdeps/aarch64/multiarch/memcpy_falkor.S | 1 | 60 |
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_falkor.S:2 | 2. Medium copies of 33..128 bytes which are fully unrolled
3. Large copies of more than 128 bytes.
Large copies align the sourceto a quad word and use an unrolled loop
processing 64 bytes per iteration.
FALKOR-SPECIFIC DESIGN:
The smallest copies (32 bytes or less) focus on optimal pipeline usage,
... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/multiarch/memcpy_falkor.S | LGPL-2.1 | 688903eb3ef01301d239ab753d309d45720610a7 | github | libc | https://github.com/bminor/glibc/blob/688903eb3ef01301d239ab753d309d45720610a7/sysdeps/aarch64/multiarch/memcpy_falkor.S | 41 | 100 |
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_falkor.S:3 | ldp A_l, A_h, [src, 48]
stp A_l, A_h, [dstin, 48]
ldp A_l, A_h, [srcend, -64]
stp A_l, A_h, [dstend, -64]
ldp A_l, A_h, [srcend, -48]
stp A_l, A_h, [dstend, -48]
1:
ldp A_l, A_h, [srcend, -32]
stp A_l, A_h, [dstend, -32]
ldp A_l, A_h, [srcend, -16]
stp A_l, A_h, [dstend, -16]
ret
.p2align 4
/* Small copies... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/multiarch/memcpy_falkor.S | LGPL-2.1 | 688903eb3ef01301d239ab753d309d45720610a7 | github | libc | https://github.com/bminor/glibc/blob/688903eb3ef01301d239ab753d309d45720610a7/sysdeps/aarch64/multiarch/memcpy_falkor.S | 81 | 140 |
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_falkor.S:4 | str A_lw, [dstend, -4]
ret
.p2align 4
1:
/* 2-3 */
tbz count, 1, 1f
ldrh A_lw, [src]
strh A_lw, [dstin]
ldrh A_lw, [srcend, -2]
strh A_lw, [dstend, -2]
ret
.p2align 4
1:
/* 0-1 */
tbz count, 0, 1f
ldrb A_lw, [src]
strb A_lw, [dstin]
1:
ret
/* Align SRC to 16 bytes and copy; that way at least one of the... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/multiarch/memcpy_falkor.S | LGPL-2.1 | 688903eb3ef01301d239ab753d309d45720610a7 | github | libc | https://github.com/bminor/glibc/blob/688903eb3ef01301d239ab753d309d45720610a7/sysdeps/aarch64/multiarch/memcpy_falkor.S | 121 | 180 |
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_falkor.S:5 | ldp A_l, A_h, [src, 16]!
stnp A_l, A_h, [dst, 48]
ldp A_l, A_h, [src, 16]!
stnp A_l, A_h, [dst, 64]
add dst, dst, 64
b.hi L(loop64)
/* Write the last full set of 64 bytes. The remainder is at most 64
bytes, so it is safe to always copy 64 bytes from the end even if
there is just 1 byte left. */
L(last6... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/multiarch/memcpy_falkor.S | LGPL-2.1 | 688903eb3ef01301d239ab753d309d45720610a7 | github | libc | https://github.com/bminor/glibc/blob/688903eb3ef01301d239ab753d309d45720610a7/sysdeps/aarch64/multiarch/memcpy_falkor.S | 161 | 184 |
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_falkor.S:1 | /* Optimized memcpy for Qualcomm Falkor processor.
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 Sof... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/multiarch/memcpy_falkor.S | LGPL-2.1 | 0e02b5107e17830d19e83cb2208103f79666af31 | github | libc | https://github.com/bminor/glibc/blob/0e02b5107e17830d19e83cb2208103f79666af31/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 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 Sof... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/multiarch/memcpy_falkor.S | LGPL-2.1 | 36ada5f681d86d4abe7b3b47d653d69e5ab2a6fd | github | libc | https://github.com/bminor/glibc/blob/36ada5f681d86d4abe7b3b47d653d69e5ab2a6fd/sysdeps/aarch64/multiarch/memcpy_falkor.S | 1 | 60 |
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_falkor.S:2 | 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 sourceto a quad word and use an unrolled loop
processing 64 bytes per iteration.
FALKOR-SPECIFIC DESIGN:
The smallest copies (32 bytes or less)... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/multiarch/memcpy_falkor.S | LGPL-2.1 | 36ada5f681d86d4abe7b3b47d653d69e5ab2a6fd | github | libc | https://github.com/bminor/glibc/blob/36ada5f681d86d4abe7b3b47d653d69e5ab2a6fd/sysdeps/aarch64/multiarch/memcpy_falkor.S | 41 | 100 |
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_falkor.S:3 | tbz tmp1, 6, 1f
ldp A_l, A_h, [src, 32]
stp A_l, A_h, [dstin, 32]
ldp A_l, A_h, [src, 48]
stp A_l, A_h, [dstin, 48]
ldp A_l, A_h, [srcend, -64]
stp A_l, A_h, [dstend, -64]
ldp A_l, A_h, [srcend, -48]
stp A_l, A_h, [dstend, -48]
1:
ldp A_l, A_h, [srcend, -32]
stp A_l, A_h, [dstend, -32]
ldp A_l, A_h, [srcend,... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/multiarch/memcpy_falkor.S | LGPL-2.1 | 36ada5f681d86d4abe7b3b47d653d69e5ab2a6fd | github | libc | https://github.com/bminor/glibc/blob/36ada5f681d86d4abe7b3b47d653d69e5ab2a6fd/sysdeps/aarch64/multiarch/memcpy_falkor.S | 81 | 140 |
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_falkor.S:4 | ldr A_lw, [src]
str A_lw, [dstin]
ldr A_lw, [srcend, -4]
str A_lw, [dstend, -4]
ret
.p2align 4
1:
/* 2-3 */
tbz count, 1, 1f
ldrh A_lw, [src]
strh A_lw, [dstin]
ldrh A_lw, [srcend, -2]
strh A_lw, [dstend, -2]
ret
.p2align 4
1:
/* 0-1 */
tbz count, 0, 1f
ldrb A_lw, [src]
strb A_lw, [dstin]
1:
ret
/* ... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/multiarch/memcpy_falkor.S | LGPL-2.1 | 36ada5f681d86d4abe7b3b47d653d69e5ab2a6fd | github | libc | https://github.com/bminor/glibc/blob/36ada5f681d86d4abe7b3b47d653d69e5ab2a6fd/sysdeps/aarch64/multiarch/memcpy_falkor.S | 121 | 180 |
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_falkor.S:5 | ldp A_l, A_h, [src, 16]!
subs count, count, 64
stnp A_l, A_h, [dst, 32]
ldp A_l, A_h, [src, 16]!
stnp A_l, A_h, [dst, 48]
ldp A_l, A_h, [src, 16]!
stnp A_l, A_h, [dst, 64]
add dst, dst, 64
b.hi L(loop64)
/* Write the last full set of 64 bytes. The remainder is at most 64
bytes, so it is safe to always co... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/multiarch/memcpy_falkor.S | LGPL-2.1 | 36ada5f681d86d4abe7b3b47d653d69e5ab2a6fd | github | libc | https://github.com/bminor/glibc/blob/36ada5f681d86d4abe7b3b47d653d69e5ab2a6fd/sysdeps/aarch64/multiarch/memcpy_falkor.S | 161 | 187 |
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_generic.S:1 | /* A Generic Optimized memcpy implementation for AARCH64.
Copyright (C) 2017-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 t... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/multiarch/memcpy_generic.S | LGPL-2.1 | 04e750e75b73957cf1c791535a3f4319534a52fc | github | libc | https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/aarch64/multiarch/memcpy_generic.S | 1 | 44 |
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_generic.S:1 | /* A Generic Optimized memcpy implementation for AARCH64.
Copyright (C) 2017-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 t... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/multiarch/memcpy_generic.S | LGPL-2.1 | 2642002380aafb71a1d3b569b6d7ebeab3284816 | github | libc | https://github.com/bminor/glibc/blob/2642002380aafb71a1d3b569b6d7ebeab3284816/sysdeps/aarch64/multiarch/memcpy_generic.S | 1 | 44 |
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_generic.S:1 | /* A Generic Optimized memcpy implementation for AARCH64.
Copyright (C) 2017-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 t... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/multiarch/memcpy_generic.S | LGPL-2.1 | dff8da6b3e89b986bb7f6b1ec18cf65d5972e307 | github | libc | https://github.com/bminor/glibc/blob/dff8da6b3e89b986bb7f6b1ec18cf65d5972e307/sysdeps/aarch64/multiarch/memcpy_generic.S | 1 | 44 |
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_generic.S:1 | /* A Generic Optimized memcpy implementation for AARCH64.
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 t... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/multiarch/memcpy_generic.S | LGPL-2.1 | 6d7e8eda9b85b08f207a6dc6f187e94e4817270f | github | libc | https://github.com/bminor/glibc/blob/6d7e8eda9b85b08f207a6dc6f187e94e4817270f/sysdeps/aarch64/multiarch/memcpy_generic.S | 1 | 44 |
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_generic.S:1 | /* A Generic Optimized memcpy implementation for AARCH64.
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 t... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/multiarch/memcpy_generic.S | LGPL-2.1 | 581c785bf31bc74430320c7856bbfa3875d025fe | github | libc | https://github.com/bminor/glibc/blob/581c785bf31bc74430320c7856bbfa3875d025fe/sysdeps/aarch64/multiarch/memcpy_generic.S | 1 | 44 |
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_generic.S:1 | /* A Generic Optimized memcpy implementation for AARCH64.
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 t... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/multiarch/memcpy_generic.S | LGPL-2.1 | 2b778ceb4010c28d70de9b8eab20e8d88eed586b | github | libc | https://github.com/bminor/glibc/blob/2b778ceb4010c28d70de9b8eab20e8d88eed586b/sysdeps/aarch64/multiarch/memcpy_generic.S | 1 | 44 |
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_generic.S:1 | /* A Generic Optimized memcpy implementation for AARCH64.
Copyright (C) 2017-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 t... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/multiarch/memcpy_generic.S | LGPL-2.1 | d614a7539657941a9201c236b2f15afac18e1213 | github | libc | https://github.com/bminor/glibc/blob/d614a7539657941a9201c236b2f15afac18e1213/sysdeps/aarch64/multiarch/memcpy_generic.S | 1 | 44 |
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_generic.S:1 | /* A Generic Optimized memcpy implementation for AARCH64.
Copyright (C) 2017-2019 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by t... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/multiarch/memcpy_generic.S | LGPL-2.1 | 5a82c74822d3272df2f5929133680478c0cfb4bd | github | libc | https://github.com/bminor/glibc/blob/5a82c74822d3272df2f5929133680478c0cfb4bd/sysdeps/aarch64/multiarch/memcpy_generic.S | 1 | 44 |
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_generic.S:1 | /* A Generic Optimized memcpy implementation for AARCH64.
Copyright (C) 2017-2019 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by t... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/multiarch/memcpy_generic.S | LGPL-2.1 | 04277e02d7f54d3582bebcf8386b317018cd5e1d | github | libc | https://github.com/bminor/glibc/blob/04277e02d7f54d3582bebcf8386b317018cd5e1d/sysdeps/aarch64/multiarch/memcpy_generic.S | 1 | 44 |
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_generic.S:1 | /* A Generic Optimized memcpy implementation for AARCH64.
Copyright (C) 2017-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 t... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/multiarch/memcpy_generic.S | LGPL-2.1 | 688903eb3ef01301d239ab753d309d45720610a7 | github | libc | https://github.com/bminor/glibc/blob/688903eb3ef01301d239ab753d309d45720610a7/sysdeps/aarch64/multiarch/memcpy_generic.S | 1 | 44 |
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_generic.S:1 | /* A Generic Optimized memcpy implementation for AARCH64.
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 Fr... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/multiarch/memcpy_generic.S | LGPL-2.1 | 4c1d801a5956f049126ef6cbe22ed23693e77a8c | github | libc | https://github.com/bminor/glibc/blob/4c1d801a5956f049126ef6cbe22ed23693e77a8c/sysdeps/aarch64/multiarch/memcpy_generic.S | 1 | 44 |
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_generic.S:1 | /* A Generic Optimized memcpy implementation for AARCH64.
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 Fr... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/multiarch/memcpy_generic.S | LGPL-2.1 | 6a2c695266fab34cc057256d1b33d2268183f00e | github | libc | https://github.com/bminor/glibc/blob/6a2c695266fab34cc057256d1b33d2268183f00e/sysdeps/aarch64/multiarch/memcpy_generic.S | 1 | 42 |
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_mops.S:1 | /* Optimized memcpy 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 Foundation... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/multiarch/memcpy_mops.S | LGPL-2.1 | 04e750e75b73957cf1c791535a3f4319534a52fc | github | libc | https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/aarch64/multiarch/memcpy_mops.S | 1 | 35 |
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_mops.S:1 | /* Optimized memcpy 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 Foundation... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/multiarch/memcpy_mops.S | LGPL-2.1 | ce2f26a22e6b6f5c108d156afd9b43a452bb024c | github | libc | https://github.com/bminor/glibc/blob/ce2f26a22e6b6f5c108d156afd9b43a452bb024c/sysdeps/aarch64/multiarch/memcpy_mops.S | 1 | 35 |
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_mops.S:1 | /* Optimized memcpy 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 Foundation... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/multiarch/memcpy_mops.S | LGPL-2.1 | 2642002380aafb71a1d3b569b6d7ebeab3284816 | github | libc | https://github.com/bminor/glibc/blob/2642002380aafb71a1d3b569b6d7ebeab3284816/sysdeps/aarch64/multiarch/memcpy_mops.S | 1 | 39 |
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_mops.S:1 | /* Optimized memcpy 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 Foundation... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/multiarch/memcpy_mops.S | LGPL-2.1 | dff8da6b3e89b986bb7f6b1ec18cf65d5972e307 | github | libc | https://github.com/bminor/glibc/blob/dff8da6b3e89b986bb7f6b1ec18cf65d5972e307/sysdeps/aarch64/multiarch/memcpy_mops.S | 1 | 39 |
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_mops.S:1 | /* Optimized memcpy 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; eit... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/multiarch/memcpy_mops.S | LGPL-2.1 | 2bd00179885928fd95fcabfafc50e7b5c6e660d2 | github | libc | https://github.com/bminor/glibc/blob/2bd00179885928fd95fcabfafc50e7b5c6e660d2/sysdeps/aarch64/multiarch/memcpy_mops.S | 1 | 39 |
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_oryon1.S:1 | /* A oryon-1 core Optimized memcpy implementation for AARCH64.
Copyright (C) 2017-2026 Free Software Foundation, Inc.
Copyright The GNU Toolchain Authors.
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 Less... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/multiarch/memcpy_oryon1.S | LGPL-2.1 | 04e750e75b73957cf1c791535a3f4319534a52fc | github | libc | https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/aarch64/multiarch/memcpy_oryon1.S | 1 | 60 |
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_oryon1.S:2 | #define B_h x9
#define C_l x10
#define C_h x11
#define D_l x12
#define D_h x13
#define E_l src
#define E_h count
#define F_l srcend
#define F_h dst
#define G_l count
#define G_h dst
#define tmp1 x14
/* Copies are split into 3 main cases: small copies of up to 16 bytes,
medium copies of 17..96 bytes which are fully ... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/multiarch/memcpy_oryon1.S | LGPL-2.1 | 04e750e75b73957cf1c791535a3f4319534a52fc | github | libc | https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/aarch64/multiarch/memcpy_oryon1.S | 41 | 100 |
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_oryon1.S:3 | b.hi L(copy_long)
/* Medium copies: 17..96 bytes. */
sub tmp1, count, 1
ldp A_l, A_h, [src]
tbnz tmp1, 6, L(copy96)
ldp D_l, D_h, [srcend, -16]
tbz tmp1, 5, 1f
ldp B_l, B_h, [src, 16]
ldp C_l, C_h, [srcend, -32]
stp B_l, B_h, [dstin, 16]
stp C_l, C_h, [dstend, -32]
1:
stp A_l, A_h, [dstin]
stp D_l, D_h, [... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/multiarch/memcpy_oryon1.S | LGPL-2.1 | 04e750e75b73957cf1c791535a3f4319534a52fc | github | libc | https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/aarch64/multiarch/memcpy_oryon1.S | 81 | 140 |
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_oryon1.S:4 | lsr tmp1, count, 1
ldrb A_lw, [src]
ldrb A_hw, [srcend, -1]
ldrb B_lw, [src, tmp1]
strb A_lw, [dstin]
strb B_lw, [dstin, tmp1]
strb A_hw, [dstend, -1]
2: ret
.p2align 6
/* Copy 64..96 bytes. Copy 64 bytes from the start and
32 bytes from the end. */
L(copy96):
ldp B_l, B_h, [src, 16]
ldp C_l, C_h, [src... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/multiarch/memcpy_oryon1.S | LGPL-2.1 | 04e750e75b73957cf1c791535a3f4319534a52fc | github | libc | https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/aarch64/multiarch/memcpy_oryon1.S | 121 | 180 |
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_oryon1.S:5 | cmp count, #32768
b.lo L(copy_long_without_nontemp)
and tmp1, dstin, 15
bic dst, dstin, 15
ldnp D_l, D_h, [src]
sub src, src, tmp1
add count, count, tmp1 /* Count is now 16 too large. */
ldnp A_l, A_h, [src, 16]
stnp D_l, D_h, [dstin]
ldnp B_l, B_h, [src, 32]
ldnp C_l, C_h, [src, 48]
ldnp D_l, D_h, [src, 64... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/multiarch/memcpy_oryon1.S | LGPL-2.1 | 04e750e75b73957cf1c791535a3f4319534a52fc | github | libc | https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/aarch64/multiarch/memcpy_oryon1.S | 161 | 220 |
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_oryon1.S:6 | stp D_l, D_h, [dstin]
ldp B_l, B_h, [src, 32]
ldp C_l, C_h, [src, 48]
ldp D_l, D_h, [src, 64]!
subs count, count, 128 + 16 /* Test and readjust count. */
b.ls L(last64)
L(loop64):
stp A_l, A_h, [dst, 16]
ldp A_l, A_h, [src, 16]
stp B_l, B_h, [dst, 32]
ldp B_l, B_h, [src, 32]
stp C_l, C_h, [dst, 48]
ldp C_l,... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/multiarch/memcpy_oryon1.S | LGPL-2.1 | 04e750e75b73957cf1c791535a3f4319534a52fc | github | libc | https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/aarch64/multiarch/memcpy_oryon1.S | 201 | 260 |
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_oryon1.S:7 | add srcend, src, count
add dstend, dstin, count
/* Align dstend to 16 byte alignment so that we don't cross cache line
boundaries on both loads and stores. There are at least 96 bytes
to copy, so copy 16 bytes unaligned and then align. The loop
copies 64 bytes per iteration and prefetches one iteration... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/multiarch/memcpy_oryon1.S | LGPL-2.1 | 04e750e75b73957cf1c791535a3f4319534a52fc | github | libc | https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/aarch64/multiarch/memcpy_oryon1.S | 241 | 293 |
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_oryon1.S:8 | ldp A_l, A_h, [src, 32]
stp B_l, B_h, [dstend, -32]
ldp B_l, B_h, [src, 16]
stp C_l, C_h, [dstend, -48]
ldp C_l, C_h, [src]
stp D_l, D_h, [dstend, -64]
stp G_l, G_h, [dstin, 48]
stp A_l, A_h, [dstin, 32]
stp B_l, B_h, [dstin, 16]
stp C_l, C_h, [dstin]
3: ret
END (__memcpy_oryon1) | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/multiarch/memcpy_oryon1.S | LGPL-2.1 | 04e750e75b73957cf1c791535a3f4319534a52fc | github | libc | https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/aarch64/multiarch/memcpy_oryon1.S | 281 | 293 |
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_oryon1.S:1 | /* A oryon-1 core Optimized memcpy implementation for AARCH64.
Copyright (C) 2017-2025 Free Software Foundation, Inc.
Copyright The GNU Toolchain Authors.
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 Less... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/multiarch/memcpy_oryon1.S | LGPL-2.1 | 0e1aa5db738ac7c73599a3e7f1a0b70b99f99e0a | github | libc | https://github.com/bminor/glibc/blob/0e1aa5db738ac7c73599a3e7f1a0b70b99f99e0a/sysdeps/aarch64/multiarch/memcpy_oryon1.S | 1 | 60 |
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_oryon1.S:4 | lsr tmp1, count, 1
ldrb A_lw, [src]
ldrb A_hw, [srcend, -1]
ldrb B_lw, [src, tmp1]
strb A_lw, [dstin]
strb B_lw, [dstin, tmp1]
strb A_hw, [dstend, -1]
2: ret
.p2align 6
/* Copy 64..96 bytes. Copy 64 bytes from the start and
32 bytes from the end. */
L(copy96):
ldp B_l, B_h, [src, 16]
ldp C_l, C_h, [src... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/multiarch/memcpy_oryon1.S | LGPL-2.1 | ce2f26a22e6b6f5c108d156afd9b43a452bb024c | github | libc | https://github.com/bminor/glibc/blob/ce2f26a22e6b6f5c108d156afd9b43a452bb024c/sysdeps/aarch64/multiarch/memcpy_oryon1.S | 121 | 180 |
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_oryon1.S:2 | #define B_h x9
#define C_l x10
#define C_h x11
#define D_l x12
#define D_h x13
#define E_l src
#define E_h count
#define F_l srcend
#define F_h dst
#define G_l count
#define G_h dst
#define tmp1 x14
/* Copies are split into 3 main cases: small copies of up to 16 bytes,
medium copies of 17..96 bytes which are fully ... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/multiarch/memcpy_oryon1.S | LGPL-2.1 | 2642002380aafb71a1d3b569b6d7ebeab3284816 | github | libc | https://github.com/bminor/glibc/blob/2642002380aafb71a1d3b569b6d7ebeab3284816/sysdeps/aarch64/multiarch/memcpy_oryon1.S | 41 | 100 |
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_oryon1.S:3 | PTR_ARG (1)
SIZE_ARG (2)
add srcend, src, count
add dstend, dstin, count
cmp count, 16
b.ls L(copy16)
cmp count, 96
b.hi L(copy_long)
/* Medium copies: 17..96 bytes. */
sub tmp1, count, 1
ldp A_l, A_h, [src]
tbnz tmp1, 6, L(copy96)
ldp D_l, D_h, [srcend, -16]
tbz tmp1, 5, 1f
ldp B_l, B_h, [src, 16]
ld... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/multiarch/memcpy_oryon1.S | LGPL-2.1 | 2642002380aafb71a1d3b569b6d7ebeab3284816 | github | libc | https://github.com/bminor/glibc/blob/2642002380aafb71a1d3b569b6d7ebeab3284816/sysdeps/aarch64/multiarch/memcpy_oryon1.S | 81 | 140 |
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_oryon1.S:4 | str A_lw, [dstin]
str A_hw, [dstend, -4]
ret
/* Copy 0..3 bytes. Use a branchless sequence that copies the same
byte 3 times if count==1, or the 2nd byte twice if count==2. */
1:
cbz count, 2f
lsr tmp1, count, 1
ldrb A_lw, [src]
ldrb A_hw, [srcend, -1]
ldrb B_lw, [src, tmp1]
strb A_lw, [dstin]
strb B_l... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/multiarch/memcpy_oryon1.S | LGPL-2.1 | 2642002380aafb71a1d3b569b6d7ebeab3284816 | github | libc | https://github.com/bminor/glibc/blob/2642002380aafb71a1d3b569b6d7ebeab3284816/sysdeps/aarch64/multiarch/memcpy_oryon1.S | 121 | 180 |
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_oryon1.S:5 | L(copy_long):
and tmp1, dstin, 15
bic dst, dstin, 15
ldp D_l, D_h, [src]
sub src, src, tmp1
add count, count, tmp1 /* Count is now 16 too large. */
ldp A_l, A_h, [src, 16]
stp D_l, D_h, [dstin]
ldp B_l, B_h, [src, 32]
ldp C_l, C_h, [src, 48]
ldp D_l, D_h, [src, 64]!
subs count, count, 128 + 16 /* Test and ... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/multiarch/memcpy_oryon1.S | LGPL-2.1 | 2642002380aafb71a1d3b569b6d7ebeab3284816 | github | libc | https://github.com/bminor/glibc/blob/2642002380aafb71a1d3b569b6d7ebeab3284816/sysdeps/aarch64/multiarch/memcpy_oryon1.S | 161 | 220 |
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_oryon1.S:6 | stp B_l, B_h, [dstend, -32]
stp C_l, C_h, [dstend, -16]
ret
.p2align 6
L(move_long):
cbz tmp1, 3f
add srcend, src, count
add dstend, dstin, count
/* Align dstend to 16 byte alignment so that we don't cross cache line
boundaries on both loads and stores. There are at least 96 bytes
to copy, so copy 16... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/multiarch/memcpy_oryon1.S | LGPL-2.1 | 2642002380aafb71a1d3b569b6d7ebeab3284816 | github | libc | https://github.com/bminor/glibc/blob/2642002380aafb71a1d3b569b6d7ebeab3284816/sysdeps/aarch64/multiarch/memcpy_oryon1.S | 201 | 260 |
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_oryon1.S:7 | b.hi 1b
/* Write the last full set of 64 bytes. The remainder is at most 64
bytes, so it is safe to always copy 64 bytes from the start even if
there is just 1 byte left. */
2:
ldp G_l, G_h, [src, 48]
stp A_l, A_h, [dstend, -16]
ldp A_l, A_h, [src, 32]
stp B_l, B_h, [dstend, -32]
ldp B_l, B_h, [src, 16... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/multiarch/memcpy_oryon1.S | LGPL-2.1 | 2642002380aafb71a1d3b569b6d7ebeab3284816 | github | libc | https://github.com/bminor/glibc/blob/2642002380aafb71a1d3b569b6d7ebeab3284816/sysdeps/aarch64/multiarch/memcpy_oryon1.S | 241 | 261 |
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_oryon1.S:1 | /* A oryon-1 core Optimized memcpy implementation for AARCH64.
Copyright (C) 2017-2024 Free Software Foundation, Inc.
Copyright The GNU Toolchain Authors.
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 Less... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/multiarch/memcpy_oryon1.S | LGPL-2.1 | eb5eeb47403e0a91de834868e501b4d62b8d2cb9 | github | libc | https://github.com/bminor/glibc/blob/eb5eeb47403e0a91de834868e501b4d62b8d2cb9/sysdeps/aarch64/multiarch/memcpy_oryon1.S | 1 | 60 |
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_oryon1.S:4 | str A_lw, [dstin]
str A_hw, [dstend, -4]
ret
/* Copy 0..3 bytes. Use a branchless sequence that copies the same
byte 3 times if count==1, or the 2nd byte twice if count==2. */
1:
cbz count, 2f
lsr tmp1, count, 1
ldrb A_lw, [src]
ldrb A_hw, [srcend, -1]
ldrb B_lw, [src, tmp1]
strb A_lw, [dstin]
strb B_l... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/multiarch/memcpy_oryon1.S | LGPL-2.1 | 4dc83cac78a92a99cdd1ae808890083461597b82 | github | libc | https://github.com/bminor/glibc/blob/4dc83cac78a92a99cdd1ae808890083461597b82/sysdeps/aarch64/multiarch/memcpy_oryon1.S | 121 | 180 |
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_oryon1.S:5 | L(copy_long):
/* On oryon1 cores, large memcpy's are helped by using ldnp/stnp.
This loop is identical to the one below it but using ldnp/stnp
instructions. For loops that are less than 32768 bytes,
the ldnp/stnp instructions will not help and will cause a slow
down so only use the ldnp/stnp loop for... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/multiarch/memcpy_oryon1.S | LGPL-2.1 | 4dc83cac78a92a99cdd1ae808890083461597b82 | github | libc | https://github.com/bminor/glibc/blob/4dc83cac78a92a99cdd1ae808890083461597b82/sysdeps/aarch64/multiarch/memcpy_oryon1.S | 161 | 220 |
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_oryon1.S:6 | L(copy_long_without_nontemp):
and tmp1, dstin, 15
bic dst, dstin, 15
ldp D_l, D_h, [src]
sub src, src, tmp1
add count, count, tmp1 /* Count is now 16 too large. */
ldp A_l, A_h, [src, 16]
stp D_l, D_h, [dstin]
ldp B_l, B_h, [src, 32]
ldp C_l, C_h, [src, 48]
ldp D_l, D_h, [src, 64]!
subs count, count, 128 +... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/multiarch/memcpy_oryon1.S | LGPL-2.1 | 4dc83cac78a92a99cdd1ae808890083461597b82 | github | libc | https://github.com/bminor/glibc/blob/4dc83cac78a92a99cdd1ae808890083461597b82/sysdeps/aarch64/multiarch/memcpy_oryon1.S | 201 | 260 |
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_sve.S:1 | /* Optimized memcpy for SVE.
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 Software Foundation;... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/multiarch/memcpy_sve.S | LGPL-2.1 | 04e750e75b73957cf1c791535a3f4319534a52fc | github | libc | https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/aarch64/multiarch/memcpy_sve.S | 1 | 60 |
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_sve.S:2 | #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 performance.
Copies are split into 3 main cases: small copies of up to 32 by... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/multiarch/memcpy_sve.S | LGPL-2.1 | 04e750e75b73957cf1c791535a3f4319534a52fc | github | libc | https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/aarch64/multiarch/memcpy_sve.S | 41 | 100 |
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_sve.S:3 | cmp count, 64
b.hi L(copy128)
stp A_q, B_q, [dstin]
stp C_q, D_q, [dstend, -32]
ret
/* 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 A_q, B_q, [dstin]
stp E_q, F_q, [dstin, 32]
stp C_q, D_q, [... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/multiarch/memcpy_sve.S | LGPL-2.1 | 04e750e75b73957cf1c791535a3f4319534a52fc | github | libc | https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/aarch64/multiarch/memcpy_sve.S | 81 | 140 |
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_sve.S:4 | 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]
stp C_q, D_q, [dst, 48]
stp E_q, F_q, [dstend, -6... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/multiarch/memcpy_sve.S | LGPL-2.1 | 04e750e75b73957cf1c791535a3f4319534a52fc | github | libc | https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/aarch64/multiarch/memcpy_sve.S | 121 | 180 |
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_sve.S:5 | 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. */
ldr D_q, [srcend, -16]
and tmp1, srcend, 15
bic srcend, srcend, 15
sub count, count, tmp1
ldp A_q, B_q, [srcend, -32]
str D_q, [dstend, -16]
ldp C_q, D_q, [srcend... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/multiarch/memcpy_sve.S | LGPL-2.1 | 04e750e75b73957cf1c791535a3f4319534a52fc | github | libc | https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/aarch64/multiarch/memcpy_sve.S | 161 | 199 |
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_sve.S:1 | /* Optimized memcpy for SVE.
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 Software Foundation;... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/multiarch/memcpy_sve.S | LGPL-2.1 | b990b0aee2c20d45d53b1964b14b98a8d5e05fe6 | github | libc | https://github.com/bminor/glibc/blob/b990b0aee2c20d45d53b1964b14b98a8d5e05fe6/sysdeps/aarch64/multiarch/memcpy_sve.S | 1 | 60 |
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_sve.S:1 | /* Optimized memcpy for SVE.
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 Software Foundation;... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/multiarch/memcpy_sve.S | LGPL-2.1 | ce2f26a22e6b6f5c108d156afd9b43a452bb024c | github | libc | https://github.com/bminor/glibc/blob/ce2f26a22e6b6f5c108d156afd9b43a452bb024c/sysdeps/aarch64/multiarch/memcpy_sve.S | 1 | 60 |
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_sve.S:2 | #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 performance.
Copies are split into 3 main cases: small copies of up to 32 by... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/multiarch/memcpy_sve.S | LGPL-2.1 | ce2f26a22e6b6f5c108d156afd9b43a452bb024c | github | libc | https://github.com/bminor/glibc/blob/ce2f26a22e6b6f5c108d156afd9b43a452bb024c/sysdeps/aarch64/multiarch/memcpy_sve.S | 41 | 100 |
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_sve.S:3 | 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
/* 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 A_q, B_q, [... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/multiarch/memcpy_sve.S | LGPL-2.1 | ce2f26a22e6b6f5c108d156afd9b43a452bb024c | github | libc | https://github.com/bminor/glibc/blob/ce2f26a22e6b6f5c108d156afd9b43a452bb024c/sysdeps/aarch64/multiarch/memcpy_sve.S | 81 | 140 |
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_sve.S:4 | 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_sve.S | LGPL-2.1 | ce2f26a22e6b6f5c108d156afd9b43a452bb024c | github | libc | https://github.com/bminor/glibc/blob/ce2f26a22e6b6f5c108d156afd9b43a452bb024c/sysdeps/aarch64/multiarch/memcpy_sve.S | 121 | 180 |
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_sve.S:5 | sub tmp1, dstin, src
cbz tmp1, L(return)
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. */
ldr D_q, [srcend, -16]
and tmp1, srcend, 15
bic srcend, srcend, 15
sub count, count, tmp1
ldp A_q, B_q, [srcend, -32]
st... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/multiarch/memcpy_sve.S | LGPL-2.1 | ce2f26a22e6b6f5c108d156afd9b43a452bb024c | github | libc | https://github.com/bminor/glibc/blob/ce2f26a22e6b6f5c108d156afd9b43a452bb024c/sysdeps/aarch64/multiarch/memcpy_sve.S | 161 | 202 |
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_sve.S:2 | #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 performance.
Copies are split into 3 main cases: small copies of up to 32 by... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/multiarch/memcpy_sve.S | LGPL-2.1 | 2642002380aafb71a1d3b569b6d7ebeab3284816 | github | libc | https://github.com/bminor/glibc/blob/2642002380aafb71a1d3b569b6d7ebeab3284816/sysdeps/aarch64/multiarch/memcpy_sve.S | 41 | 100 |
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_sve.S:3 | /* Medium copies: 33..128 bytes. */
L(copy32_128):
add srcend, src, count
add dstend, dstin, count
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
/* Copy 65..128 bytes. */
L(copy128):
ldp E_q, F_q, [src, 32]
cmp count, 9... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/multiarch/memcpy_sve.S | LGPL-2.1 | 2642002380aafb71a1d3b569b6d7ebeab3284816 | github | libc | https://github.com/bminor/glibc/blob/2642002380aafb71a1d3b569b6d7ebeab3284816/sysdeps/aarch64/multiarch/memcpy_sve.S | 81 | 140 |
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_sve.S:4 | subs count, count, 128 + 16 /* Test and readjust count. */
b.ls L(copy64_from_end)
L(loop64):
stp A_q, B_q, [dst, 16]
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 ... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/multiarch/memcpy_sve.S | LGPL-2.1 | 2642002380aafb71a1d3b569b6d7ebeab3284816 | github | libc | https://github.com/bminor/glibc/blob/2642002380aafb71a1d3b569b6d7ebeab3284816/sysdeps/aarch64/multiarch/memcpy_sve.S | 121 | 180 |
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_sve.S:5 | st1b z1.b, p1, [dstin, 1, mul vl]
ret
.p2align 4
L(move_long):
add srcend, src, count
add dstend, dstin, count
/* Only use backward copy if there is an overlap. */
sub tmp1, dstin, src
cbz tmp1, L(return)
cmp tmp1, count
b.hs L(copy_long)
/* Large backwards copy for overlapping copies.
Copy 16 bytes an... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/multiarch/memcpy_sve.S | LGPL-2.1 | 2642002380aafb71a1d3b569b6d7ebeab3284816 | github | libc | https://github.com/bminor/glibc/blob/2642002380aafb71a1d3b569b6d7ebeab3284816/sysdeps/aarch64/multiarch/memcpy_sve.S | 161 | 210 |
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_sve.S:6 | stp A_q, B_q, [dstend, -32]
ldp A_q, B_q, [src]
stp C_q, D_q, [dstend, -64]
stp E_q, F_q, [dstin, 32]
stp A_q, B_q, [dstin]
L(return):
ret
END (__memmove_sve)
#endif | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/multiarch/memcpy_sve.S | LGPL-2.1 | 2642002380aafb71a1d3b569b6d7ebeab3284816 | github | libc | https://github.com/bminor/glibc/blob/2642002380aafb71a1d3b569b6d7ebeab3284816/sysdeps/aarch64/multiarch/memcpy_sve.S | 201 | 210 |
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_sve.S:1 | /* Optimized memcpy for SVE.
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 Software Foundation;... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/multiarch/memcpy_sve.S | LGPL-2.1 | dff8da6b3e89b986bb7f6b1ec18cf65d5972e307 | github | libc | https://github.com/bminor/glibc/blob/dff8da6b3e89b986bb7f6b1ec18cf65d5972e307/sysdeps/aarch64/multiarch/memcpy_sve.S | 1 | 60 |
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_sve.S:1 | /* Optimized memcpy for SVE.
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 Software Foundation;... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/multiarch/memcpy_sve.S | LGPL-2.1 | 9fd3409842b3e2d31cff5dbd6f96066c430f0aa2 | github | libc | https://github.com/bminor/glibc/blob/9fd3409842b3e2d31cff5dbd6f96066c430f0aa2/sysdeps/aarch64/multiarch/memcpy_sve.S | 1 | 60 |
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_sve.S:4 | subs count, count, 128 + 16 /* Test and readjust count. */
b.ls L(copy64_from_end)
L(loop64):
stp A_q, B_q, [dst, 16]
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 ... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/multiarch/memcpy_sve.S | LGPL-2.1 | d2d3f3720ce627a4fe154d8dd14db716a32bcc6e | github | libc | https://github.com/bminor/glibc/blob/d2d3f3720ce627a4fe154d8dd14db716a32bcc6e/sysdeps/aarch64/multiarch/memcpy_sve.S | 121 | 180 |
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_sve.S:5 | st1b z0.b, p0, [dstin, 0, mul vl]
st1b z1.b, p1, [dstin, 1, mul vl]
ret
.p2align 4
L(move_long):
add srcend, src, count
add dstend, dstin, count
/* Only use backward copy if there is an overlap. */
sub tmp1, dstin, src
cbz tmp1, L(return)
cmp tmp1, count
b.hs L(copy_long)
/* Large backwards copy for overl... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/multiarch/memcpy_sve.S | LGPL-2.1 | d2d3f3720ce627a4fe154d8dd14db716a32bcc6e | github | libc | https://github.com/bminor/glibc/blob/d2d3f3720ce627a4fe154d8dd14db716a32bcc6e/sysdeps/aarch64/multiarch/memcpy_sve.S | 161 | 212 |
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_sve.S:6 | ldp E_q, F_q, [src, 32]
stp A_q, B_q, [dstend, -32]
ldp A_q, B_q, [src]
stp C_q, D_q, [dstend, -64]
stp E_q, F_q, [dstin, 32]
stp A_q, B_q, [dstin]
L(return):
ret
END (__memmove_sve)
libc_hidden_builtin_def (__memmove_sve)
#endif | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/multiarch/memcpy_sve.S | LGPL-2.1 | d2d3f3720ce627a4fe154d8dd14db716a32bcc6e | github | libc | https://github.com/bminor/glibc/blob/d2d3f3720ce627a4fe154d8dd14db716a32bcc6e/sysdeps/aarch64/multiarch/memcpy_sve.S | 201 | 212 |
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_sve.S:2 | #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 performance.
Copies are split into 3 main cases: small copies of up to 32 by... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/multiarch/memcpy_sve.S | LGPL-2.1 | 6d7e8eda9b85b08f207a6dc6f187e94e4817270f | github | libc | https://github.com/bminor/glibc/blob/6d7e8eda9b85b08f207a6dc6f187e94e4817270f/sysdeps/aarch64/multiarch/memcpy_sve.S | 41 | 100 |
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_sve.S:3 | L(copy32_128):
add srcend, src, count
add dstend, dstin, count
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
/* 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, [src... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/multiarch/memcpy_sve.S | LGPL-2.1 | 6d7e8eda9b85b08f207a6dc6f187e94e4817270f | github | libc | https://github.com/bminor/glibc/blob/6d7e8eda9b85b08f207a6dc6f187e94e4817270f/sysdeps/aarch64/multiarch/memcpy_sve.S | 81 | 140 |
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_sve.S:4 | and tmp1, src, 15
bic src, src, 15
sub dst, dstin, tmp1
add count, count, tmp1 /* Count is now 16 too large. */
ldp A_q, B_q, [src, 16]
str D_q, [dstin]
ldp C_q, D_q, [src, 48]
subs count, count, 128 + 16 /* Test and readjust count. */
b.ls L(copy64_from_end)
L(loop64):
stp A_q, B_q, [dst, 16]
ldp A_q, B_q,... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/multiarch/memcpy_sve.S | LGPL-2.1 | 6d7e8eda9b85b08f207a6dc6f187e94e4817270f | github | libc | https://github.com/bminor/glibc/blob/6d7e8eda9b85b08f207a6dc6f187e94e4817270f/sysdeps/aarch64/multiarch/memcpy_sve.S | 121 | 180 |
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_sve.S:5 | cmp count, 32
b.hi L(copy32_128)
whilelo p0.b, xzr, count
cntb vlen
tbnz vlen, 4, L(vlen128)
ld1b z0.b, p0/z, [src]
st1b z0.b, p0, [dstin]
ret
.p2align 4
L(move_long):
add srcend, src, count
add dstend, dstin, count
/* Only use backward copy if there is an overlap. */
sub tmp1, dstin, src
cbz tmp1, L(re... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/multiarch/memcpy_sve.S | LGPL-2.1 | 6d7e8eda9b85b08f207a6dc6f187e94e4817270f | github | libc | https://github.com/bminor/glibc/blob/6d7e8eda9b85b08f207a6dc6f187e94e4817270f/sysdeps/aarch64/multiarch/memcpy_sve.S | 161 | 218 |
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_sve.S:6 | sub srcend, srcend, 64
subs count, count, 64
b.hi L(loop64_backwards)
/* Write the last iteration and copy 64 bytes from the start. */
L(copy64_from_start):
ldp E_q, F_q, [src, 32]
stp A_q, B_q, [dstend, -32]
ldp A_q, B_q, [src]
stp C_q, D_q, [dstend, -64]
stp E_q, F_q, [dstin, 32]
stp A_q, B_q, [dstin]
L(re... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/multiarch/memcpy_sve.S | LGPL-2.1 | 6d7e8eda9b85b08f207a6dc6f187e94e4817270f | github | libc | https://github.com/bminor/glibc/blob/6d7e8eda9b85b08f207a6dc6f187e94e4817270f/sysdeps/aarch64/multiarch/memcpy_sve.S | 201 | 218 |
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_sve.S:1 | /* Optimized memcpy for SVE.
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 Software Foundation;... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/multiarch/memcpy_sve.S | LGPL-2.1 | 9f298bfe1f183804bb54b54ff9071afc0494906c | github | libc | https://github.com/bminor/glibc/blob/9f298bfe1f183804bb54b54ff9071afc0494906c/sysdeps/aarch64/multiarch/memcpy_sve.S | 1 | 60 |
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_thunderx.S:1 | /* A Thunderx Optimized memcpy implementation for AARCH64.
Copyright (C) 2017-2024 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/multiarch/memcpy_thunderx.S | LGPL-2.1 | dff8da6b3e89b986bb7f6b1ec18cf65d5972e307 | github | libc | https://github.com/bminor/glibc/blob/dff8da6b3e89b986bb7f6b1ec18cf65d5972e307/sysdeps/aarch64/multiarch/memcpy_thunderx.S | 1 | 60 |
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_thunderx.S:2 | #define A_h x7
#define A_hw w7
#define B_l x8
#define B_lw w8
#define B_h x9
#define C_l x10
#define C_h x11
#define D_l x12
#define D_h x13
#define E_l src
#define E_h count
#define F_l srcend
#define F_h dst
#define G_l count
#define G_h dst
#define tmp1 x14
/* Copies are split into 3 main cases: small copies of up ... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/multiarch/memcpy_thunderx.S | LGPL-2.1 | dff8da6b3e89b986bb7f6b1ec18cf65d5972e307 | github | libc | https://github.com/bminor/glibc/blob/dff8da6b3e89b986bb7f6b1ec18cf65d5972e307/sysdeps/aarch64/multiarch/memcpy_thunderx.S | 41 | 100 |
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_thunderx.S:3 | ENTRY (__memcpy_thunderx)
PTR_ARG (0)
PTR_ARG (1)
SIZE_ARG (2)
prfm PLDL1KEEP, [src]
add srcend, src, count
add dstend, dstin, count
cmp count, 16
b.ls L(copy16)
cmp count, 96
b.hi L(copy_long)
/* Medium copies: 17..96 bytes. */
sub tmp1, count, 1
ldp A_l, A_h, [src]
tbnz tmp1, 6, L(copy96)
ldp D_l, ... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/multiarch/memcpy_thunderx.S | LGPL-2.1 | dff8da6b3e89b986bb7f6b1ec18cf65d5972e307 | github | libc | https://github.com/bminor/glibc/blob/dff8da6b3e89b986bb7f6b1ec18cf65d5972e307/sysdeps/aarch64/multiarch/memcpy_thunderx.S | 81 | 140 |
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_thunderx.S:4 | .p2align 4
1:
tbz count, 2, 1f
ldr A_lw, [src]
ldr A_hw, [srcend, -4]
str A_lw, [dstin]
str A_hw, [dstend, -4]
ret
/* Copy 0..3 bytes. Use a branchless sequence that copies the same
byte 3 times if count==1, or the 2nd byte twice if count==2. */
1:
cbz count, 2f
lsr tmp1, count, 1
ldrb A_lw, [src]
ldr... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/multiarch/memcpy_thunderx.S | LGPL-2.1 | dff8da6b3e89b986bb7f6b1ec18cf65d5972e307 | github | libc | https://github.com/bminor/glibc/blob/dff8da6b3e89b986bb7f6b1ec18cf65d5972e307/sysdeps/aarch64/multiarch/memcpy_thunderx.S | 121 | 180 |
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_thunderx.S:5 | boundaries on both loads and stores. There are at least 96 bytes
to copy, so copy 16 bytes unaligned and then align. The loop
copies 64 bytes per iteration and prefetches one iteration ahead. */
.p2align 4
L(copy_long):
/* On thunderx, large memcpy's are helped by software prefetching.
This loop is i... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/multiarch/memcpy_thunderx.S | LGPL-2.1 | dff8da6b3e89b986bb7f6b1ec18cf65d5972e307 | github | libc | https://github.com/bminor/glibc/blob/dff8da6b3e89b986bb7f6b1ec18cf65d5972e307/sysdeps/aarch64/multiarch/memcpy_thunderx.S | 161 | 220 |
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_thunderx.S:6 | subs count, count, 64
b.hi L(prefetch_loop64)
b L(last64)
L(copy_long_without_prefetch):
and tmp1, dstin, 15
bic dst, dstin, 15
ldp D_l, D_h, [src]
sub src, src, tmp1
add count, count, tmp1 /* Count is now 16 too large. */
ldp A_l, A_h, [src, 16]
stp D_l, D_h, [dstin]
ldp B_l, B_h, [src, 32]
ldp C_l, C_h,... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/multiarch/memcpy_thunderx.S | LGPL-2.1 | dff8da6b3e89b986bb7f6b1ec18cf65d5972e307 | github | libc | https://github.com/bminor/glibc/blob/dff8da6b3e89b986bb7f6b1ec18cf65d5972e307/sysdeps/aarch64/multiarch/memcpy_thunderx.S | 201 | 260 |
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_thunderx.S:7 | ldp C_l, C_h, [srcend, -16]
stp D_l, D_h, [dst, 64]
stp E_l, E_h, [dstend, -64]
stp A_l, A_h, [dstend, -48]
stp B_l, B_h, [dstend, -32]
stp C_l, C_h, [dstend, -16]
ret
.p2align 4
L(move_long):
cbz tmp1, 3f
add srcend, src, count
add dstend, dstin, count
/* Align dstend to 16 byte alignment so that we don'... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/multiarch/memcpy_thunderx.S | LGPL-2.1 | dff8da6b3e89b986bb7f6b1ec18cf65d5972e307 | github | libc | https://github.com/bminor/glibc/blob/dff8da6b3e89b986bb7f6b1ec18cf65d5972e307/sysdeps/aarch64/multiarch/memcpy_thunderx.S | 241 | 300 |
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_thunderx.S:8 | ldp C_l, C_h, [srcend, -48]
stp D_l, D_h, [dstend, -64]!
ldp D_l, D_h, [srcend, -64]!
subs count, count, 64
b.hi 1b
/* Write the last full set of 64 bytes. The remainder is at most 64
bytes, so it is safe to always copy 64 bytes from the start even if
there is just 1 byte left. */
2:
ldp G_l, G_h, [src... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/multiarch/memcpy_thunderx.S | LGPL-2.1 | dff8da6b3e89b986bb7f6b1ec18cf65d5972e307 | github | libc | https://github.com/bminor/glibc/blob/dff8da6b3e89b986bb7f6b1ec18cf65d5972e307/sysdeps/aarch64/multiarch/memcpy_thunderx.S | 281 | 305 |
bminor/glibc:sysdeps/aarch64/multiarch/memcpy_thunderx.S:1 | /* A Thunderx Optimized memcpy implementation for AARCH64.
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... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/multiarch/memcpy_thunderx.S | LGPL-2.1 | 9fd3409842b3e2d31cff5dbd6f96066c430f0aa2 | github | libc | https://github.com/bminor/glibc/blob/9fd3409842b3e2d31cff5dbd6f96066c430f0aa2/sysdeps/aarch64/multiarch/memcpy_thunderx.S | 1 | 60 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.