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/memcmp.S:1
/* memcmp - compare memory Copyright (C) 2013-2017 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; ...
arm64
gas-like
handwritten
bminor/glibc
sysdeps/aarch64/memcmp.S
LGPL-2.1
922369032c604b4dcfd535e1bcddd4687e7126a5
github
libc
https://github.com/bminor/glibc/blob/922369032c604b4dcfd535e1bcddd4687e7126a5/sysdeps/aarch64/memcmp.S
1
60
bminor/glibc:sysdeps/aarch64/memcmp.S:1
/* memcmp - compare memory Copyright (C) 2013-2017 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; ...
arm64
gas-like
handwritten
bminor/glibc
sysdeps/aarch64/memcmp.S
LGPL-2.1
bfff8b1becd7d01c074177df7196ab327cd8c844
github
libc
https://github.com/bminor/glibc/blob/bfff8b1becd7d01c074177df7196ab327cd8c844/sysdeps/aarch64/memcmp.S
1
60
bminor/glibc:sysdeps/aarch64/memcmp.S:2
#define endloop x7 #define tmp1 x8 #define tmp2 x9 #define tmp3 x10 #define pos x11 #define limit_wd x12 #define mask x13 ENTRY_ALIGN (memcmp, 6) DELOUSE (0) DELOUSE (1) DELOUSE (2) cbz limit, L(ret0) eor tmp1, src1, src2 tst tmp1, #7 b.ne L(misaligned8) ands tmp1, src1, #7 b.ne L(mutual_align) add lim...
arm64
gas-like
handwritten
bminor/glibc
sysdeps/aarch64/memcmp.S
LGPL-2.1
bfff8b1becd7d01c074177df7196ab327cd8c844
github
libc
https://github.com/bminor/glibc/blob/bfff8b1becd7d01c074177df7196ab327cd8c844/sysdeps/aarch64/memcmp.S
41
100
bminor/glibc:sysdeps/aarch64/memcmp.S:3
#ifdef __AARCH64EB__ lsr mask, mask, limit #else lsl mask, mask, limit #endif bic data1, data1, mask bic data2, data2, mask orr diff, diff, mask L(not_limit): #ifndef __AARCH64EB__ rev diff, diff rev data1, data1 rev data2, data2 #endif /* The MS-non-zero bit of DIFF marks either the first bit that is di...
arm64
gas-like
handwritten
bminor/glibc
sysdeps/aarch64/memcmp.S
LGPL-2.1
bfff8b1becd7d01c074177df7196ab327cd8c844
github
libc
https://github.com/bminor/glibc/blob/bfff8b1becd7d01c074177df7196ab327cd8c844/sysdeps/aarch64/memcmp.S
81
140
bminor/glibc:sysdeps/aarch64/memcmp.S:4
mov tmp2, #~0 #ifdef __AARCH64EB__ /* Big-endian. Early bytes are at MSB. */ lsl tmp2, tmp2, tmp1 /* Shift (tmp1 & 63). */ #else /* Little-endian. Early bytes are at LSB. */ lsr tmp2, tmp2, tmp1 /* Shift (tmp1 & 63). */ #endif add limit_wd, limit, #7 orr data1, data1, tmp2 orr data2, data2, tmp2 lsr limit...
arm64
gas-like
handwritten
bminor/glibc
sysdeps/aarch64/memcmp.S
LGPL-2.1
bfff8b1becd7d01c074177df7196ab327cd8c844
github
libc
https://github.com/bminor/glibc/blob/bfff8b1becd7d01c074177df7196ab327cd8c844/sysdeps/aarch64/memcmp.S
121
154
bminor/glibc:sysdeps/aarch64/memcmp.S:1
/* memcmp - compare memory Copyright (C) 2013-2016 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; ...
arm64
gas-like
handwritten
bminor/glibc
sysdeps/aarch64/memcmp.S
LGPL-2.1
389d1f1b232b3d6b9d73ee2c50e543ace6675621
github
libc
https://github.com/bminor/glibc/blob/389d1f1b232b3d6b9d73ee2c50e543ace6675621/sysdeps/aarch64/memcmp.S
1
60
bminor/glibc:sysdeps/aarch64/memcmp.S:1
/* memcmp - compare memory Copyright (C) 2013-2016 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; ...
arm64
gas-like
handwritten
bminor/glibc
sysdeps/aarch64/memcmp.S
LGPL-2.1
f7a9f785e547bd599dee496fd906a28bcb4ec7fe
github
libc
https://github.com/bminor/glibc/blob/f7a9f785e547bd599dee496fd906a28bcb4ec7fe/sysdeps/aarch64/memcmp.S
1
60
bminor/glibc:sysdeps/aarch64/memcmp.S:2
#define endloop x7 #define tmp1 x8 #define tmp2 x9 #define tmp3 x10 #define pos x11 #define limit_wd x12 #define mask x13 ENTRY_ALIGN (memcmp, 6) cbz limit, L(ret0) eor tmp1, src1, src2 tst tmp1, #7 b.ne L(misaligned8) ands tmp1, src1, #7 b.ne L(mutual_align) add limit_wd, limit, #7 lsr limit_wd, limit_w...
arm64
gas-like
handwritten
bminor/glibc
sysdeps/aarch64/memcmp.S
LGPL-2.1
f7a9f785e547bd599dee496fd906a28bcb4ec7fe
github
libc
https://github.com/bminor/glibc/blob/f7a9f785e547bd599dee496fd906a28bcb4ec7fe/sysdeps/aarch64/memcmp.S
41
100
bminor/glibc:sysdeps/aarch64/memcmp.S:3
lsl mask, mask, limit #endif bic data1, data1, mask bic data2, data2, mask orr diff, diff, mask L(not_limit): #ifndef __AARCH64EB__ rev diff, diff rev data1, data1 rev data2, data2 #endif /* The MS-non-zero bit of DIFF marks either the first bit that is different, or the end of the significant data. Sh...
arm64
gas-like
handwritten
bminor/glibc
sysdeps/aarch64/memcmp.S
LGPL-2.1
f7a9f785e547bd599dee496fd906a28bcb4ec7fe
github
libc
https://github.com/bminor/glibc/blob/f7a9f785e547bd599dee496fd906a28bcb4ec7fe/sysdeps/aarch64/memcmp.S
81
140
bminor/glibc:sysdeps/aarch64/memcmp.S:4
lsl tmp2, tmp2, tmp1 /* Shift (tmp1 & 63). */ #else /* Little-endian. Early bytes are at LSB. */ lsr tmp2, tmp2, tmp1 /* Shift (tmp1 & 63). */ #endif add limit_wd, limit, #7 orr data1, data1, tmp2 orr data2, data2, tmp2 lsr limit_wd, limit_wd, #3 b L(start_realigned) L(ret0): mov result, #0 RET .p2align...
arm64
gas-like
handwritten
bminor/glibc
sysdeps/aarch64/memcmp.S
LGPL-2.1
f7a9f785e547bd599dee496fd906a28bcb4ec7fe
github
libc
https://github.com/bminor/glibc/blob/f7a9f785e547bd599dee496fd906a28bcb4ec7fe/sysdeps/aarch64/memcmp.S
121
151
bminor/glibc:sysdeps/aarch64/memcmp.S:1
/* memcmp - compare memory Copyright (C) 2013-2015 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; ...
arm64
gas-like
handwritten
bminor/glibc
sysdeps/aarch64/memcmp.S
LGPL-2.1
890b7a4b33d482b5c768ab47d70758b80227e9bc
github
libc
https://github.com/bminor/glibc/blob/890b7a4b33d482b5c768ab47d70758b80227e9bc/sysdeps/aarch64/memcmp.S
1
60
bminor/glibc:sysdeps/aarch64/memcpy.S:1
/* Generic optimized memcpy using SIMD. Copyright (C) 2012-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 ...
arm64
gas-like
handwritten
bminor/glibc
sysdeps/aarch64/memcpy.S
LGPL-2.1
04e750e75b73957cf1c791535a3f4319534a52fc
github
libc
https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/aarch64/memcpy.S
1
60
bminor/glibc:sysdeps/aarch64/memcpy.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 #ifndef MEMMOVE # define MEMMOVE memmove #endif #ifndef MEMCPY # define MEMCPY memcpy #endif /* This implementation supports both memcpy and memmove and shares most code. It use...
arm64
gas-like
handwritten
bminor/glibc
sysdeps/aarch64/memcpy.S
LGPL-2.1
04e750e75b73957cf1c791535a3f4319534a52fc
github
libc
https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/aarch64/memcpy.S
41
100
bminor/glibc:sysdeps/aarch64/memcpy.S:3
cmp count, 16 b.lo L(copy16) 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...
arm64
gas-like
handwritten
bminor/glibc
sysdeps/aarch64/memcpy.S
LGPL-2.1
04e750e75b73957cf1c791535a3f4319534a52fc
github
libc
https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/aarch64/memcpy.S
81
140
bminor/glibc:sysdeps/aarch64/memcpy.S:4
/* Medium copies: 33..128 bytes. */ L(copy32_128): 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, [srce...
arm64
gas-like
handwritten
bminor/glibc
sysdeps/aarch64/memcpy.S
LGPL-2.1
04e750e75b73957cf1c791535a3f4319534a52fc
github
libc
https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/aarch64/memcpy.S
121
180
bminor/glibc:sysdeps/aarch64/memcpy.S:5
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 from the end. */ L(copy64_from_end): ldp E_q, F_q, [srcend, -64] stp A_q, B_q, [ds...
arm64
gas-like
handwritten
bminor/glibc
sysdeps/aarch64/memcpy.S
LGPL-2.1
04e750e75b73957cf1c791535a3f4319534a52fc
github
libc
https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/aarch64/memcpy.S
161
220
bminor/glibc:sysdeps/aarch64/memcpy.S:6
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 D_q, [srcend, -16] and tmp1...
arm64
gas-like
handwritten
bminor/glibc
sysdeps/aarch64/memcpy.S
LGPL-2.1
04e750e75b73957cf1c791535a3f4319534a52fc
github
libc
https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/aarch64/memcpy.S
201
246
bminor/glibc:sysdeps/aarch64/memcpy.S:1
/* Generic optimized memcpy using SIMD. Copyright (C) 2012-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 ...
arm64
gas-like
handwritten
bminor/glibc
sysdeps/aarch64/memcpy.S
LGPL-2.1
ce2f26a22e6b6f5c108d156afd9b43a452bb024c
github
libc
https://github.com/bminor/glibc/blob/ce2f26a22e6b6f5c108d156afd9b43a452bb024c/sysdeps/aarch64/memcpy.S
1
60
bminor/glibc:sysdeps/aarch64/memcpy.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 #ifndef MEMMOVE # define MEMMOVE memmove #endif #ifndef MEMCPY # define MEMCPY memcpy #endif /* This implementation supports both memcpy and memmove and shares most code. It use...
arm64
gas-like
handwritten
bminor/glibc
sysdeps/aarch64/memcpy.S
LGPL-2.1
2642002380aafb71a1d3b569b6d7ebeab3284816
github
libc
https://github.com/bminor/glibc/blob/2642002380aafb71a1d3b569b6d7ebeab3284816/sysdeps/aarch64/memcpy.S
41
100
bminor/glibc:sysdeps/aarch64/memcpy.S:3
cmp count, 32 b.hi L(copy32_128) /* Small copies: 0..32 bytes. */ cmp count, 16 b.lo L(copy16) 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, [dst...
arm64
gas-like
handwritten
bminor/glibc
sysdeps/aarch64/memcpy.S
LGPL-2.1
2642002380aafb71a1d3b569b6d7ebeab3284816
github
libc
https://github.com/bminor/glibc/blob/2642002380aafb71a1d3b569b6d7ebeab3284816/sysdeps/aarch64/memcpy.S
81
140
bminor/glibc:sysdeps/aarch64/memcpy.S:4
L(copy0): ret .p2align 4 /* Medium copies: 33..128 bytes. */ L(copy32_128): 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...
arm64
gas-like
handwritten
bminor/glibc
sysdeps/aarch64/memcpy.S
LGPL-2.1
2642002380aafb71a1d3b569b6d7ebeab3284816
github
libc
https://github.com/bminor/glibc/blob/2642002380aafb71a1d3b569b6d7ebeab3284816/sysdeps/aarch64/memcpy.S
121
180
bminor/glibc:sysdeps/aarch64/memcpy.S:5
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, [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) /* ...
arm64
gas-like
handwritten
bminor/glibc
sysdeps/aarch64/memcpy.S
LGPL-2.1
2642002380aafb71a1d3b569b6d7ebeab3284816
github
libc
https://github.com/bminor/glibc/blob/2642002380aafb71a1d3b569b6d7ebeab3284816/sysdeps/aarch64/memcpy.S
161
220
bminor/glibc:sysdeps/aarch64/memcpy.S:6
/* Small moves: 0..32 bytes. */ cmp count, 16 b.lo L(copy16) ldr A_q, [src] ldr B_q, [srcend, -16] str A_q, [dstin] 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 ...
arm64
gas-like
handwritten
bminor/glibc
sysdeps/aarch64/memcpy.S
LGPL-2.1
2642002380aafb71a1d3b569b6d7ebeab3284816
github
libc
https://github.com/bminor/glibc/blob/2642002380aafb71a1d3b569b6d7ebeab3284816/sysdeps/aarch64/memcpy.S
201
254
bminor/glibc:sysdeps/aarch64/memcpy.S:7
/* 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(move0): ret END (MEMMOVE) libc_hidden_builtin_def (MEMMOVE)
arm64
gas-like
handwritten
bminor/glibc
sysdeps/aarch64/memcpy.S
LGPL-2.1
2642002380aafb71a1d3b569b6d7ebeab3284816
github
libc
https://github.com/bminor/glibc/blob/2642002380aafb71a1d3b569b6d7ebeab3284816/sysdeps/aarch64/memcpy.S
241
254
bminor/glibc:sysdeps/aarch64/memcpy.S:1
/* Generic optimized memcpy using SIMD. Copyright (C) 2012-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 ...
arm64
gas-like
handwritten
bminor/glibc
sysdeps/aarch64/memcpy.S
LGPL-2.1
dff8da6b3e89b986bb7f6b1ec18cf65d5972e307
github
libc
https://github.com/bminor/glibc/blob/dff8da6b3e89b986bb7f6b1ec18cf65d5972e307/sysdeps/aarch64/memcpy.S
1
60
bminor/glibc:sysdeps/aarch64/memcpy.S:1
/* Generic optimized memcpy using SIMD. Copyright (C) 2012-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 ...
arm64
gas-like
handwritten
bminor/glibc
sysdeps/aarch64/memcpy.S
LGPL-2.1
6d7e8eda9b85b08f207a6dc6f187e94e4817270f
github
libc
https://github.com/bminor/glibc/blob/6d7e8eda9b85b08f207a6dc6f187e94e4817270f/sysdeps/aarch64/memcpy.S
1
60
bminor/glibc:sysdeps/aarch64/memcpy.S:1
/* Generic optimized memcpy using SIMD. Copyright (C) 2012-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/memcpy.S
LGPL-2.1
e6f3fe362f1aab78b1448d69ecdbd9e3872636d3
github
libc
https://github.com/bminor/glibc/blob/e6f3fe362f1aab78b1448d69ecdbd9e3872636d3/sysdeps/aarch64/memcpy.S
1
60
bminor/glibc:sysdeps/aarch64/memcpy.S:1
/* Copyright (C) 2012-2022 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the...
arm64
gas-like
handwritten
bminor/glibc
sysdeps/aarch64/memcpy.S
LGPL-2.1
581c785bf31bc74430320c7856bbfa3875d025fe
github
libc
https://github.com/bminor/glibc/blob/581c785bf31bc74430320c7856bbfa3875d025fe/sysdeps/aarch64/memcpy.S
1
60
bminor/glibc:sysdeps/aarch64/memcpy.S:2
#define C_h x11 #define D_l x12 #define D_h x13 #define E_l x14 #define E_h x15 #define F_l x16 #define F_h x17 #define G_l count #define G_h dst #define H_l src #define H_h srcend #define tmp1 x14 #ifndef MEMMOVE # define MEMMOVE memmove #endif #ifndef MEMCPY # define MEMCPY memcpy #endif /* This implementation supp...
arm64
gas-like
handwritten
bminor/glibc
sysdeps/aarch64/memcpy.S
LGPL-2.1
581c785bf31bc74430320c7856bbfa3875d025fe
github
libc
https://github.com/bminor/glibc/blob/581c785bf31bc74430320c7856bbfa3875d025fe/sysdeps/aarch64/memcpy.S
41
100
bminor/glibc:sysdeps/aarch64/memcpy.S:3
add dstend, dstin, count cmp count, 128 b.hi L(copy_long) cmp count, 32 b.hi L(copy32_128) /* Small copies: 0..32 bytes. */ cmp count, 16 b.lo L(copy16) ldp A_l, A_h, [src] ldp D_l, D_h, [srcend, -16] stp A_l, A_h, [dstin] stp D_l, D_h, [dstend, -16] ret /* Copy 8-15 bytes. */ L(copy16): tbz count, 3,...
arm64
gas-like
handwritten
bminor/glibc
sysdeps/aarch64/memcpy.S
LGPL-2.1
581c785bf31bc74430320c7856bbfa3875d025fe
github
libc
https://github.com/bminor/glibc/blob/581c785bf31bc74430320c7856bbfa3875d025fe/sysdeps/aarch64/memcpy.S
81
140
bminor/glibc:sysdeps/aarch64/memcpy.S:4
ldrb B_lw, [src, tmp1] strb A_lw, [dstin] strb B_lw, [dstin, tmp1] strb C_lw, [dstend, -1] L(copy0): ret .p2align 4 /* Medium copies: 33..128 bytes. */ L(copy32_128): ldp A_l, A_h, [src] ldp B_l, B_h, [src, 16] ldp C_l, C_h, [srcend, -32] ldp D_l, D_h, [srcend, -16] cmp count, 64 b.hi L(copy128) stp A_l,...
arm64
gas-like
handwritten
bminor/glibc
sysdeps/aarch64/memcpy.S
LGPL-2.1
581c785bf31bc74430320c7856bbfa3875d025fe
github
libc
https://github.com/bminor/glibc/blob/581c785bf31bc74430320c7856bbfa3875d025fe/sysdeps/aarch64/memcpy.S
121
180
bminor/glibc:sysdeps/aarch64/memcpy.S:5
ret .p2align 4 /* Copy more than 128 bytes. */ L(copy_long): /* Copy 16 bytes and then align dst to 16-byte alignment. */ ldp D_l, D_h, [src] and tmp1, dstin, 15 bic dst, dstin, 15 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...
arm64
gas-like
handwritten
bminor/glibc
sysdeps/aarch64/memcpy.S
LGPL-2.1
581c785bf31bc74430320c7856bbfa3875d025fe
github
libc
https://github.com/bminor/glibc/blob/581c785bf31bc74430320c7856bbfa3875d025fe/sysdeps/aarch64/memcpy.S
161
220
bminor/glibc:sysdeps/aarch64/memcpy.S:6
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 END (MEMCPY) libc_hidden_builtin_def (MEMCPY) ENTRY_ALIGN (MEMMOVE, 4) PTR_ARG (0) PTR_ARG (1) SIZE_ARG (2) add srcend, src, count add dstend, dstin, count cmp count,...
arm64
gas-like
handwritten
bminor/glibc
sysdeps/aarch64/memcpy.S
LGPL-2.1
581c785bf31bc74430320c7856bbfa3875d025fe
github
libc
https://github.com/bminor/glibc/blob/581c785bf31bc74430320c7856bbfa3875d025fe/sysdeps/aarch64/memcpy.S
201
260
bminor/glibc:sysdeps/aarch64/memcpy.S:7
Copy 16 bytes and then align dst to 16-byte alignment. */ ldp D_l, D_h, [srcend, -16] and tmp1, dstend, 15 sub srcend, srcend, tmp1 sub count, count, tmp1 ldp A_l, A_h, [srcend, -16] stp D_l, D_h, [dstend, -16] ldp B_l, B_h, [srcend, -32] ldp C_l, C_h, [srcend, -48] ldp D_l, D_h, [srcend, -64]! sub dstend, d...
arm64
gas-like
handwritten
bminor/glibc
sysdeps/aarch64/memcpy.S
LGPL-2.1
581c785bf31bc74430320c7856bbfa3875d025fe
github
libc
https://github.com/bminor/glibc/blob/581c785bf31bc74430320c7856bbfa3875d025fe/sysdeps/aarch64/memcpy.S
241
284
bminor/glibc:sysdeps/aarch64/memcpy.S:1
/* Copyright (C) 2012-2021 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the...
arm64
gas-like
handwritten
bminor/glibc
sysdeps/aarch64/memcpy.S
LGPL-2.1
2b778ceb4010c28d70de9b8eab20e8d88eed586b
github
libc
https://github.com/bminor/glibc/blob/2b778ceb4010c28d70de9b8eab20e8d88eed586b/sysdeps/aarch64/memcpy.S
1
60
bminor/glibc:sysdeps/aarch64/memcpy.S:1
/* Copyright (C) 2012-2020 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the...
arm64
gas-like
handwritten
bminor/glibc
sysdeps/aarch64/memcpy.S
LGPL-2.1
45b1e17e9150dbd9ac2d578579063fbfa8e1b327
github
libc
https://github.com/bminor/glibc/blob/45b1e17e9150dbd9ac2d578579063fbfa8e1b327/sysdeps/aarch64/memcpy.S
1
60
bminor/glibc:sysdeps/aarch64/memcpy.S:2
#define C_h x11 #define D_l x12 #define D_h x13 #define E_l x14 #define E_h x15 #define F_l x16 #define F_h x17 #define G_l count #define G_h dst #define H_l src #define H_h srcend #define tmp1 x14 #ifndef MEMMOVE # define MEMMOVE memmove #endif #ifndef MEMCPY # define MEMCPY memcpy #endif /* This implementation supp...
arm64
gas-like
handwritten
bminor/glibc
sysdeps/aarch64/memcpy.S
LGPL-2.1
700065132744e0dfa6d4d9142d63f6e3a1934726
github
libc
https://github.com/bminor/glibc/blob/700065132744e0dfa6d4d9142d63f6e3a1934726/sysdeps/aarch64/memcpy.S
41
100
bminor/glibc:sysdeps/aarch64/memcpy.S:5
ret .p2align 4 /* Copy more than 128 bytes. */ L(copy_long): /* Copy 16 bytes and then align dst to 16-byte alignment. */ ldp D_l, D_h, [src] and tmp1, dstin, 15 bic dst, dstin, 15 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...
arm64
gas-like
handwritten
bminor/glibc
sysdeps/aarch64/memcpy.S
LGPL-2.1
700065132744e0dfa6d4d9142d63f6e3a1934726
github
libc
https://github.com/bminor/glibc/blob/700065132744e0dfa6d4d9142d63f6e3a1934726/sysdeps/aarch64/memcpy.S
161
220
bminor/glibc:sysdeps/aarch64/memcpy.S:6
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 END (MEMCPY) libc_hidden_builtin_def (MEMCPY) ENTRY_ALIGN (MEMMOVE, 4) DELOUSE (0) DELOUSE (1) DELOUSE (2) add srcend, src, count add dstend, dstin, count cmp count, ...
arm64
gas-like
handwritten
bminor/glibc
sysdeps/aarch64/memcpy.S
LGPL-2.1
700065132744e0dfa6d4d9142d63f6e3a1934726
github
libc
https://github.com/bminor/glibc/blob/700065132744e0dfa6d4d9142d63f6e3a1934726/sysdeps/aarch64/memcpy.S
201
260
bminor/glibc:sysdeps/aarch64/memcpy.S:1
/* Copyright (C) 2012-2020 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the...
arm64
gas-like
handwritten
bminor/glibc
sysdeps/aarch64/memcpy.S
LGPL-2.1
d614a7539657941a9201c236b2f15afac18e1213
github
libc
https://github.com/bminor/glibc/blob/d614a7539657941a9201c236b2f15afac18e1213/sysdeps/aarch64/memcpy.S
1
60
bminor/glibc:sysdeps/aarch64/memcpy.S:2
#define C_h x11 #define D_l x12 #define D_h x13 #define E_l x14 #define E_h x15 #define F_l x16 #define F_h x17 #define G_l count #define G_h dst #define H_l src #define H_h srcend #define tmp1 x14 /* Copies are split into 3 main cases: small copies of up to 32 bytes, medium copies of 33..128 bytes which are fully ...
arm64
gas-like
handwritten
bminor/glibc
sysdeps/aarch64/memcpy.S
LGPL-2.1
d614a7539657941a9201c236b2f15afac18e1213
github
libc
https://github.com/bminor/glibc/blob/d614a7539657941a9201c236b2f15afac18e1213/sysdeps/aarch64/memcpy.S
41
100
bminor/glibc:sysdeps/aarch64/memcpy.S:3
/* Common case falls through into memcpy. */ END (MEMMOVE) libc_hidden_builtin_def (MEMMOVE) ENTRY (MEMCPY) DELOUSE (0) DELOUSE (1) DELOUSE (2) prfm PLDL1KEEP, [src] add srcend, src, count add dstend, dstin, count cmp count, 32 b.ls L(copy32) cmp count, 128 b.hi L(copy_long) /* Medium copies: 33..128 byt...
arm64
gas-like
handwritten
bminor/glibc
sysdeps/aarch64/memcpy.S
LGPL-2.1
d614a7539657941a9201c236b2f15afac18e1213
github
libc
https://github.com/bminor/glibc/blob/d614a7539657941a9201c236b2f15afac18e1213/sysdeps/aarch64/memcpy.S
81
140
bminor/glibc:sysdeps/aarch64/memcpy.S:4
stp B_l, B_h, [dstend, -16] ret .p2align 4 1: /* 8-15 bytes. */ tbz count, 3, 1f ldr A_l, [src] ldr A_h, [srcend, -8] str A_l, [dstin] str A_h, [dstend, -8] ret .p2align 4 1: /* 4-7 bytes. */ tbz count, 2, 1f ldr A_lw, [src] ldr A_hw, [srcend, -4] str A_lw, [dstin] str A_hw, [dstend, -4] ret /* Cop...
arm64
gas-like
handwritten
bminor/glibc
sysdeps/aarch64/memcpy.S
LGPL-2.1
d614a7539657941a9201c236b2f15afac18e1213
github
libc
https://github.com/bminor/glibc/blob/d614a7539657941a9201c236b2f15afac18e1213/sysdeps/aarch64/memcpy.S
121
180
bminor/glibc:sysdeps/aarch64/memcpy.S:5
ldp G_l, G_h, [srcend, -64] ldp H_l, H_h, [srcend, -48] stp A_l, A_h, [dstin] stp B_l, B_h, [dstin, 16] stp E_l, E_h, [dstin, 32] stp F_l, F_h, [dstin, 48] stp G_l, G_h, [dstend, -64] stp H_l, H_h, [dstend, -48] stp C_l, C_h, [dstend, -32] stp D_l, D_h, [dstend, -16] ret /* Align DST to 16 byte alignment so...
arm64
gas-like
handwritten
bminor/glibc
sysdeps/aarch64/memcpy.S
LGPL-2.1
d614a7539657941a9201c236b2f15afac18e1213
github
libc
https://github.com/bminor/glibc/blob/d614a7539657941a9201c236b2f15afac18e1213/sysdeps/aarch64/memcpy.S
161
220
bminor/glibc:sysdeps/aarch64/memcpy.S:6
subs count, count, 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(last64): ldp E_l, E_h, [srcend, -64] stp A_l, A_h, [dst, 16] ldp A_l, A_h, [srcend, -48] stp B_l, B_...
arm64
gas-like
handwritten
bminor/glibc
sysdeps/aarch64/memcpy.S
LGPL-2.1
d614a7539657941a9201c236b2f15afac18e1213
github
libc
https://github.com/bminor/glibc/blob/d614a7539657941a9201c236b2f15afac18e1213/sysdeps/aarch64/memcpy.S
201
260
bminor/glibc:sysdeps/aarch64/memcpy.S:7
ldp C_l, C_h, [srcend, -48] ldp D_l, D_h, [srcend, -64]! sub dstend, dstend, tmp1 subs count, count, 128 b.ls 2f nop 1: stp A_l, A_h, [dstend, -16] ldp A_l, A_h, [srcend, -16] stp B_l, B_h, [dstend, -32] ldp B_l, B_h, [srcend, -32] stp C_l, C_h, [dstend, -48] ldp C_l, C_h, [srcend, -48] stp D_l, D_h, [dste...
arm64
gas-like
handwritten
bminor/glibc
sysdeps/aarch64/memcpy.S
LGPL-2.1
d614a7539657941a9201c236b2f15afac18e1213
github
libc
https://github.com/bminor/glibc/blob/d614a7539657941a9201c236b2f15afac18e1213/sysdeps/aarch64/memcpy.S
241
279
bminor/glibc:sysdeps/aarch64/memcpy.S:1
/* Copyright (C) 2012-2019 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the...
arm64
gas-like
handwritten
bminor/glibc
sysdeps/aarch64/memcpy.S
LGPL-2.1
b9f145df85145506f8e61bac38b792584a38d88f
github
libc
https://github.com/bminor/glibc/blob/b9f145df85145506f8e61bac38b792584a38d88f/sysdeps/aarch64/memcpy.S
1
60
bminor/glibc:sysdeps/aarch64/memcpy.S:1
/* Copyright (C) 2012-2019 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the...
arm64
gas-like
handwritten
bminor/glibc
sysdeps/aarch64/memcpy.S
LGPL-2.1
5a82c74822d3272df2f5929133680478c0cfb4bd
github
libc
https://github.com/bminor/glibc/blob/5a82c74822d3272df2f5929133680478c0cfb4bd/sysdeps/aarch64/memcpy.S
1
60
bminor/glibc:sysdeps/aarch64/memcpy.S:2
#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 unrolled. Large copies of mo...
arm64
gas-like
handwritten
bminor/glibc
sysdeps/aarch64/memcpy.S
LGPL-2.1
5a82c74822d3272df2f5929133680478c0cfb4bd
github
libc
https://github.com/bminor/glibc/blob/5a82c74822d3272df2f5929133680478c0cfb4bd/sysdeps/aarch64/memcpy.S
41
100
bminor/glibc:sysdeps/aarch64/memcpy.S:3
END (MEMMOVE) libc_hidden_builtin_def (MEMMOVE) ENTRY (MEMCPY) DELOUSE (0) DELOUSE (1) DELOUSE (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]...
arm64
gas-like
handwritten
bminor/glibc
sysdeps/aarch64/memcpy.S
LGPL-2.1
5a82c74822d3272df2f5929133680478c0cfb4bd
github
libc
https://github.com/bminor/glibc/blob/5a82c74822d3272df2f5929133680478c0cfb4bd/sysdeps/aarch64/memcpy.S
81
140
bminor/glibc:sysdeps/aarch64/memcpy.S:4
ret .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]...
arm64
gas-like
handwritten
bminor/glibc
sysdeps/aarch64/memcpy.S
LGPL-2.1
5a82c74822d3272df2f5929133680478c0cfb4bd
github
libc
https://github.com/bminor/glibc/blob/5a82c74822d3272df2f5929133680478c0cfb4bd/sysdeps/aarch64/memcpy.S
121
180
bminor/glibc:sysdeps/aarch64/memcpy.S:5
/* Align DST 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 ahead. */ .p2align 4 L(copy_long): and tmp1, dsti...
arm64
gas-like
handwritten
bminor/glibc
sysdeps/aarch64/memcpy.S
LGPL-2.1
5a82c74822d3272df2f5929133680478c0cfb4bd
github
libc
https://github.com/bminor/glibc/blob/5a82c74822d3272df2f5929133680478c0cfb4bd/sysdeps/aarch64/memcpy.S
161
220
bminor/glibc:sysdeps/aarch64/memcpy.S:6
stp C_l, C_h, [dst, 48] 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 ...
arm64
gas-like
handwritten
bminor/glibc
sysdeps/aarch64/memcpy.S
LGPL-2.1
5a82c74822d3272df2f5929133680478c0cfb4bd
github
libc
https://github.com/bminor/glibc/blob/5a82c74822d3272df2f5929133680478c0cfb4bd/sysdeps/aarch64/memcpy.S
201
260
bminor/glibc:sysdeps/aarch64/memcpy.S:7
stp C_l, C_h, [dstend, -48] 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 lef...
arm64
gas-like
handwritten
bminor/glibc
sysdeps/aarch64/memcpy.S
LGPL-2.1
5a82c74822d3272df2f5929133680478c0cfb4bd
github
libc
https://github.com/bminor/glibc/blob/5a82c74822d3272df2f5929133680478c0cfb4bd/sysdeps/aarch64/memcpy.S
241
267
bminor/glibc:sysdeps/aarch64/memcpy.S:1
/* Copyright (C) 2012-2019 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the...
arm64
gas-like
handwritten
bminor/glibc
sysdeps/aarch64/memcpy.S
LGPL-2.1
04277e02d7f54d3582bebcf8386b317018cd5e1d
github
libc
https://github.com/bminor/glibc/blob/04277e02d7f54d3582bebcf8386b317018cd5e1d/sysdeps/aarch64/memcpy.S
1
60
bminor/glibc:sysdeps/aarch64/memcpy.S:1
/* Copyright (C) 2012-2018 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the...
arm64
gas-like
handwritten
bminor/glibc
sysdeps/aarch64/memcpy.S
LGPL-2.1
688903eb3ef01301d239ab753d309d45720610a7
github
libc
https://github.com/bminor/glibc/blob/688903eb3ef01301d239ab753d309d45720610a7/sysdeps/aarch64/memcpy.S
1
60
bminor/glibc:sysdeps/aarch64/memcpy.S:1
/* Copyright (C) 2012-2017 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the...
arm64
gas-like
handwritten
bminor/glibc
sysdeps/aarch64/memcpy.S
LGPL-2.1
6a2c695266fab34cc057256d1b33d2268183f00e
github
libc
https://github.com/bminor/glibc/blob/6a2c695266fab34cc057256d1b33d2268183f00e/sysdeps/aarch64/memcpy.S
1
60
bminor/glibc:sysdeps/aarch64/memcpy.S:2
#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 unrolled. Large copies of mo...
arm64
gas-like
handwritten
bminor/glibc
sysdeps/aarch64/memcpy.S
LGPL-2.1
bfff8b1becd7d01c074177df7196ab327cd8c844
github
libc
https://github.com/bminor/glibc/blob/bfff8b1becd7d01c074177df7196ab327cd8c844/sysdeps/aarch64/memcpy.S
41
100
bminor/glibc:sysdeps/aarch64/memcpy.S:3
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, D_h, [srcend, -16] tbz tmp1, 5, 1f ldp B_l, B_h, [src, 16] ldp C_l...
arm64
gas-like
handwritten
bminor/glibc
sysdeps/aarch64/memcpy.S
LGPL-2.1
bfff8b1becd7d01c074177df7196ab327cd8c844
github
libc
https://github.com/bminor/glibc/blob/bfff8b1becd7d01c074177df7196ab327cd8c844/sysdeps/aarch64/memcpy.S
81
140
bminor/glibc:sysdeps/aarch64/memcpy.S:4
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_lw, [dstin, tmp1] s...
arm64
gas-like
handwritten
bminor/glibc
sysdeps/aarch64/memcpy.S
LGPL-2.1
bfff8b1becd7d01c074177df7196ab327cd8c844
github
libc
https://github.com/bminor/glibc/blob/bfff8b1becd7d01c074177df7196ab327cd8c844/sysdeps/aarch64/memcpy.S
121
180
bminor/glibc:sysdeps/aarch64/memcpy.S:5
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 readjust count. ...
arm64
gas-like
handwritten
bminor/glibc
sysdeps/aarch64/memcpy.S
LGPL-2.1
bfff8b1becd7d01c074177df7196ab327cd8c844
github
libc
https://github.com/bminor/glibc/blob/bfff8b1becd7d01c074177df7196ab327cd8c844/sysdeps/aarch64/memcpy.S
161
220
bminor/glibc:sysdeps/aarch64/memcpy.S:6
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'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 b...
arm64
gas-like
handwritten
bminor/glibc
sysdeps/aarch64/memcpy.S
LGPL-2.1
bfff8b1becd7d01c074177df7196ab327cd8c844
github
libc
https://github.com/bminor/glibc/blob/bfff8b1becd7d01c074177df7196ab327cd8c844/sysdeps/aarch64/memcpy.S
201
260
bminor/glibc:sysdeps/aarch64/memcpy.S:7
/* 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] stp C_l...
arm64
gas-like
handwritten
bminor/glibc
sysdeps/aarch64/memcpy.S
LGPL-2.1
bfff8b1becd7d01c074177df7196ab327cd8c844
github
libc
https://github.com/bminor/glibc/blob/bfff8b1becd7d01c074177df7196ab327cd8c844/sysdeps/aarch64/memcpy.S
241
260
bminor/glibc:sysdeps/aarch64/memcpy.S:1
/* Copyright (C) 2012-2016 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the...
arm64
gas-like
handwritten
bminor/glibc
sysdeps/aarch64/memcpy.S
LGPL-2.1
389d1f1b232b3d6b9d73ee2c50e543ace6675621
github
libc
https://github.com/bminor/glibc/blob/389d1f1b232b3d6b9d73ee2c50e543ace6675621/sysdeps/aarch64/memcpy.S
1
60
bminor/glibc:sysdeps/aarch64/memcpy.S:2
#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 unrolled. Large copies of mo...
arm64
gas-like
handwritten
bminor/glibc
sysdeps/aarch64/memcpy.S
LGPL-2.1
a024b39a4e31a049391b459234f6b3575c9fc107
github
libc
https://github.com/bminor/glibc/blob/a024b39a4e31a049391b459234f6b3575c9fc107/sysdeps/aarch64/memcpy.S
41
100
bminor/glibc:sysdeps/aarch64/memcpy.S:3
/* 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, [dstend, -16] ret ...
arm64
gas-like
handwritten
bminor/glibc
sysdeps/aarch64/memcpy.S
LGPL-2.1
a024b39a4e31a049391b459234f6b3575c9fc107
github
libc
https://github.com/bminor/glibc/blob/a024b39a4e31a049391b459234f6b3575c9fc107/sysdeps/aarch64/memcpy.S
81
140
bminor/glibc:sysdeps/aarch64/memcpy.S:4
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 4 /* 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, 32] ldp D_l, D_h,...
arm64
gas-like
handwritten
bminor/glibc
sysdeps/aarch64/memcpy.S
LGPL-2.1
a024b39a4e31a049391b459234f6b3575c9fc107
github
libc
https://github.com/bminor/glibc/blob/a024b39a4e31a049391b459234f6b3575c9fc107/sysdeps/aarch64/memcpy.S
121
180
bminor/glibc:sysdeps/aarch64/memcpy.S:5
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 2f 1: 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, C_h, [src, 48] stp D_l, D_h, [dst, 64]! ldp D_l, D_h, [src, ...
arm64
gas-like
handwritten
bminor/glibc
sysdeps/aarch64/memcpy.S
LGPL-2.1
a024b39a4e31a049391b459234f6b3575c9fc107
github
libc
https://github.com/bminor/glibc/blob/a024b39a4e31a049391b459234f6b3575c9fc107/sysdeps/aarch64/memcpy.S
161
220
bminor/glibc:sysdeps/aarch64/memcpy.S:6
/* 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 ahead. */ and tmp1, dstend, 15 ldp D_l, D_h, [...
arm64
gas-like
handwritten
bminor/glibc
sysdeps/aarch64/memcpy.S
LGPL-2.1
a024b39a4e31a049391b459234f6b3575c9fc107
github
libc
https://github.com/bminor/glibc/blob/a024b39a4e31a049391b459234f6b3575c9fc107/sysdeps/aarch64/memcpy.S
201
252
bminor/glibc:sysdeps/aarch64/memcpy.S:7
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) libc_hidden_builtin_def (memcpy)
arm64
gas-like
handwritten
bminor/glibc
sysdeps/aarch64/memcpy.S
LGPL-2.1
a024b39a4e31a049391b459234f6b3575c9fc107
github
libc
https://github.com/bminor/glibc/blob/a024b39a4e31a049391b459234f6b3575c9fc107/sysdeps/aarch64/memcpy.S
241
252
bminor/glibc:sysdeps/aarch64/memcpy.S:1
/* Copyright (C) 2012-2016 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the...
arm64
gas-like
handwritten
bminor/glibc
sysdeps/aarch64/memcpy.S
LGPL-2.1
b998e16e71c8617746b7c39500e925d28ff22ed8
github
libc
https://github.com/bminor/glibc/blob/b998e16e71c8617746b7c39500e925d28ff22ed8/sysdeps/aarch64/memcpy.S
1
60
bminor/glibc:sysdeps/aarch64/memcpy.S:2
#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 unrolled. Large copies of more than 96 bytes...
arm64
gas-like
handwritten
bminor/glibc
sysdeps/aarch64/memcpy.S
LGPL-2.1
b998e16e71c8617746b7c39500e925d28ff22ed8
github
libc
https://github.com/bminor/glibc/blob/b998e16e71c8617746b7c39500e925d28ff22ed8/sysdeps/aarch64/memcpy.S
41
100
bminor/glibc:sysdeps/aarch64/memcpy.S:3
L(copy16): tbz count, 3, 1f ldr A_l, [src] ldr A_h, [srcend, -8] str A_l, [dstin] str A_h, [dstend, -8] ret 1: tbz count, 2, 1f ldr A_lw, [src] ldr A_hw, [srcend, -4] str A_lw, [dstin] str A_hw, [dstend, -4] ret .p2align 4 1: cbz count, 2f ldrb A_lw, [src] tbz count, 1, 1f ldrh A_hw, [srcend, -2] strh...
arm64
gas-like
handwritten
bminor/glibc
sysdeps/aarch64/memcpy.S
LGPL-2.1
b998e16e71c8617746b7c39500e925d28ff22ed8
github
libc
https://github.com/bminor/glibc/blob/b998e16e71c8617746b7c39500e925d28ff22ed8/sysdeps/aarch64/memcpy.S
81
140
bminor/glibc:sysdeps/aarch64/memcpy.S:4
.p2align 4 /* 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, 32] ldp D_l, D_h, [src, 48] ldp E_l, E_h, [srcend, -32] ldp F_l, F_h, [srcend, -16] stp A_l, A_h, [dstin] stp B_l, B_h, [dstin, 16] stp C_l, C_h, [dstin, 32] ...
arm64
gas-like
handwritten
bminor/glibc
sysdeps/aarch64/memcpy.S
LGPL-2.1
b998e16e71c8617746b7c39500e925d28ff22ed8
github
libc
https://github.com/bminor/glibc/blob/b998e16e71c8617746b7c39500e925d28ff22ed8/sysdeps/aarch64/memcpy.S
121
180
bminor/glibc:sysdeps/aarch64/memcpy.S:5
ldp B_l, B_h, [src, 32] stp C_l, C_h, [dst, 48] ldp C_l, C_h, [src, 48] stp D_l, D_h, [dst, 64]! ldp D_l, D_h, [src, 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 end even if there is just 1 b...
arm64
gas-like
handwritten
bminor/glibc
sysdeps/aarch64/memcpy.S
LGPL-2.1
b998e16e71c8617746b7c39500e925d28ff22ed8
github
libc
https://github.com/bminor/glibc/blob/b998e16e71c8617746b7c39500e925d28ff22ed8/sysdeps/aarch64/memcpy.S
161
220
bminor/glibc:sysdeps/aarch64/memcpy.S:6
sub srcend, srcend, tmp1 sub count, count, tmp1 ldp A_l, A_h, [srcend, -16] stp D_l, D_h, [dstend, -16] ldp B_l, B_h, [srcend, -32] ldp C_l, C_h, [srcend, -48] ldp D_l, D_h, [srcend, -64]! sub dstend, dstend, tmp1 subs count, count, 128 b.ls 2f nop 1: stp A_l, A_h, [dstend, -16] ldp A_l, A_h, [srcend, -16]...
arm64
gas-like
handwritten
bminor/glibc
sysdeps/aarch64/memcpy.S
LGPL-2.1
b998e16e71c8617746b7c39500e925d28ff22ed8
github
libc
https://github.com/bminor/glibc/blob/b998e16e71c8617746b7c39500e925d28ff22ed8/sysdeps/aarch64/memcpy.S
201
244
bminor/glibc:sysdeps/aarch64/memcpy.S:1
/* Copyright (C) 2012-2016 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the...
arm64
gas-like
handwritten
bminor/glibc
sysdeps/aarch64/memcpy.S
LGPL-2.1
f7a9f785e547bd599dee496fd906a28bcb4ec7fe
github
libc
https://github.com/bminor/glibc/blob/f7a9f785e547bd599dee496fd906a28bcb4ec7fe/sysdeps/aarch64/memcpy.S
1
60
bminor/glibc:sysdeps/aarch64/memcpy.S:2
#define C_l x11 #define C_h x12 #define D_l x13 #define D_h x14 #include <sysdep.h> ENTRY_ALIGN (memcpy, 6) mov dst, dstin cmp count, #64 b.ge L(cpy_not_short) cmp count, #15 b.le L(tail15tiny) /* Deal with small copies quickly by dropping straight into the * exit block. */ L(tail63): /* Copy up to 48 byt...
arm64
gas-like
handwritten
bminor/glibc
sysdeps/aarch64/memcpy.S
LGPL-2.1
f7a9f785e547bd599dee496fd906a28bcb4ec7fe
github
libc
https://github.com/bminor/glibc/blob/f7a9f785e547bd599dee496fd906a28bcb4ec7fe/sysdeps/aarch64/memcpy.S
41
100
bminor/glibc:sysdeps/aarch64/memcpy.S:3
ldp A_l, A_h, [src, #-16] add dst, dst, count stp A_l, A_h, [dst, #-16] 1: RET L(tail15tiny): /* Copy up to 15 bytes of data. Does not assume additional data being copied. */ tbz count, #3, 1f ldr tmp1, [src], #8 str tmp1, [dst], #8 1: tbz count, #2, 1f ldr tmp1w, [src], #4 str tmp1w, [dst], #4 1: tbz...
arm64
gas-like
handwritten
bminor/glibc
sysdeps/aarch64/memcpy.S
LGPL-2.1
f7a9f785e547bd599dee496fd906a28bcb4ec7fe
github
libc
https://github.com/bminor/glibc/blob/f7a9f785e547bd599dee496fd906a28bcb4ec7fe/sysdeps/aarch64/memcpy.S
81
140
bminor/glibc:sysdeps/aarch64/memcpy.S:4
stp A_l, A_h, [dst] add dst, dst, tmp2 /* There may be less than 63 bytes to go now. */ cmp count, #63 b.le L(tail63) 2: subs count, count, #128 b.ge L(cpy_body_large) /* Less than 128 bytes to copy, so handle 64 here and then jump * to the tail. */ ldp A_l, A_h, [src] ldp B_l, B_h, [src, #16] ldp C_l, C_...
arm64
gas-like
handwritten
bminor/glibc
sysdeps/aarch64/memcpy.S
LGPL-2.1
f7a9f785e547bd599dee496fd906a28bcb4ec7fe
github
libc
https://github.com/bminor/glibc/blob/f7a9f785e547bd599dee496fd906a28bcb4ec7fe/sysdeps/aarch64/memcpy.S
121
176
bminor/glibc:sysdeps/aarch64/memcpy.S:5
ldp C_l, C_h, [src, #48] stp D_l, D_h, [dst, #64]! ldp D_l, D_h, [src, #64]! subs count, count, #64 b.ge 1b stp A_l, A_h, [dst, #16] stp B_l, B_h, [dst, #32] stp C_l, C_h, [dst, #48] stp D_l, D_h, [dst, #64] add src, src, #16 add dst, dst, #64 + 16 tst count, #0x3f b.ne L(tail63) RET END (memcpy) libc_hidd...
arm64
gas-like
handwritten
bminor/glibc
sysdeps/aarch64/memcpy.S
LGPL-2.1
f7a9f785e547bd599dee496fd906a28bcb4ec7fe
github
libc
https://github.com/bminor/glibc/blob/f7a9f785e547bd599dee496fd906a28bcb4ec7fe/sysdeps/aarch64/memcpy.S
161
176
bminor/glibc:sysdeps/aarch64/memcpy.S:1
/* Copyright (C) 2012-2015 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the...
arm64
gas-like
handwritten
bminor/glibc
sysdeps/aarch64/memcpy.S
LGPL-2.1
890b7a4b33d482b5c768ab47d70758b80227e9bc
github
libc
https://github.com/bminor/glibc/blob/890b7a4b33d482b5c768ab47d70758b80227e9bc/sysdeps/aarch64/memcpy.S
1
60
bminor/glibc:sysdeps/aarch64/memmove.S:1
/* Copyright (C) 2012-2016 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the...
arm64
gas-like
handwritten
bminor/glibc
sysdeps/aarch64/memmove.S
LGPL-2.1
f7a9f785e547bd599dee496fd906a28bcb4ec7fe
github
libc
https://github.com/bminor/glibc/blob/f7a9f785e547bd599dee496fd906a28bcb4ec7fe/sysdeps/aarch64/memmove.S
1
60
bminor/glibc:sysdeps/aarch64/memmove.S:2
#define B_l x9 #define B_h x10 #define C_l x11 #define C_h x12 #define D_l x13 #define D_h x14 ENTRY_ALIGN (memmove, 6) cmp dstin, src b.lo L(downwards) add tmp1, src, count cmp dstin, tmp1 b.hs memcpy /* No overlap. */ /* Upwards move with potential overlap. * Need to move from the tail backwards. SRC an...
arm64
gas-like
handwritten
bminor/glibc
sysdeps/aarch64/memmove.S
LGPL-2.1
f7a9f785e547bd599dee496fd906a28bcb4ec7fe
github
libc
https://github.com/bminor/glibc/blob/f7a9f785e547bd599dee496fd906a28bcb4ec7fe/sysdeps/aarch64/memmove.S
41
100
bminor/glibc:sysdeps/aarch64/memmove.S:3
2: ldp A_l, A_h, [src] stp A_l, A_h, [dst] L(tail15up): /* Move up to 15 bytes of data. Does not assume additional data * being moved. */ tbz count, #3, 1f ldr tmp1, [src, #-8]! str tmp1, [dst, #-8]! 1: tbz count, #2, 1f ldr tmp1w, [src, #-4]! str tmp1w, [dst, #-4]! 1: tbz count, #1, 1f ldrh tmp1w, [src,...
arm64
gas-like
handwritten
bminor/glibc
sysdeps/aarch64/memmove.S
LGPL-2.1
f7a9f785e547bd599dee496fd906a28bcb4ec7fe
github
libc
https://github.com/bminor/glibc/blob/f7a9f785e547bd599dee496fd906a28bcb4ec7fe/sysdeps/aarch64/memmove.S
81
140
bminor/glibc:sysdeps/aarch64/memmove.S:4
1: tbz tmp2, #1, 1f ldrh tmp1w, [src, #-2]! strh tmp1w, [dst, #-2]! 1: tbz tmp2, #0, 1f ldrb tmp1w, [src, #-1]! strb tmp1w, [dst, #-1]! 1: /* There may be less than 63 bytes to go now. */ cmp count, #63 b.le L(tail63up) 2: subs count, count, #128 b.ge L(mov_body_large_up) /* Less than 128 bytes to move, s...
arm64
gas-like
handwritten
bminor/glibc
sysdeps/aarch64/memmove.S
LGPL-2.1
f7a9f785e547bd599dee496fd906a28bcb4ec7fe
github
libc
https://github.com/bminor/glibc/blob/f7a9f785e547bd599dee496fd906a28bcb4ec7fe/sysdeps/aarch64/memmove.S
121
180
bminor/glibc:sysdeps/aarch64/memmove.S:5
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, C_h, [src, #-48] stp D_l, D_h, [dst, #-64]! ldp D_l, D_h, [src, #-64]! subs count, count, #64 b.ge 1b stp A_l, A_h, [dst, #-16] stp B_l, B_h, [dst, #-32] stp C_l, C_h, [...
arm64
gas-like
handwritten
bminor/glibc
sysdeps/aarch64/memmove.S
LGPL-2.1
f7a9f785e547bd599dee496fd906a28bcb4ec7fe
github
libc
https://github.com/bminor/glibc/blob/f7a9f785e547bd599dee496fd906a28bcb4ec7fe/sysdeps/aarch64/memmove.S
161
220
bminor/glibc:sysdeps/aarch64/memmove.S:6
b.lt 2f ldp A_l, A_h, [src, #-48] stp A_l, A_h, [dst, #-48] 1: ldp A_l, A_h, [src, #-32] stp A_l, A_h, [dst, #-32] 2: ldp A_l, A_h, [src, #-16] stp A_l, A_h, [dst, #-16] L(tail15down): /* Move up to 15 bytes of data. Does not assume additional data being moved. */ tbz count, #3, 1f ldr tmp1, [src], #8 s...
arm64
gas-like
handwritten
bminor/glibc
sysdeps/aarch64/memmove.S
LGPL-2.1
f7a9f785e547bd599dee496fd906a28bcb4ec7fe
github
libc
https://github.com/bminor/glibc/blob/f7a9f785e547bd599dee496fd906a28bcb4ec7fe/sysdeps/aarch64/memmove.S
201
260
bminor/glibc:sysdeps/aarch64/memmove.S:7
tbz tmp2, #3, 1f ldr tmp1, [src], #8 str tmp1, [dst], #8 1: tbz tmp2, #2, 1f ldr tmp1w, [src], #4 str tmp1w, [dst], #4 1: tbz tmp2, #1, 1f ldrh tmp1w, [src], #2 strh tmp1w, [dst], #2 1: tbz tmp2, #0, 1f ldrb tmp1w, [src], #1 strb tmp1w, [dst], #1 1: /* There may be less than 63 bytes to go now. */ cmp co...
arm64
gas-like
handwritten
bminor/glibc
sysdeps/aarch64/memmove.S
LGPL-2.1
f7a9f785e547bd599dee496fd906a28bcb4ec7fe
github
libc
https://github.com/bminor/glibc/blob/f7a9f785e547bd599dee496fd906a28bcb4ec7fe/sysdeps/aarch64/memmove.S
241
300
bminor/glibc:sysdeps/aarch64/memmove.S:8
* 64 bytes per line this ensures the entire loop is in one line. */ .p2align 6 L(mov_body_large_down): /* There are at least 128 bytes to move. */ ldp A_l, A_h, [src, #0] sub dst, dst, #16 /* Pre-bias. */ ldp B_l, B_h, [src, #16] ldp C_l, C_h, [src, #32] ldp D_l, D_h, [src, #48]! /* src += 64 - Pre-bias. */...
arm64
gas-like
handwritten
bminor/glibc
sysdeps/aarch64/memmove.S
LGPL-2.1
f7a9f785e547bd599dee496fd906a28bcb4ec7fe
github
libc
https://github.com/bminor/glibc/blob/f7a9f785e547bd599dee496fd906a28bcb4ec7fe/sysdeps/aarch64/memmove.S
281
312
bminor/glibc:sysdeps/aarch64/memmove.S:1
/* Copyright (C) 2012-2015 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the...
arm64
gas-like
handwritten
bminor/glibc
sysdeps/aarch64/memmove.S
LGPL-2.1
890b7a4b33d482b5c768ab47d70758b80227e9bc
github
libc
https://github.com/bminor/glibc/blob/890b7a4b33d482b5c768ab47d70758b80227e9bc/sysdeps/aarch64/memmove.S
1
60
bminor/glibc:sysdeps/aarch64/memrchr.S:1
/* memrchr - find the last occurrence of a byte in a memory block Copyright (C) 2015-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 publ...
arm64
gas-like
handwritten
bminor/glibc
sysdeps/aarch64/memrchr.S
LGPL-2.1
04e750e75b73957cf1c791535a3f4319534a52fc
github
libc
https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/aarch64/memrchr.S
1
60
bminor/glibc:sysdeps/aarch64/memrchr.S:2
#define vrepchr v0 #define qdata q1 #define vdata v1 #define vhas_chr v2 #define vend v3 #define dend d3 /* Core algorithm: For each 16-byte chunk we calculate a 64-bit nibble mask value with four bits per byte. We take 4 bits of every comparison byte with shift right and narrow by 4 instruction. Sinc...
arm64
gas-like
handwritten
bminor/glibc
sysdeps/aarch64/memrchr.S
LGPL-2.1
04e750e75b73957cf1c791535a3f4319534a52fc
github
libc
https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/aarch64/memrchr.S
41
100
bminor/glibc:sysdeps/aarch64/memrchr.S:3
/* Make sure that it won't overread by a 16-byte chunk */ sub cntrem, cntrem, 1 tbz cntrem, 4, L(loop32_2) add src, src, 16 .p2align 5 L(loop32): ldr qdata, [src, -32]! cmeq vhas_chr.16b, vdata.16b, vrepchr.16b umaxp vend.16b, vhas_chr.16b, vhas_chr.16b /* 128->64 */ fmov synd, dend cbnz synd, L(end) L(loop...
arm64
gas-like
handwritten
bminor/glibc
sysdeps/aarch64/memrchr.S
LGPL-2.1
04e750e75b73957cf1c791535a3f4319534a52fc
github
libc
https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/aarch64/memrchr.S
81
126
bminor/glibc:sysdeps/aarch64/memrchr.S:1
/* memrchr - find the last occurrence of a byte in a memory block Copyright (C) 2015-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 publ...
arm64
gas-like
handwritten
bminor/glibc
sysdeps/aarch64/memrchr.S
LGPL-2.1
ce2f26a22e6b6f5c108d156afd9b43a452bb024c
github
libc
https://github.com/bminor/glibc/blob/ce2f26a22e6b6f5c108d156afd9b43a452bb024c/sysdeps/aarch64/memrchr.S
1
60
bminor/glibc:sysdeps/aarch64/memrchr.S:1
/* memrchr - find the last occurrence of a byte in a memory block Copyright (C) 2015-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 publ...
arm64
gas-like
handwritten
bminor/glibc
sysdeps/aarch64/memrchr.S
LGPL-2.1
2642002380aafb71a1d3b569b6d7ebeab3284816
github
libc
https://github.com/bminor/glibc/blob/2642002380aafb71a1d3b569b6d7ebeab3284816/sysdeps/aarch64/memrchr.S
1
60
bminor/glibc:sysdeps/aarch64/memrchr.S:2
#define vrepchr v0 #define qdata q1 #define vdata v1 #define vhas_chr v2 #define vend v3 #define dend d3 /* Core algorithm: For each 16-byte chunk we calculate a 64-bit nibble mask value with four bits per byte. We take 4 bits of every comparison byte with shift right and narrow by 4 instruction. Sinc...
arm64
gas-like
handwritten
bminor/glibc
sysdeps/aarch64/memrchr.S
LGPL-2.1
2642002380aafb71a1d3b569b6d7ebeab3284816
github
libc
https://github.com/bminor/glibc/blob/2642002380aafb71a1d3b569b6d7ebeab3284816/sysdeps/aarch64/memrchr.S
41
100
bminor/glibc:sysdeps/aarch64/memrchr.S:3
subs cntrem, src, srcin b.ls L(nomatch) /* Make sure that it won't overread by a 16-byte chunk */ sub cntrem, cntrem, 1 tbz cntrem, 4, L(loop32_2) add src, src, 16 .p2align 5 L(loop32): ldr qdata, [src, -32]! cmeq vhas_chr.16b, vdata.16b, vrepchr.16b umaxp vend.16b, vhas_chr.16b, vhas_chr.16b /* 128->64 */ ...
arm64
gas-like
handwritten
bminor/glibc
sysdeps/aarch64/memrchr.S
LGPL-2.1
2642002380aafb71a1d3b569b6d7ebeab3284816
github
libc
https://github.com/bminor/glibc/blob/2642002380aafb71a1d3b569b6d7ebeab3284816/sysdeps/aarch64/memrchr.S
81
128
bminor/glibc:sysdeps/aarch64/memrchr.S:1
/* memrchr - find the last occurrence of a byte in a memory block Copyright (C) 2015-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 publ...
arm64
gas-like
handwritten
bminor/glibc
sysdeps/aarch64/memrchr.S
LGPL-2.1
dff8da6b3e89b986bb7f6b1ec18cf65d5972e307
github
libc
https://github.com/bminor/glibc/blob/dff8da6b3e89b986bb7f6b1ec18cf65d5972e307/sysdeps/aarch64/memrchr.S
1
60
bminor/glibc:sysdeps/aarch64/memrchr.S:1
/* memrchr - find the last occurrence of a byte in a memory block Copyright (C) 2015-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 publ...
arm64
gas-like
handwritten
bminor/glibc
sysdeps/aarch64/memrchr.S
LGPL-2.1
22999b2f0fb62eed1af4095d062bd1272d6afeb1
github
libc
https://github.com/bminor/glibc/blob/22999b2f0fb62eed1af4095d062bd1272d6afeb1/sysdeps/aarch64/memrchr.S
1
60