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/strchrnul.S:3 | cmeq vhas_chr1.16b, vdata1.16b, vrepchr.16b
cmeq vhas_nul2.16b, vdata2.16b, #0
cmeq vhas_chr2.16b, vdata2.16b, vrepchr.16b
orr vhas_chr1.16b, vhas_chr1.16b, vhas_nul1.16b
orr vhas_chr2.16b, vhas_chr2.16b, vhas_nul2.16b
and vhas_chr1.16b, vhas_chr1.16b, vrepmask.16b
and vhas_chr2.16b, vhas_chr2.16b, vrepmask.16b
... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strchrnul.S | LGPL-2.1 | d614a7539657941a9201c236b2f15afac18e1213 | github | libc | https://github.com/bminor/glibc/blob/d614a7539657941a9201c236b2f15afac18e1213/sysdeps/aarch64/strchrnul.S | 81 | 131 |
bminor/glibc:sysdeps/aarch64/strchrnul.S:4 | /* Count the trailing zeros, by bit reversing... */
rbit tmp1, tmp1
/* Re-bias source. */
sub src, src, #32
clz tmp1, tmp1 /* ... and counting the leading zeros. */
/* tmp1 is twice the offset into the fragment. */
add result, src, tmp1, lsr #1
ret
END(__strchrnul)
weak_alias (__strchrnul, strchrnul) | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strchrnul.S | LGPL-2.1 | d614a7539657941a9201c236b2f15afac18e1213 | github | libc | https://github.com/bminor/glibc/blob/d614a7539657941a9201c236b2f15afac18e1213/sysdeps/aarch64/strchrnul.S | 121 | 131 |
bminor/glibc:sysdeps/aarch64/strchrnul.S:1 | /* strchrnul - find a character or nul in a string
Copyright (C) 2014-2019 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Fr... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strchrnul.S | LGPL-2.1 | 5a82c74822d3272df2f5929133680478c0cfb4bd | github | libc | https://github.com/bminor/glibc/blob/5a82c74822d3272df2f5929133680478c0cfb4bd/sysdeps/aarch64/strchrnul.S | 1 | 60 |
bminor/glibc:sysdeps/aarch64/strchrnul.S:1 | /* strchrnul - find a character or nul in a string
Copyright (C) 2014-2019 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Fr... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strchrnul.S | LGPL-2.1 | 04277e02d7f54d3582bebcf8386b317018cd5e1d | github | libc | https://github.com/bminor/glibc/blob/04277e02d7f54d3582bebcf8386b317018cd5e1d/sysdeps/aarch64/strchrnul.S | 1 | 60 |
bminor/glibc:sysdeps/aarch64/strchrnul.S:1 | /* strchrnul - find a character or nul in a string
Copyright (C) 2014-2018 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Fr... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strchrnul.S | LGPL-2.1 | 688903eb3ef01301d239ab753d309d45720610a7 | github | libc | https://github.com/bminor/glibc/blob/688903eb3ef01301d239ab753d309d45720610a7/sysdeps/aarch64/strchrnul.S | 1 | 60 |
bminor/glibc:sysdeps/aarch64/strchrnul.S:1 | /* strchrnul - find a character or nul in a string
Copyright (C) 2014-2017 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Fr... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strchrnul.S | LGPL-2.1 | bfff8b1becd7d01c074177df7196ab327cd8c844 | github | libc | https://github.com/bminor/glibc/blob/bfff8b1becd7d01c074177df7196ab327cd8c844/sysdeps/aarch64/strchrnul.S | 1 | 60 |
bminor/glibc:sysdeps/aarch64/strchrnul.S:1 | /* strchrnul - find a character or nul in a string
Copyright (C) 2014-2016 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Fr... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strchrnul.S | LGPL-2.1 | 389d1f1b232b3d6b9d73ee2c50e543ace6675621 | github | libc | https://github.com/bminor/glibc/blob/389d1f1b232b3d6b9d73ee2c50e543ace6675621/sysdeps/aarch64/strchrnul.S | 1 | 60 |
bminor/glibc:sysdeps/aarch64/strchrnul.S:2 | #define vrepchr v0
#define vdata1 v1
#define vdata2 v2
#define vhas_nul1 v3
#define vhas_nul2 v4
#define vhas_chr1 v5
#define vhas_chr2 v6
#define vrepmask v7
#define vend1 v16
/* Core algorithm.
For each 32-byte hunk we calculate a 64-bit syndrome value, with
two bits per byte (LSB is always in bits 0 and ... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strchrnul.S | LGPL-2.1 | f7a9f785e547bd599dee496fd906a28bcb4ec7fe | github | libc | https://github.com/bminor/glibc/blob/f7a9f785e547bd599dee496fd906a28bcb4ec7fe/sysdeps/aarch64/strchrnul.S | 41 | 100 |
bminor/glibc:sysdeps/aarch64/strchrnul.S:3 | cmeq vhas_nul2.16b, vdata2.16b, #0
cmeq vhas_chr2.16b, vdata2.16b, vrepchr.16b
orr vhas_chr1.16b, vhas_chr1.16b, vhas_nul1.16b
orr vhas_chr2.16b, vhas_chr2.16b, vhas_nul2.16b
and vhas_chr1.16b, vhas_chr1.16b, vrepmask.16b
and vhas_chr2.16b, vhas_chr2.16b, vrepmask.16b
lsl tmp1, tmp1, #1
addp vend1.16b, vhas_chr1... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strchrnul.S | LGPL-2.1 | f7a9f785e547bd599dee496fd906a28bcb4ec7fe | github | libc | https://github.com/bminor/glibc/blob/f7a9f785e547bd599dee496fd906a28bcb4ec7fe/sysdeps/aarch64/strchrnul.S | 81 | 130 |
bminor/glibc:sysdeps/aarch64/strchrnul.S:4 | rbit tmp1, tmp1
/* Re-bias source. */
sub src, src, #32
clz tmp1, tmp1 /* ... and counting the leading zeros. */
/* tmp1 is twice the offset into the fragment. */
add result, src, tmp1, lsr #1
ret
END(__strchrnul)
weak_alias (__strchrnul, strchrnul) | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strchrnul.S | LGPL-2.1 | f7a9f785e547bd599dee496fd906a28bcb4ec7fe | github | libc | https://github.com/bminor/glibc/blob/f7a9f785e547bd599dee496fd906a28bcb4ec7fe/sysdeps/aarch64/strchrnul.S | 121 | 130 |
bminor/glibc:sysdeps/aarch64/strchrnul.S:1 | /* strchrnul - find a character or nul in a string
Copyright (C) 2014-2015 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Fr... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strchrnul.S | LGPL-2.1 | 890b7a4b33d482b5c768ab47d70758b80227e9bc | github | libc | https://github.com/bminor/glibc/blob/890b7a4b33d482b5c768ab47d70758b80227e9bc/sysdeps/aarch64/strchrnul.S | 1 | 60 |
bminor/glibc:sysdeps/aarch64/strcmp.S:1 | /* 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 Foundation; either
version 2.1 of the... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strcmp.S | LGPL-2.1 | 04e750e75b73957cf1c791535a3f4319534a52fc | github | libc | https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/aarch64/strcmp.S | 1 | 60 |
bminor/glibc:sysdeps/aarch64/strcmp.S:2 | #define diff x5
#define off1 x5
#define syndrome x6
#define tmp x6
#define data3 x7
#define zeroones x8
#define shift x9
#define off2 x10
/* On big-endian early bytes are at MSB and on little-endian LSB.
LS_FW means shifting towards early bytes. */
#ifdef __AARCH64EB__
# define LS_FW lsl
#else
# define LS_FW... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strcmp.S | LGPL-2.1 | 04e750e75b73957cf1c791535a3f4319534a52fc | github | libc | https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/aarch64/strcmp.S | 41 | 100 |
bminor/glibc:sysdeps/aarch64/strcmp.S:3 | orr tmp, tmp, REP8_7f
#else
sub has_nul, data1, zeroones
orr tmp, data1, REP8_7f
#endif
bics has_nul, has_nul, tmp /* Non-zero if NUL terminator. */
ccmp data1, data2, 0, eq
b.eq L(loop_aligned)
#ifdef __AARCH64EB__
rev has_nul, has_nul
#endif
eor diff, data1, data2
orr syndrome, diff, has_nul
L(end):
#ifndef ... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strcmp.S | LGPL-2.1 | 04e750e75b73957cf1c791535a3f4319534a52fc | github | libc | https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/aarch64/strcmp.S | 81 | 140 |
bminor/glibc:sysdeps/aarch64/strcmp.S:4 | ldr data1, [src1], 8
neg shift, src2, lsl 3 /* Bits to alignment -64. */
mov tmp, -1
LS_FW tmp, tmp, shift
orr data1, data1, tmp
orr data2, data2, tmp
b L(start_realigned)
L(misaligned8):
/* Align SRC1 to 8 bytes and then compare 8 bytes at a time, always
checking to make sure that we don't access beyond t... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strcmp.S | LGPL-2.1 | 04e750e75b73957cf1c791535a3f4319534a52fc | github | libc | https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/aarch64/strcmp.S | 121 | 180 |
bminor/glibc:sysdeps/aarch64/strcmp.S:5 | ldr data3, [src1, off1]
ldr data2, [src1, off2]
#ifdef __AARCH64EB__
rev data3, data3
#endif
sub has_nul, data3, zeroones
orr tmp, data3, REP8_7f
ldr data1, [src1], 8
bics has_nul, has_nul, tmp
ccmp data1, data2, 0, eq
b.eq L(loop_unaligned)
lsl tmp, has_nul, shift
#ifdef __AARCH64EB__
rev tmp, tmp
#endif
e... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strcmp.S | LGPL-2.1 | 04e750e75b73957cf1c791535a3f4319534a52fc | github | libc | https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/aarch64/strcmp.S | 161 | 198 |
bminor/glibc:sysdeps/aarch64/strcmp.S:1 | /* 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 Foundation; either
version 2.1 of the... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strcmp.S | LGPL-2.1 | ce2f26a22e6b6f5c108d156afd9b43a452bb024c | github | libc | https://github.com/bminor/glibc/blob/ce2f26a22e6b6f5c108d156afd9b43a452bb024c/sysdeps/aarch64/strcmp.S | 1 | 60 |
bminor/glibc:sysdeps/aarch64/strcmp.S:2 | #define diff x5
#define off1 x5
#define syndrome x6
#define tmp x6
#define data3 x7
#define zeroones x8
#define shift x9
#define off2 x10
/* On big-endian early bytes are at MSB and on little-endian LSB.
LS_FW means shifting towards early bytes. */
#ifdef __AARCH64EB__
# define LS_FW lsl
#else
# define LS_FW... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strcmp.S | LGPL-2.1 | 2642002380aafb71a1d3b569b6d7ebeab3284816 | github | libc | https://github.com/bminor/glibc/blob/2642002380aafb71a1d3b569b6d7ebeab3284816/sysdeps/aarch64/strcmp.S | 41 | 100 |
bminor/glibc:sysdeps/aarch64/strcmp.S:3 | rev tmp, data1
sub has_nul, tmp, zeroones
orr tmp, tmp, REP8_7f
#else
sub has_nul, data1, zeroones
orr tmp, data1, REP8_7f
#endif
bics has_nul, has_nul, tmp /* Non-zero if NUL terminator. */
ccmp data1, data2, 0, eq
b.eq L(loop_aligned)
#ifdef __AARCH64EB__
rev has_nul, has_nul
#endif
eor diff, data1, data2
... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strcmp.S | LGPL-2.1 | 2642002380aafb71a1d3b569b6d7ebeab3284816 | github | libc | https://github.com/bminor/glibc/blob/2642002380aafb71a1d3b569b6d7ebeab3284816/sysdeps/aarch64/strcmp.S | 81 | 140 |
bminor/glibc:sysdeps/aarch64/strcmp.S:4 | bic src1, src1, 7
ldr data2, [src1, off2]
ldr data1, [src1], 8
neg shift, src2, lsl 3 /* Bits to alignment -64. */
mov tmp, -1
LS_FW tmp, tmp, shift
orr data1, data1, tmp
orr data2, data2, tmp
b L(start_realigned)
L(misaligned8):
/* Align SRC1 to 8 bytes and then compare 8 bytes at a time, always
checkin... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strcmp.S | LGPL-2.1 | 2642002380aafb71a1d3b569b6d7ebeab3284816 | github | libc | https://github.com/bminor/glibc/blob/2642002380aafb71a1d3b569b6d7ebeab3284816/sysdeps/aarch64/strcmp.S | 121 | 180 |
bminor/glibc:sysdeps/aarch64/strcmp.S:5 | L(loop_unaligned):
ldr data3, [src1, off1]
ldr data2, [src1, off2]
#ifdef __AARCH64EB__
rev data3, data3
#endif
sub has_nul, data3, zeroones
orr tmp, data3, REP8_7f
ldr data1, [src1], 8
bics has_nul, has_nul, tmp
ccmp data1, data2, 0, eq
b.eq L(loop_unaligned)
lsl tmp, has_nul, shift
#ifdef __AARCH64EB__
re... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strcmp.S | LGPL-2.1 | 2642002380aafb71a1d3b569b6d7ebeab3284816 | github | libc | https://github.com/bminor/glibc/blob/2642002380aafb71a1d3b569b6d7ebeab3284816/sysdeps/aarch64/strcmp.S | 161 | 200 |
bminor/glibc:sysdeps/aarch64/strcmp.S:1 | /* 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 Foundation; either
version 2.1 of the... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strcmp.S | LGPL-2.1 | dff8da6b3e89b986bb7f6b1ec18cf65d5972e307 | github | libc | https://github.com/bminor/glibc/blob/dff8da6b3e89b986bb7f6b1ec18cf65d5972e307/sysdeps/aarch64/strcmp.S | 1 | 60 |
bminor/glibc:sysdeps/aarch64/strcmp.S:1 | /* 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 Foundation; either
version 2.1 of the... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strcmp.S | LGPL-2.1 | 6d7e8eda9b85b08f207a6dc6f187e94e4817270f | github | libc | https://github.com/bminor/glibc/blob/6d7e8eda9b85b08f207a6dc6f187e94e4817270f/sysdeps/aarch64/strcmp.S | 1 | 60 |
bminor/glibc:sysdeps/aarch64/strcmp.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/strcmp.S | LGPL-2.1 | 581c785bf31bc74430320c7856bbfa3875d025fe | github | libc | https://github.com/bminor/glibc/blob/581c785bf31bc74430320c7856bbfa3875d025fe/sysdeps/aarch64/strcmp.S | 1 | 60 |
bminor/glibc:sysdeps/aarch64/strcmp.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/strcmp.S | LGPL-2.1 | 2b778ceb4010c28d70de9b8eab20e8d88eed586b | github | libc | https://github.com/bminor/glibc/blob/2b778ceb4010c28d70de9b8eab20e8d88eed586b/sysdeps/aarch64/strcmp.S | 1 | 60 |
bminor/glibc:sysdeps/aarch64/strcmp.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/strcmp.S | LGPL-2.1 | 45b1e17e9150dbd9ac2d578579063fbfa8e1b327 | github | libc | https://github.com/bminor/glibc/blob/45b1e17e9150dbd9ac2d578579063fbfa8e1b327/sysdeps/aarch64/strcmp.S | 1 | 60 |
bminor/glibc:sysdeps/aarch64/strcmp.S:2 | #define diff x5
#define off1 x5
#define syndrome x6
#define tmp x6
#define data3 x7
#define zeroones x8
#define shift x9
#define off2 x10
/* On big-endian early bytes are at MSB and on little-endian LSB.
LS_FW means shifting towards early bytes. */
#ifdef __AARCH64EB__
# define LS_FW lsl
#else
# define LS_FW... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strcmp.S | LGPL-2.1 | adac54ffc5ded48cba7deb18e46df984b213b0ac | github | libc | https://github.com/bminor/glibc/blob/adac54ffc5ded48cba7deb18e46df984b213b0ac/sysdeps/aarch64/strcmp.S | 41 | 100 |
bminor/glibc:sysdeps/aarch64/strcmp.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/strcmp.S | LGPL-2.1 | d614a7539657941a9201c236b2f15afac18e1213 | github | libc | https://github.com/bminor/glibc/blob/d614a7539657941a9201c236b2f15afac18e1213/sysdeps/aarch64/strcmp.S | 1 | 60 |
bminor/glibc:sysdeps/aarch64/strcmp.S:2 | #define diff x5
#define syndrome x6
#define tmp1 x7
#define tmp2 x8
#define tmp3 x9
#define zeroones x10
#define pos x11
/* Start of performance-critical section -- one 64B cache line. */
ENTRY_ALIGN(strcmp, 6)
DELOUSE (0)
DELOUSE (1)
eor tmp1, src1, src2
mov zeroones, #REP8_01
tst tmp1, #7
b.ne L(misal... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strcmp.S | LGPL-2.1 | d614a7539657941a9201c236b2f15afac18e1213 | github | libc | https://github.com/bminor/glibc/blob/d614a7539657941a9201c236b2f15afac18e1213/sysdeps/aarch64/strcmp.S | 41 | 100 |
bminor/glibc:sysdeps/aarch64/strcmp.S:3 | Shifting left now will bring the critical information into the
top bits. */
clz pos, syndrome
rev data2, data2
lsl data1, data1, pos
lsl data2, data2, pos
/* But we need to zero-extend (char is unsigned) the value and then
perform a signed 32-bit subtraction. */
lsr data1, data1, #56
sub result, data1,... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strcmp.S | LGPL-2.1 | d614a7539657941a9201c236b2f15afac18e1213 | github | libc | https://github.com/bminor/glibc/blob/d614a7539657941a9201c236b2f15afac18e1213/sysdeps/aarch64/strcmp.S | 81 | 140 |
bminor/glibc:sysdeps/aarch64/strcmp.S:4 | lsr data1, data1, #56
sub result, data1, data2, lsr #56
RET
#endif
L(mutual_align):
/* Sources are mutually aligned, but are not currently at an
alignment boundary. Round down the addresses and then mask off
the bytes that preceed the start point. */
bic src1, src1, #7
bic src2, src2, #7
lsl tmp1, tmp1... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strcmp.S | LGPL-2.1 | d614a7539657941a9201c236b2f15afac18e1213 | github | libc | https://github.com/bminor/glibc/blob/d614a7539657941a9201c236b2f15afac18e1213/sysdeps/aarch64/strcmp.S | 121 | 180 |
bminor/glibc:sysdeps/aarch64/strcmp.S:5 | b.ne L(do_misaligned)
L(loop_misaligned):
/* Test if we are within the last dword of the end of a 4K page. If
yes then jump back to the misaligned loop to copy a byte at a time. */
and tmp1, src2, #0xff8
eor tmp1, tmp1, #0xff8
cbz tmp1, L(do_misaligned)
ldr data1, [src1], #8
ldr data2, [src2], #8
sub tmp... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strcmp.S | LGPL-2.1 | d614a7539657941a9201c236b2f15afac18e1213 | github | libc | https://github.com/bminor/glibc/blob/d614a7539657941a9201c236b2f15afac18e1213/sysdeps/aarch64/strcmp.S | 161 | 184 |
bminor/glibc:sysdeps/aarch64/strcmp.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/strcmp.S | LGPL-2.1 | 5a82c74822d3272df2f5929133680478c0cfb4bd | github | libc | https://github.com/bminor/glibc/blob/5a82c74822d3272df2f5929133680478c0cfb4bd/sysdeps/aarch64/strcmp.S | 1 | 60 |
bminor/glibc:sysdeps/aarch64/strcmp.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/strcmp.S | LGPL-2.1 | 04277e02d7f54d3582bebcf8386b317018cd5e1d | github | libc | https://github.com/bminor/glibc/blob/04277e02d7f54d3582bebcf8386b317018cd5e1d/sysdeps/aarch64/strcmp.S | 1 | 60 |
bminor/glibc:sysdeps/aarch64/strcmp.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/strcmp.S | LGPL-2.1 | 6ca24c43481e2c93a6eec362b04c3e77a35b28e3 | github | libc | https://github.com/bminor/glibc/blob/6ca24c43481e2c93a6eec362b04c3e77a35b28e3/sysdeps/aarch64/strcmp.S | 1 | 60 |
bminor/glibc:sysdeps/aarch64/strcmp.S:4 | lsr data1, data1, #56
sub result, data1, data2, lsr #56
RET
#endif
L(mutual_align):
/* Sources are mutually aligned, but are not currently at an
alignment boundary. Round down the addresses and then mask off
the bytes that preceed the start point. */
bic src1, src1, #7
bic src2, src2, #7
lsl tmp1, tmp1... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strcmp.S | LGPL-2.1 | 688903eb3ef01301d239ab753d309d45720610a7 | github | libc | https://github.com/bminor/glibc/blob/688903eb3ef01301d239ab753d309d45720610a7/sysdeps/aarch64/strcmp.S | 121 | 180 |
bminor/glibc:sysdeps/aarch64/strcmp.S:5 | b.ne L(misaligned8)
L(loop_misaligned):
/* Test if we are within the last dword of the end of a 4K page. If
yes then jump back to the misaligned loop to copy a byte at a time. */
and tmp1, src2, #0xff8
eor tmp1, tmp1, #0xff8
cbz tmp1, L(do_misaligned)
ldr data1, [src1], #8
ldr data2, [src2], #8
sub tmp1,... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strcmp.S | LGPL-2.1 | 688903eb3ef01301d239ab753d309d45720610a7 | github | libc | https://github.com/bminor/glibc/blob/688903eb3ef01301d239ab753d309d45720610a7/sysdeps/aarch64/strcmp.S | 161 | 184 |
bminor/glibc:sysdeps/aarch64/strcmp.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/strcmp.S | LGPL-2.1 | 2bce01ebbaf8db52ba4a5635eb5744f989cdbf69 | github | libc | https://github.com/bminor/glibc/blob/2bce01ebbaf8db52ba4a5635eb5744f989cdbf69/sysdeps/aarch64/strcmp.S | 1 | 60 |
bminor/glibc:sysdeps/aarch64/strcmp.S:2 | #define diff x5
#define syndrome x6
#define tmp1 x7
#define tmp2 x8
#define tmp3 x9
#define zeroones x10
#define pos x11
/* Start of performance-critical section -- one 64B cache line. */
ENTRY_ALIGN(strcmp, 6)
DELOUSE (0)
DELOUSE (1)
eor tmp1, src1, src2
mov zeroones, #REP8_01
tst tmp1, #7
b.ne L(misal... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strcmp.S | LGPL-2.1 | bfff8b1becd7d01c074177df7196ab327cd8c844 | github | libc | https://github.com/bminor/glibc/blob/bfff8b1becd7d01c074177df7196ab327cd8c844/sysdeps/aarch64/strcmp.S | 41 | 100 |
bminor/glibc:sysdeps/aarch64/strcmp.S:3 | top bits. */
clz pos, syndrome
rev data2, data2
lsl data1, data1, pos
lsl data2, data2, pos
/* But we need to zero-extend (char is unsigned) the value and then
perform a signed 32-bit subtraction. */
lsr data1, data1, #56
sub result, data1, data2, lsr #56
RET
#else
/* For big-endian we cannot use the tri... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strcmp.S | LGPL-2.1 | bfff8b1becd7d01c074177df7196ab327cd8c844 | github | libc | https://github.com/bminor/glibc/blob/bfff8b1becd7d01c074177df7196ab327cd8c844/sysdeps/aarch64/strcmp.S | 81 | 140 |
bminor/glibc:sysdeps/aarch64/strcmp.S:4 | sub result, data1, data2, lsr #56
RET
#endif
L(mutual_align):
/* Sources are mutually aligned, but are not currently at an
alignment boundary. Round down the addresses and then mask off
the bytes that preceed the start point. */
bic src1, src1, #7
bic src2, src2, #7
lsl tmp1, tmp1, #3 /* Bytes beyond a... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strcmp.S | LGPL-2.1 | bfff8b1becd7d01c074177df7196ab327cd8c844 | github | libc | https://github.com/bminor/glibc/blob/bfff8b1becd7d01c074177df7196ab327cd8c844/sysdeps/aarch64/strcmp.S | 121 | 157 |
bminor/glibc:sysdeps/aarch64/strcmp.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/strcmp.S | LGPL-2.1 | 389d1f1b232b3d6b9d73ee2c50e543ace6675621 | github | libc | https://github.com/bminor/glibc/blob/389d1f1b232b3d6b9d73ee2c50e543ace6675621/sysdeps/aarch64/strcmp.S | 1 | 60 |
bminor/glibc:sysdeps/aarch64/strcmp.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/strcmp.S | LGPL-2.1 | f7a9f785e547bd599dee496fd906a28bcb4ec7fe | github | libc | https://github.com/bminor/glibc/blob/f7a9f785e547bd599dee496fd906a28bcb4ec7fe/sysdeps/aarch64/strcmp.S | 1 | 60 |
bminor/glibc:sysdeps/aarch64/strcmp.S:2 | #define diff x5
#define syndrome x6
#define tmp1 x7
#define tmp2 x8
#define tmp3 x9
#define zeroones x10
#define pos x11
/* Start of performance-critical section -- one 64B cache line. */
ENTRY_ALIGN(strcmp, 6)
eor tmp1, src1, src2
mov zeroones, #REP8_01
tst tmp1, #7
b.ne L(misaligned8)
ands tmp1, src1, ... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strcmp.S | LGPL-2.1 | f7a9f785e547bd599dee496fd906a28bcb4ec7fe | github | libc | https://github.com/bminor/glibc/blob/f7a9f785e547bd599dee496fd906a28bcb4ec7fe/sysdeps/aarch64/strcmp.S | 41 | 100 |
bminor/glibc:sysdeps/aarch64/strcmp.S:3 | rev data2, data2
lsl data1, data1, pos
lsl data2, data2, pos
/* But we need to zero-extend (char is unsigned) the value and then
perform a signed 32-bit subtraction. */
lsr data1, data1, #56
sub result, data1, data2, lsr #56
RET
#else
/* For big-endian we cannot use the trick with the syndrome value
as ... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strcmp.S | LGPL-2.1 | f7a9f785e547bd599dee496fd906a28bcb4ec7fe | github | libc | https://github.com/bminor/glibc/blob/f7a9f785e547bd599dee496fd906a28bcb4ec7fe/sysdeps/aarch64/strcmp.S | 81 | 140 |
bminor/glibc:sysdeps/aarch64/strcmp.S:4 | #endif
L(mutual_align):
/* Sources are mutually aligned, but are not currently at an
alignment boundary. Round down the addresses and then mask off
the bytes that preceed the start point. */
bic src1, src1, #7
bic src2, src2, #7
lsl tmp1, tmp1, #3 /* Bytes beyond alignment -> bits. */
ldr data1, [src1... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strcmp.S | LGPL-2.1 | f7a9f785e547bd599dee496fd906a28bcb4ec7fe | github | libc | https://github.com/bminor/glibc/blob/f7a9f785e547bd599dee496fd906a28bcb4ec7fe/sysdeps/aarch64/strcmp.S | 121 | 155 |
bminor/glibc:sysdeps/aarch64/strcmp.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/strcmp.S | LGPL-2.1 | 890b7a4b33d482b5c768ab47d70758b80227e9bc | github | libc | https://github.com/bminor/glibc/blob/890b7a4b33d482b5c768ab47d70758b80227e9bc/sysdeps/aarch64/strcmp.S | 1 | 60 |
bminor/glibc:sysdeps/aarch64/strcpy.S:1 | /* strcpy/stpcpy - copy a string returning pointer to start/end.
Copyright (C) 2013-2026 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as publish... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strcpy.S | LGPL-2.1 | 04e750e75b73957cf1c791535a3f4319534a52fc | github | libc | https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/aarch64/strcpy.S | 1 | 60 |
bminor/glibc:sysdeps/aarch64/strcpy.S:2 | #define tmp x5
#define shift x5
#define data1 x6
#define dataw1 w6
#define data2 x7
#define dataw2 w7
#define dataq q0
#define vdata v0
#define vhas_nul v1
#define vend v2
#define dend d2
#define dataq2 q1
#ifdef BUILD_STPCPY
# define STRCPY __stpcpy
# define IFSTPCPY(X,...) X,__VA_ARGS__
#else
# define ST... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strcpy.S | LGPL-2.1 | 04e750e75b73957cf1c791535a3f4319534a52fc | github | libc | https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/aarch64/strcpy.S | 41 | 100 |
bminor/glibc:sysdeps/aarch64/strcpy.S:3 | ldr dataq, [src, 16]!
cmeq vhas_nul.16b, vdata.16b, 0
shrn vend.8b, vhas_nul.8h, 4
fmov synd, dend
cbz synd, L(start_loop)
#ifndef __AARCH64EB__
rbit synd, synd
#endif
sub tmp, src, srcin
clz len, synd
add len, tmp, len, lsr 2
tbz len, 4, L(less16)
sub tmp, len, 15
ldr dataq, [srcin]
ldr dataq2, [srcin, tm... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strcpy.S | LGPL-2.1 | 04e750e75b73957cf1c791535a3f4319534a52fc | github | libc | https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/aarch64/strcpy.S | 81 | 140 |
bminor/glibc:sysdeps/aarch64/strcpy.S:4 | ldr dataw2, [srcin, tmp]
str dataw1, [dstin]
str dataw2, [dstin, tmp]
IFSTPCPY (add result, dstin, len)
ret
L(less4):
cbz len, L(zerobyte)
ldrh dataw1, [srcin]
strh dataw1, [dstin]
L(zerobyte):
strb wzr, [dstin, len]
IFSTPCPY (add result, dstin, len)
ret
.p2align 4
L(start_loop):
sub tmp, srcin, dstin
ld... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strcpy.S | LGPL-2.1 | 04e750e75b73957cf1c791535a3f4319534a52fc | github | libc | https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/aarch64/strcpy.S | 121 | 179 |
bminor/glibc:sysdeps/aarch64/strcpy.S:5 | rbit synd, synd
#endif
clz len, synd
lsr len, len, 2
add dst, dst, len
ldr dataq, [dst, tmp]
str dataq, [dst]
IFSTPCPY (add result, dst, 15)
ret
END (STRCPY)
#ifdef BUILD_STPCPY
weak_alias (__stpcpy, stpcpy)
libc_hidden_def (__stpcpy)
libc_hidden_builtin_def (stpcpy)
#else
libc_hidden_builtin_def (strcpy)
#end... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strcpy.S | LGPL-2.1 | 04e750e75b73957cf1c791535a3f4319534a52fc | github | libc | https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/aarch64/strcpy.S | 161 | 179 |
bminor/glibc:sysdeps/aarch64/strcpy.S:1 | /* strcpy/stpcpy - copy a string returning pointer to start/end.
Copyright (C) 2013-2025 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as publish... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strcpy.S | LGPL-2.1 | ce2f26a22e6b6f5c108d156afd9b43a452bb024c | github | libc | https://github.com/bminor/glibc/blob/ce2f26a22e6b6f5c108d156afd9b43a452bb024c/sysdeps/aarch64/strcpy.S | 1 | 60 |
bminor/glibc:sysdeps/aarch64/strcpy.S:2 | #define tmp x5
#define shift x5
#define data1 x6
#define dataw1 w6
#define data2 x7
#define dataw2 w7
#define dataq q0
#define vdata v0
#define vhas_nul v1
#define vend v2
#define dend d2
#define dataq2 q1
#ifdef BUILD_STPCPY
# define STRCPY __stpcpy
# define IFSTPCPY(X,...) X,__VA_ARGS__
#else
# define ST... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strcpy.S | LGPL-2.1 | 2642002380aafb71a1d3b569b6d7ebeab3284816 | github | libc | https://github.com/bminor/glibc/blob/2642002380aafb71a1d3b569b6d7ebeab3284816/sysdeps/aarch64/strcpy.S | 41 | 100 |
bminor/glibc:sysdeps/aarch64/strcpy.S:3 | cbnz synd, L(tail)
ldr dataq, [src, 16]!
cmeq vhas_nul.16b, vdata.16b, 0
shrn vend.8b, vhas_nul.8h, 4
fmov synd, dend
cbz synd, L(start_loop)
#ifndef __AARCH64EB__
rbit synd, synd
#endif
sub tmp, src, srcin
clz len, synd
add len, tmp, len, lsr 2
tbz len, 4, L(less16)
sub tmp, len, 15
ldr dataq, [srcin]
l... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strcpy.S | LGPL-2.1 | 2642002380aafb71a1d3b569b6d7ebeab3284816 | github | libc | https://github.com/bminor/glibc/blob/2642002380aafb71a1d3b569b6d7ebeab3284816/sysdeps/aarch64/strcpy.S | 81 | 140 |
bminor/glibc:sysdeps/aarch64/strcpy.S:4 | b.lo L(less4)
ldr dataw1, [srcin]
ldr dataw2, [srcin, tmp]
str dataw1, [dstin]
str dataw2, [dstin, tmp]
IFSTPCPY (add result, dstin, len)
ret
L(less4):
cbz len, L(zerobyte)
ldrh dataw1, [srcin]
strh dataw1, [dstin]
L(zerobyte):
strb wzr, [dstin, len]
IFSTPCPY (add result, dstin, len)
ret
.p2align 4
L(sta... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strcpy.S | LGPL-2.1 | 2642002380aafb71a1d3b569b6d7ebeab3284816 | github | libc | https://github.com/bminor/glibc/blob/2642002380aafb71a1d3b569b6d7ebeab3284816/sysdeps/aarch64/strcpy.S | 121 | 180 |
bminor/glibc:sysdeps/aarch64/strcpy.S:5 | sub dst, dst, 31
#ifndef __AARCH64EB__
rbit synd, synd
#endif
clz len, synd
lsr len, len, 2
add dst, dst, len
ldr dataq, [dst, tmp]
str dataq, [dst]
IFSTPCPY (add result, dst, 15)
ret
END (STRCPY)
#ifdef BUILD_STPCPY
weak_alias (__stpcpy, stpcpy)
libc_hidden_def (__stpcpy)
libc_hidden_builtin_def (stpcpy)
#el... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strcpy.S | LGPL-2.1 | 2642002380aafb71a1d3b569b6d7ebeab3284816 | github | libc | https://github.com/bminor/glibc/blob/2642002380aafb71a1d3b569b6d7ebeab3284816/sysdeps/aarch64/strcpy.S | 161 | 181 |
bminor/glibc:sysdeps/aarch64/strcpy.S:1 | /* strcpy/stpcpy - copy a string returning pointer to start/end.
Copyright (C) 2013-2024 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as publish... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strcpy.S | LGPL-2.1 | dff8da6b3e89b986bb7f6b1ec18cf65d5972e307 | github | libc | https://github.com/bminor/glibc/blob/dff8da6b3e89b986bb7f6b1ec18cf65d5972e307/sysdeps/aarch64/strcpy.S | 1 | 60 |
bminor/glibc:sysdeps/aarch64/strcpy.S:1 | /* strcpy/stpcpy - copy a string returning pointer to start/end.
Copyright (C) 2013-2023 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as publish... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strcpy.S | LGPL-2.1 | 349e48c01e85bd96006860084e76d322e6ca02f1 | github | libc | https://github.com/bminor/glibc/blob/349e48c01e85bd96006860084e76d322e6ca02f1/sysdeps/aarch64/strcpy.S | 1 | 60 |
bminor/glibc:sysdeps/aarch64/strcpy.S:1 | /* strcpy/stpcpy - copy a string returning pointer to start/end.
Copyright (C) 2013-2023 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as publish... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strcpy.S | LGPL-2.1 | 6d7e8eda9b85b08f207a6dc6f187e94e4817270f | github | libc | https://github.com/bminor/glibc/blob/6d7e8eda9b85b08f207a6dc6f187e94e4817270f/sysdeps/aarch64/strcpy.S | 1 | 60 |
bminor/glibc:sysdeps/aarch64/strcpy.S:2 | #define synd x4
#define tmp x5
#define shift x5
#define data1 x6
#define dataw1 w6
#define data2 x7
#define dataw2 w7
#define dataq q0
#define vdata v0
#define vhas_nul v1
#define vend v2
#define dend d2
#define dataq2 q1
#ifdef BUILD_STPCPY
# define STRCPY __stpcpy
# define IFSTPCPY(X,...) X,__VA_ARGS__
... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strcpy.S | LGPL-2.1 | 6d7e8eda9b85b08f207a6dc6f187e94e4817270f | github | libc | https://github.com/bminor/glibc/blob/6d7e8eda9b85b08f207a6dc6f187e94e4817270f/sysdeps/aarch64/strcpy.S | 41 | 100 |
bminor/glibc:sysdeps/aarch64/strcpy.S:3 | lsr synd, synd, shift
cbnz synd, L(tail)
ldr dataq, [src, 16]!
cmeq vhas_nul.16b, vdata.16b, 0
shrn vend.8b, vhas_nul.8h, 4 /* 128->64 */
fmov synd, dend
cbz synd, L(start_loop)
#ifndef __AARCH64EB__
rbit synd, synd
#endif
sub tmp, src, srcin
clz len, synd
add len, tmp, len, lsr 2
tbz len, 4, L(less16)
s... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strcpy.S | LGPL-2.1 | 6d7e8eda9b85b08f207a6dc6f187e94e4817270f | github | libc | https://github.com/bminor/glibc/blob/6d7e8eda9b85b08f207a6dc6f187e94e4817270f/sysdeps/aarch64/strcpy.S | 81 | 140 |
bminor/glibc:sysdeps/aarch64/strcpy.S:4 | .p2align 4
L(less8):
subs tmp, len, 3
b.lo L(less4)
ldr dataw1, [srcin]
ldr dataw2, [srcin, tmp]
str dataw1, [dstin]
str dataw2, [dstin, tmp]
IFSTPCPY (add result, dstin, len)
ret
L(less4):
cbz len, L(zerobyte)
ldrh dataw1, [srcin]
strh dataw1, [dstin]
L(zerobyte):
strb wzr, [dstin, len]
IFSTPCPY (add res... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strcpy.S | LGPL-2.1 | 6d7e8eda9b85b08f207a6dc6f187e94e4817270f | github | libc | https://github.com/bminor/glibc/blob/6d7e8eda9b85b08f207a6dc6f187e94e4817270f/sysdeps/aarch64/strcpy.S | 121 | 179 |
bminor/glibc:sysdeps/aarch64/strcpy.S:5 | rbit synd, synd
#endif
clz len, synd
lsr len, len, 2
sub tmp, len, 15
ldr dataq, [src, tmp]
str dataq, [dst, tmp]
IFSTPCPY (add result, dst, len)
ret
END (STRCPY)
#ifdef BUILD_STPCPY
weak_alias (__stpcpy, stpcpy)
libc_hidden_def (__stpcpy)
libc_hidden_builtin_def (stpcpy)
#else
libc_hidden_builtin_def (strcpy)... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strcpy.S | LGPL-2.1 | 6d7e8eda9b85b08f207a6dc6f187e94e4817270f | github | libc | https://github.com/bminor/glibc/blob/6d7e8eda9b85b08f207a6dc6f187e94e4817270f/sysdeps/aarch64/strcpy.S | 161 | 179 |
bminor/glibc:sysdeps/aarch64/strcpy.S:1 | /* strcpy/stpcpy - copy a string returning pointer to start/end.
Copyright (C) 2013-2022 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as publish... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strcpy.S | LGPL-2.1 | 3c9980698988ef64072f1fac339b180f52792faf | github | libc | https://github.com/bminor/glibc/blob/3c9980698988ef64072f1fac339b180f52792faf/sysdeps/aarch64/strcpy.S | 1 | 60 |
bminor/glibc:sysdeps/aarch64/strcpy.S:1 | /* strcpy/stpcpy - copy a string returning pointer to start/end.
Copyright (C) 2013-2022 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as publish... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strcpy.S | LGPL-2.1 | 581c785bf31bc74430320c7856bbfa3875d025fe | github | libc | https://github.com/bminor/glibc/blob/581c785bf31bc74430320c7856bbfa3875d025fe/sysdeps/aarch64/strcpy.S | 1 | 60 |
bminor/glibc:sysdeps/aarch64/strcpy.S:2 | #define synd x4
#define tmp x5
#define wtmp w5
#define shift x5
#define data1 x6
#define dataw1 w6
#define data2 x7
#define dataw2 w7
#define dataq q0
#define vdata v0
#define vhas_nul v1
#define vrepmask v2
#define vend v3
#define dend d3
#define dataq2 q1
#ifdef BUILD_STPCPY
# define STRCPY __stpcpy
# ... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strcpy.S | LGPL-2.1 | 581c785bf31bc74430320c7856bbfa3875d025fe | github | libc | https://github.com/bminor/glibc/blob/581c785bf31bc74430320c7856bbfa3875d025fe/sysdeps/aarch64/strcpy.S | 41 | 100 |
bminor/glibc:sysdeps/aarch64/strcpy.S:3 | dup vrepmask.8h, wtmp
cmeq vhas_nul.16b, vdata.16b, 0
lsl shift, srcin, 2
and vhas_nul.16b, vhas_nul.16b, vrepmask.16b
addp vend.16b, vhas_nul.16b, vhas_nul.16b
fmov synd, dend
lsr synd, synd, shift
cbnz synd, L(tail)
ldr dataq, [src, 16]!
cmeq vhas_nul.16b, vdata.16b, 0
and vhas_nul.16b, vhas_nul.16b, vrepm... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strcpy.S | LGPL-2.1 | 581c785bf31bc74430320c7856bbfa3875d025fe | github | libc | https://github.com/bminor/glibc/blob/581c785bf31bc74430320c7856bbfa3875d025fe/sysdeps/aarch64/strcpy.S | 81 | 140 |
bminor/glibc:sysdeps/aarch64/strcpy.S:4 | sub tmp, len, 7
ldr data1, [srcin]
ldr data2, [srcin, tmp]
str data1, [dstin]
str data2, [dstin, tmp]
IFSTPCPY (add result, dstin, len)
ret
.p2align 4
L(less8):
subs tmp, len, 3
b.lo L(less4)
ldr dataw1, [srcin]
ldr dataw2, [srcin, tmp]
str dataw1, [dstin]
str dataw2, [dstin, tmp]
IFSTPCPY (add result, d... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strcpy.S | LGPL-2.1 | 581c785bf31bc74430320c7856bbfa3875d025fe | github | libc | https://github.com/bminor/glibc/blob/581c785bf31bc74430320c7856bbfa3875d025fe/sysdeps/aarch64/strcpy.S | 121 | 180 |
bminor/glibc:sysdeps/aarch64/strcpy.S:5 | umaxp vend.16b, vhas_nul.16b, vhas_nul.16b
fmov synd, dend
cbz synd, L(loop)
and vhas_nul.16b, vhas_nul.16b, vrepmask.16b
addp vend.16b, vhas_nul.16b, vhas_nul.16b /* 128->64 */
fmov synd, dend
#ifndef __AARCH64EB__
rbit synd, synd
#endif
clz len, synd
lsr len, len, 2
sub tmp, len, 15
ldr dataq, [src, tmp]
... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strcpy.S | LGPL-2.1 | 581c785bf31bc74430320c7856bbfa3875d025fe | github | libc | https://github.com/bminor/glibc/blob/581c785bf31bc74430320c7856bbfa3875d025fe/sysdeps/aarch64/strcpy.S | 161 | 187 |
bminor/glibc:sysdeps/aarch64/strcpy.S:1 | /* strcpy/stpcpy - copy a string returning pointer to start/end.
Copyright (C) 2013-2021 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as publish... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strcpy.S | LGPL-2.1 | 2b778ceb4010c28d70de9b8eab20e8d88eed586b | github | libc | https://github.com/bminor/glibc/blob/2b778ceb4010c28d70de9b8eab20e8d88eed586b/sysdeps/aarch64/strcpy.S | 1 | 60 |
bminor/glibc:sysdeps/aarch64/strcpy.S:1 | /* strcpy/stpcpy - copy a string returning pointer to start/end.
Copyright (C) 2013-2020 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as publish... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strcpy.S | LGPL-2.1 | 45b1e17e9150dbd9ac2d578579063fbfa8e1b327 | github | libc | https://github.com/bminor/glibc/blob/45b1e17e9150dbd9ac2d578579063fbfa8e1b327/sysdeps/aarch64/strcpy.S | 1 | 60 |
bminor/glibc:sysdeps/aarch64/strcpy.S:2 | #define synd x4
#define tmp x5
#define wtmp w5
#define shift x5
#define data1 x6
#define dataw1 w6
#define data2 x7
#define dataw2 w7
#define dataq q0
#define vdata v0
#define vhas_nul v1
#define vrepmask v2
#define vend v3
#define dend d3
#define dataq2 q1
#ifdef BUILD_STPCPY
# define STRCPY __stpcpy
# ... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strcpy.S | LGPL-2.1 | bb2c12aecbd26a8d29f63b51b80b7c84e65d1818 | github | libc | https://github.com/bminor/glibc/blob/bb2c12aecbd26a8d29f63b51b80b7c84e65d1818/sysdeps/aarch64/strcpy.S | 41 | 100 |
bminor/glibc:sysdeps/aarch64/strcpy.S:1 | /* strcpy/stpcpy - copy a string returning pointer to start/end.
Copyright (C) 2013-2020 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as publish... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strcpy.S | LGPL-2.1 | 59b64f9cbbf1e98c6d187873de6c363994aee19d | github | libc | https://github.com/bminor/glibc/blob/59b64f9cbbf1e98c6d187873de6c363994aee19d/sysdeps/aarch64/strcpy.S | 1 | 60 |
bminor/glibc:sysdeps/aarch64/strcpy.S:2 | #define data2 x5
#define data2w w5
#define has_nul1 x6
#define has_nul2 x7
#define tmp1 x8
#define tmp2 x9
#define tmp3 x10
#define tmp4 x11
#define zeroones x12
#define data1a x13
#define data2a x14
#define pos x15
#define len x16
#define to_align x17
/* NEON register */
#define dataq q2
#define datav v2
... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strcpy.S | LGPL-2.1 | 59b64f9cbbf1e98c6d187873de6c363994aee19d | github | libc | https://github.com/bminor/glibc/blob/59b64f9cbbf1e98c6d187873de6c363994aee19d/sysdeps/aarch64/strcpy.S | 41 | 100 |
bminor/glibc:sysdeps/aarch64/strcpy.S:3 | predictable, even with random strings.
We don't bother checking for larger page sizes, the cost of setting
up the correct page size is just not worth the extra gain from
a small reduction in the cases taking the slow path. Note that
we only care about whether the first fetch, which may be
misalign... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strcpy.S | LGPL-2.1 | 59b64f9cbbf1e98c6d187873de6c363994aee19d | github | libc | https://github.com/bminor/glibc/blob/59b64f9cbbf1e98c6d187873de6c363994aee19d/sysdeps/aarch64/strcpy.S | 81 | 140 |
bminor/glibc:sysdeps/aarch64/strcpy.S:4 | b.gt L(page_cross)
L(page_cross_ok):
ldp data1, data2, [srcin]
#ifdef __AARCH64EB__
/* Because we expect the end to be found within 16 characters
(profiling shows this is the most common case), it's worth
swapping the bytes now to save having to recalculate the
termination syndrome later. We preserve da... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strcpy.S | LGPL-2.1 | 59b64f9cbbf1e98c6d187873de6c363994aee19d | github | libc | https://github.com/bminor/glibc/blob/59b64f9cbbf1e98c6d187873de6c363994aee19d/sysdeps/aarch64/strcpy.S | 121 | 180 |
bminor/glibc:sysdeps/aarch64/strcpy.S:5 | #else
lsl data2, data2, pos
#endif
str data2, [dst, #1]
str data1, [dstin]
#ifdef BUILD_STPCPY
add dstin, dst, #8
#endif
ret
L(fp_le8):
rev has_nul1, has_nul1
clz pos, has_nul1
add dst, dstin, pos, lsr #3 /* Bits to bytes. */
subs tmp2, pos, #24 /* Pos in bits. */
b.lt L(fp_lt4)
#ifdef __AARCH64EB__
mov... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strcpy.S | LGPL-2.1 | 59b64f9cbbf1e98c6d187873de6c363994aee19d | github | libc | https://github.com/bminor/glibc/blob/59b64f9cbbf1e98c6d187873de6c363994aee19d/sysdeps/aarch64/strcpy.S | 161 | 220 |
bminor/glibc:sysdeps/aarch64/strcpy.S:6 | /* Null-terminated string. Last character must be zero! */
strb wzr, [dst]
#ifdef BUILD_STPCPY
mov dstin, dst
#endif
ret
/* Aligning here ensures that the entry code and main loop all lies
within one 64-byte cache line. */
L(bulk_entry):
sub to_align, to_align, #16
stp data1, data2, [dstin]
sub src, srci... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strcpy.S | LGPL-2.1 | 59b64f9cbbf1e98c6d187873de6c363994aee19d | github | libc | https://github.com/bminor/glibc/blob/59b64f9cbbf1e98c6d187873de6c363994aee19d/sysdeps/aarch64/strcpy.S | 201 | 260 |
bminor/glibc:sysdeps/aarch64/strcpy.S:7 | mov data1, datav.d[0]
mov data2, datav.d[1]
#endif
cmp data1, 0
csel data1, data1, data2, ne
mov pos, 8
rev data1, data1
clz tmp1, data1
csel pos, xzr, pos, ne
add pos, pos, tmp1, lsr 3
add src, src, pos
add dst, dst, pos
ldr dataq,[src, #-31]
str dataq,[dst, #-15]
#ifdef BUILD_STPCPY
mov dstin, dst
#endif... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strcpy.S | LGPL-2.1 | 59b64f9cbbf1e98c6d187873de6c363994aee19d | github | libc | https://github.com/bminor/glibc/blob/59b64f9cbbf1e98c6d187873de6c363994aee19d/sysdeps/aarch64/strcpy.S | 241 | 300 |
bminor/glibc:sysdeps/aarch64/strcpy.S:8 | sub tmp3, data2, zeroones
orr tmp4, data2, #REP8_7f
bic has_nul1, tmp1, tmp2
bics has_nul2, tmp3, tmp4
ccmp has_nul1, #0, #0, eq /* NZCV = 0000 */
b.eq L(page_cross_ok)
/* We now need to make data1 and data2 look like they've been
loaded directly from srcin. Do a rotate on the 128-bit value. */
lsl tmp1, ... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strcpy.S | LGPL-2.1 | 59b64f9cbbf1e98c6d187873de6c363994aee19d | github | libc | https://github.com/bminor/glibc/blob/59b64f9cbbf1e98c6d187873de6c363994aee19d/sysdeps/aarch64/strcpy.S | 281 | 328 |
bminor/glibc:sysdeps/aarch64/strcpy.S:6 | /* Null-terminated string. Last character must be zero! */
strb wzr, [dst]
#ifdef BUILD_STPCPY
mov dstin, dst
#endif
ret
/* Aligning here ensures that the entry code and main loop all lies
within one 64-byte cache line. */
L(bulk_entry):
sub to_align, to_align, #16
stp data1, data2, [dstin]
sub src, srci... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strcpy.S | LGPL-2.1 | d614a7539657941a9201c236b2f15afac18e1213 | github | libc | https://github.com/bminor/glibc/blob/d614a7539657941a9201c236b2f15afac18e1213/sysdeps/aarch64/strcpy.S | 201 | 260 |
bminor/glibc:sysdeps/aarch64/strcpy.S:7 | mov pos, 8
rev data1, data1
clz tmp1, data1
csel pos, xzr, pos, ne
add pos, pos, tmp1, lsr 3
add src, src, pos
add dst, dst, pos
ldr dataq,[src, #-31]
str dataq,[dst, #-15]
#ifdef BUILD_STPCPY
mov dstin, dst
#endif
ret
L(page_cross):
bic src, srcin, #15
/* Start by loading two words at [srcin & ~15], then ... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strcpy.S | LGPL-2.1 | d614a7539657941a9201c236b2f15afac18e1213 | github | libc | https://github.com/bminor/glibc/blob/d614a7539657941a9201c236b2f15afac18e1213/sysdeps/aarch64/strcpy.S | 241 | 300 |
bminor/glibc:sysdeps/aarch64/strcpy.S:8 | b.eq L(page_cross_ok)
/* We now need to make data1 and data2 look like they've been
loaded directly from srcin. Do a rotate on the 128-bit value. */
lsl tmp1, to_align, #3 /* Bytes->bits. */
neg tmp2, to_align, lsl #3
#ifdef __AARCH64EB__
lsl data1a, data1, tmp1
lsr tmp4, data2, tmp2
lsl data2, data2, tmp1... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strcpy.S | LGPL-2.1 | d614a7539657941a9201c236b2f15afac18e1213 | github | libc | https://github.com/bminor/glibc/blob/d614a7539657941a9201c236b2f15afac18e1213/sysdeps/aarch64/strcpy.S | 281 | 323 |
bminor/glibc:sysdeps/aarch64/strcpy.S:1 | /* strcpy/stpcpy - copy a string returning pointer to start/end.
Copyright (C) 2013-2019 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as publish... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strcpy.S | LGPL-2.1 | 64297d49b37f637a82faedd16bf8860e0ab31606 | github | libc | https://github.com/bminor/glibc/blob/64297d49b37f637a82faedd16bf8860e0ab31606/sysdeps/aarch64/strcpy.S | 1 | 60 |
bminor/glibc:sysdeps/aarch64/strcpy.S:6 | /* Null-terminated string. Last character must be zero! */
strb wzr, [dst]
#ifdef BUILD_STPCPY
mov dstin, dst
#endif
ret
/* Aligning here ensures that the entry code and main loop all lies
within one 64-byte cache line. */
L(bulk_entry):
sub to_align, to_align, #16
stp data1, data2, [dstin]
sub src, srci... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strcpy.S | LGPL-2.1 | 0237b61526e716fa9597f521643908a4fda3b46a | github | libc | https://github.com/bminor/glibc/blob/0237b61526e716fa9597f521643908a4fda3b46a/sysdeps/aarch64/strcpy.S | 201 | 260 |
bminor/glibc:sysdeps/aarch64/strcpy.S:1 | /* strcpy/stpcpy - copy a string returning pointer to start/end.
Copyright (C) 2013-2019 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as publish... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strcpy.S | LGPL-2.1 | 5a82c74822d3272df2f5929133680478c0cfb4bd | github | libc | https://github.com/bminor/glibc/blob/5a82c74822d3272df2f5929133680478c0cfb4bd/sysdeps/aarch64/strcpy.S | 1 | 60 |
bminor/glibc:sysdeps/aarch64/strcpy.S:2 | #define data2 x5
#define data2w w5
#define has_nul1 x6
#define has_nul2 x7
#define tmp1 x8
#define tmp2 x9
#define tmp3 x10
#define tmp4 x11
#define zeroones x12
#define data1a x13
#define data2a x14
#define pos x15
#define len x16
#define to_align x17
#ifdef BUILD_STPCPY
#define STRCPY __stpcpy
#else
#defin... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strcpy.S | LGPL-2.1 | 5a82c74822d3272df2f5929133680478c0cfb4bd | github | libc | https://github.com/bminor/glibc/blob/5a82c74822d3272df2f5929133680478c0cfb4bd/sysdeps/aarch64/strcpy.S | 41 | 100 |
bminor/glibc:sysdeps/aarch64/strcpy.S:3 | misaligned, crosses a page boundary - after that we move to aligned
fetches for the remainder of the string. */
#ifdef STRCPY_TEST_PAGE_CROSS
/* Make everything that isn't Qword aligned look like a page cross. */
#define MIN_PAGE_P2 4
#else
#define MIN_PAGE_P2 12
#endif
#define MIN_PAGE_SIZE (1 << MIN_PAGE_P2)... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strcpy.S | LGPL-2.1 | 5a82c74822d3272df2f5929133680478c0cfb4bd | github | libc | https://github.com/bminor/glibc/blob/5a82c74822d3272df2f5929133680478c0cfb4bd/sysdeps/aarch64/strcpy.S | 81 | 140 |
bminor/glibc:sysdeps/aarch64/strcpy.S:4 | (profiling shows this is the most common case), it's worth
swapping the bytes now to save having to recalculate the
termination syndrome later. We preserve data1 and data2
so that we can re-use the values later on. */
rev tmp2, data1
sub tmp1, tmp2, zeroones
orr tmp2, tmp2, #REP8_7f
bics has_nul1, tmp... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strcpy.S | LGPL-2.1 | 5a82c74822d3272df2f5929133680478c0cfb4bd | github | libc | https://github.com/bminor/glibc/blob/5a82c74822d3272df2f5929133680478c0cfb4bd/sysdeps/aarch64/strcpy.S | 121 | 180 |
bminor/glibc:sysdeps/aarch64/strcpy.S:5 | add dstin, dst, #8
#endif
ret
L(fp_le8):
rev has_nul1, has_nul1
clz pos, has_nul1
add dst, dstin, pos, lsr #3 /* Bits to bytes. */
subs tmp2, pos, #24 /* Pos in bits. */
b.lt L(fp_lt4)
#ifdef __AARCH64EB__
mov tmp2, #56
sub pos, tmp2, pos
lsr data2, data1, pos
lsr data1, data1, #32
#else
lsr data2, data... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strcpy.S | LGPL-2.1 | 5a82c74822d3272df2f5929133680478c0cfb4bd | github | libc | https://github.com/bminor/glibc/blob/5a82c74822d3272df2f5929133680478c0cfb4bd/sysdeps/aarch64/strcpy.S | 161 | 220 |
bminor/glibc:sysdeps/aarch64/strcpy.S:6 | .p2align 6
/* Aligning here ensures that the entry code and main loop all lies
within one 64-byte cache line. */
L(bulk_entry):
sub to_align, to_align, #16
stp data1, data2, [dstin]
sub src, srcin, to_align
sub dst, dstin, to_align
b L(entry_no_page_cross)
/* The inner loop deals with two Dwords at a time.... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strcpy.S | LGPL-2.1 | 5a82c74822d3272df2f5929133680478c0cfb4bd | github | libc | https://github.com/bminor/glibc/blob/5a82c74822d3272df2f5929133680478c0cfb4bd/sysdeps/aarch64/strcpy.S | 201 | 260 |
bminor/glibc:sysdeps/aarch64/strcpy.S:7 | orr tmp2, data1, #REP8_7f
bic has_nul1, tmp1, tmp2
#else
csel has_nul1, has_nul1, has_nul2, ne
#endif
rev has_nul1, has_nul1
clz pos, has_nul1
add tmp1, pos, #72
add pos, pos, #8
csel pos, pos, tmp1, ne
add src, src, pos, lsr #3
add dst, dst, pos, lsr #3
ldp data1, data2, [src, #-32]
stp data1, data2, [dst, ... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strcpy.S | LGPL-2.1 | 5a82c74822d3272df2f5929133680478c0cfb4bd | github | libc | https://github.com/bminor/glibc/blob/5a82c74822d3272df2f5929133680478c0cfb4bd/sysdeps/aarch64/strcpy.S | 241 | 300 |
bminor/glibc:sysdeps/aarch64/strcpy.S:1 | /* strcpy/stpcpy - copy a string returning pointer to start/end.
Copyright (C) 2013-2019 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as publish... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strcpy.S | LGPL-2.1 | 04277e02d7f54d3582bebcf8386b317018cd5e1d | github | libc | https://github.com/bminor/glibc/blob/04277e02d7f54d3582bebcf8386b317018cd5e1d/sysdeps/aarch64/strcpy.S | 1 | 60 |
bminor/glibc:sysdeps/aarch64/strcpy.S:1 | /* strcpy/stpcpy - copy a string returning pointer to start/end.
Copyright (C) 2013-2018 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as publish... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strcpy.S | LGPL-2.1 | 688903eb3ef01301d239ab753d309d45720610a7 | github | libc | https://github.com/bminor/glibc/blob/688903eb3ef01301d239ab753d309d45720610a7/sysdeps/aarch64/strcpy.S | 1 | 60 |
bminor/glibc:sysdeps/aarch64/strcpy.S:1 | /* strcpy/stpcpy - copy a string returning pointer to start/end.
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 publish... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strcpy.S | LGPL-2.1 | bfff8b1becd7d01c074177df7196ab327cd8c844 | github | libc | https://github.com/bminor/glibc/blob/bfff8b1becd7d01c074177df7196ab327cd8c844/sysdeps/aarch64/strcpy.S | 1 | 60 |
bminor/glibc:sysdeps/aarch64/strcpy.S:1 | /* strcpy/stpcpy - copy a string returning pointer to start/end.
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 publish... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strcpy.S | LGPL-2.1 | 389d1f1b232b3d6b9d73ee2c50e543ace6675621 | github | libc | https://github.com/bminor/glibc/blob/389d1f1b232b3d6b9d73ee2c50e543ace6675621/sysdeps/aarch64/strcpy.S | 1 | 60 |
bminor/glibc:sysdeps/aarch64/strcpy.S:2 | #define data2 x5
#define data2w w5
#define has_nul1 x6
#define has_nul2 x7
#define tmp1 x8
#define tmp2 x9
#define tmp3 x10
#define tmp4 x11
#define zeroones x12
#define data1a x13
#define data2a x14
#define pos x15
#define len x16
#define to_align x17
#ifdef BUILD_STPCPY
#define STRCPY __stpcpy
#else
#defin... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strcpy.S | LGPL-2.1 | f7a9f785e547bd599dee496fd906a28bcb4ec7fe | github | libc | https://github.com/bminor/glibc/blob/f7a9f785e547bd599dee496fd906a28bcb4ec7fe/sysdeps/aarch64/strcpy.S | 41 | 100 |
bminor/glibc:sysdeps/aarch64/strcpy.S:3 | misaligned, crosses a page boundary - after that we move to aligned
fetches for the remainder of the string. */
#ifdef STRCPY_TEST_PAGE_CROSS
/* Make everything that isn't Qword aligned look like a page cross. */
#define MIN_PAGE_P2 4
#else
#define MIN_PAGE_P2 12
#endif
#define MIN_PAGE_SIZE (1 << MIN_PAGE_P2)... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strcpy.S | LGPL-2.1 | f7a9f785e547bd599dee496fd906a28bcb4ec7fe | github | libc | https://github.com/bminor/glibc/blob/f7a9f785e547bd599dee496fd906a28bcb4ec7fe/sysdeps/aarch64/strcpy.S | 81 | 140 |
bminor/glibc:sysdeps/aarch64/strcpy.S:4 | termination syndrome later. We preserve data1 and data2
so that we can re-use the values later on. */
rev tmp2, data1
sub tmp1, tmp2, zeroones
orr tmp2, tmp2, #REP8_7f
bics has_nul1, tmp1, tmp2
b.ne L(fp_le8)
rev tmp4, data2
sub tmp3, tmp4, zeroones
orr tmp4, tmp4, #REP8_7f
#else
sub tmp1, data1, zeroone... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/strcpy.S | LGPL-2.1 | f7a9f785e547bd599dee496fd906a28bcb4ec7fe | github | libc | https://github.com/bminor/glibc/blob/f7a9f785e547bd599dee496fd906a28bcb4ec7fe/sysdeps/aarch64/strcpy.S | 121 | 180 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.