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/dl-trampoline.S:4 | cfi_endproc
.size _dl_runtime_resolve, .-_dl_runtime_resolve
#ifndef PROF
.globl _dl_runtime_profile
.type _dl_runtime_profile, #function
cfi_startproc
.align 2
_dl_runtime_profile:
BTI_C
/* AArch64 we get called with:
ip0 &PLTGOT[2]
ip1 temp(dl resolver entry point)
[sp, #8] lr
[sp, #0] &PLTGO... | arm64 | intel-like | handwritten | bminor/glibc | sysdeps/aarch64/dl-trampoline.S | LGPL-2.1 | 91181954f94917b1e1ae591c60cbadf0321d35af | github | libc | https://github.com/bminor/glibc/blob/91181954f94917b1e1ae591c60cbadf0321d35af/sysdeps/aarch64/dl-trampoline.S | 121 | 180 |
bminor/glibc:sysdeps/aarch64/dl-trampoline.S:5 | sub sp, sp, #SF_SIZE
cfi_adjust_cfa_offset (SF_SIZE)
stp x29, x30, [SP, #0]
mov x29, sp
cfi_def_cfa_register (x29)
cfi_rel_offset (x29, 0)
cfi_rel_offset (lr, 8)
stp x0, x1, [x29, #OFFSET_RG + DL_OFFSET_RG_X0 + 16*0]
cfi_rel_offset (x0, OFFSET_RG + DL_OFFSET_RG_X0 + 16*0 + 0)
cfi_rel_offset (x1, OFFSET_RG + D... | arm64 | intel-like | handwritten | bminor/glibc | sysdeps/aarch64/dl-trampoline.S | LGPL-2.1 | 91181954f94917b1e1ae591c60cbadf0321d35af | github | libc | https://github.com/bminor/glibc/blob/91181954f94917b1e1ae591c60cbadf0321d35af/sysdeps/aarch64/dl-trampoline.S | 161 | 220 |
bminor/glibc:sysdeps/aarch64/dl-trampoline.S:6 | /* Prepare to call _dl_profile_fixup(). */
ldr x1, [x29, OFFSET_PLTGOTN] /* Recover &PLTGOT[n] */
sub x1, x1, ip0
add x1, x1, x1, lsl #1
lsl x1, x1, #3
sub x1, x1, #(RELA_SIZE<<3)
lsr x1, x1, #3
stp x0, x1, [x29, #OFFSET_SAVED_CALL_X0]
/* Set up extra args for _dl_profile_fixup */
ldr x... | arm64 | intel-like | handwritten | bminor/glibc | sysdeps/aarch64/dl-trampoline.S | LGPL-2.1 | 91181954f94917b1e1ae591c60cbadf0321d35af | github | libc | https://github.com/bminor/glibc/blob/91181954f94917b1e1ae591c60cbadf0321d35af/sysdeps/aarch64/dl-trampoline.S | 201 | 260 |
bminor/glibc:sysdeps/aarch64/dl-trampoline.S:7 | add sp, sp, SF_SIZE + 16
cfi_adjust_cfa_offset (- SF_SIZE - 16)
/* Jump to the newly found address. */
br ip0
cfi_restore_state
1:
/* The new frame size is in ip0. */
sub PTR_REG (1), PTR_REG (29), ip0l
and sp, x1, #0xfffffffffffffff0
str x0, [x29, #OFFSET_T1]
mov x0, sp
add x1, x29, #SF_SIZE + 16
mov... | arm64 | intel-like | handwritten | bminor/glibc | sysdeps/aarch64/dl-trampoline.S | LGPL-2.1 | 91181954f94917b1e1ae591c60cbadf0321d35af | github | libc | https://github.com/bminor/glibc/blob/91181954f94917b1e1ae591c60cbadf0321d35af/sysdeps/aarch64/dl-trampoline.S | 241 | 300 |
bminor/glibc:sysdeps/aarch64/dl-trampoline.S:8 | add x3, x29, #OFFSET_RV
bl _dl_call_pltexit
ldp x0, x1, [x29, #OFFSET_RV + DL_OFFSET_RV_X0]
ldp d0, d1, [x29, #OFFSET_RV + DL_OFFSET_RV_D0 + 16*0]
ldp d2, d3, [x29, #OFFSET_RV + DL_OFFSET_RV_D0 + 16*1]
/* LR from within La_aarch64_reg */
ldr lr, [x29, #OFFSET_RG + DL_OFFSET_RG_LR]
cfi_restore(lr)
mov sp, x29
... | arm64 | intel-like | handwritten | bminor/glibc | sysdeps/aarch64/dl-trampoline.S | LGPL-2.1 | 91181954f94917b1e1ae591c60cbadf0321d35af | github | libc | https://github.com/bminor/glibc/blob/91181954f94917b1e1ae591c60cbadf0321d35af/sysdeps/aarch64/dl-trampoline.S | 281 | 302 |
bminor/glibc:sysdeps/aarch64/dl-trampoline.S:1 | /* Copyright (C) 2005-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 | intel-like | handwritten | bminor/glibc | sysdeps/aarch64/dl-trampoline.S | LGPL-2.1 | d614a7539657941a9201c236b2f15afac18e1213 | github | libc | https://github.com/bminor/glibc/blob/d614a7539657941a9201c236b2f15afac18e1213/sysdeps/aarch64/dl-trampoline.S | 1 | 60 |
bminor/glibc:sysdeps/aarch64/dl-trampoline.S:2 | [sp, #8] lr
[sp, #0] &PLTGOT[n]
*/
cfi_rel_offset (lr, 8)
/* Save arguments. */
stp x8, x9, [sp, #-(80+8*16)]!
cfi_adjust_cfa_offset (80+8*16)
cfi_rel_offset (x8, 0)
cfi_rel_offset (x9, 8)
stp x6, x7, [sp, #16]
cfi_rel_offset (x6, 16)
cfi_rel_offset (x7, 24)
stp x4, x5, [sp, #32]
cfi_rel_offset ... | arm64 | intel-like | handwritten | bminor/glibc | sysdeps/aarch64/dl-trampoline.S | LGPL-2.1 | d614a7539657941a9201c236b2f15afac18e1213 | github | libc | https://github.com/bminor/glibc/blob/d614a7539657941a9201c236b2f15afac18e1213/sysdeps/aarch64/dl-trampoline.S | 41 | 100 |
bminor/glibc:sysdeps/aarch64/dl-trampoline.S:3 | stp q6, q7, [sp, #(80+6*16)]
cfi_rel_offset (q0, 80+6*16)
cfi_rel_offset (q1, 80+7*16)
/* Get pointer to linker struct. */
ldr PTR_REG (0), [ip0, #-PTR_SIZE]
/* Prepare to call _dl_fixup(). */
ldr x1, [sp, 80+8*16] /* Recover &PLTGOT[n] */
sub x1, x1, ip0
add x1, x1, x1, lsl #1
lsl x1, x1, #3
... | arm64 | intel-like | handwritten | bminor/glibc | sysdeps/aarch64/dl-trampoline.S | LGPL-2.1 | d614a7539657941a9201c236b2f15afac18e1213 | github | libc | https://github.com/bminor/glibc/blob/d614a7539657941a9201c236b2f15afac18e1213/sysdeps/aarch64/dl-trampoline.S | 81 | 140 |
bminor/glibc:sysdeps/aarch64/dl-trampoline.S:4 | cfi_endproc
.size _dl_runtime_resolve, .-_dl_runtime_resolve
#ifndef PROF
.globl _dl_runtime_profile
.type _dl_runtime_profile, #function
cfi_startproc
.align 2
_dl_runtime_profile:
/* AArch64 we get called with:
ip0 &PLTGOT[2]
ip1 temp(dl resolver entry point)
[sp, #8] lr
[sp, #0] &PLTGOT[n]
... | arm64 | intel-like | handwritten | bminor/glibc | sysdeps/aarch64/dl-trampoline.S | LGPL-2.1 | d614a7539657941a9201c236b2f15afac18e1213 | github | libc | https://github.com/bminor/glibc/blob/d614a7539657941a9201c236b2f15afac18e1213/sysdeps/aarch64/dl-trampoline.S | 121 | 180 |
bminor/glibc:sysdeps/aarch64/dl-trampoline.S:5 | stp x29, x30, [SP, #0]
mov x29, sp
cfi_def_cfa_register (x29)
cfi_rel_offset (x29, 0)
cfi_rel_offset (lr, 8)
stp x0, x1, [x29, #OFFSET_RG + DL_OFFSET_RG_X0 + 16*0]
cfi_rel_offset (x0, OFFSET_RG + DL_OFFSET_RG_X0 + 16*0 + 0)
cfi_rel_offset (x1, OFFSET_RG + DL_OFFSET_RG_X0 + 16*0 + 8)
stp x2, x3, [x29, #OFFSET_R... | arm64 | intel-like | handwritten | bminor/glibc | sysdeps/aarch64/dl-trampoline.S | LGPL-2.1 | d614a7539657941a9201c236b2f15afac18e1213 | github | libc | https://github.com/bminor/glibc/blob/d614a7539657941a9201c236b2f15afac18e1213/sysdeps/aarch64/dl-trampoline.S | 161 | 220 |
bminor/glibc:sysdeps/aarch64/dl-trampoline.S:6 | ldr x1, [x29, OFFSET_PLTGOTN] /* Recover &PLTGOT[n] */
sub x1, x1, ip0
add x1, x1, x1, lsl #1
lsl x1, x1, #3
sub x1, x1, #(RELA_SIZE<<3)
lsr x1, x1, #3
stp x0, x1, [x29, #OFFSET_SAVED_CALL_X0]
/* Set up extra args for _dl_profile_fixup */
ldr x2, [x29, #OFFSET_LR] /* load saved LR */
ad... | arm64 | intel-like | handwritten | bminor/glibc | sysdeps/aarch64/dl-trampoline.S | LGPL-2.1 | d614a7539657941a9201c236b2f15afac18e1213 | github | libc | https://github.com/bminor/glibc/blob/d614a7539657941a9201c236b2f15afac18e1213/sysdeps/aarch64/dl-trampoline.S | 201 | 260 |
bminor/glibc:sysdeps/aarch64/dl-trampoline.S:7 | cfi_adjust_cfa_offset (- SF_SIZE - 16)
/* Jump to the newly found address. */
br ip0
cfi_restore_state
1:
/* The new frame size is in ip0. */
sub PTR_REG (1), PTR_REG (29), ip0l
and sp, x1, #0xfffffffffffffff0
str x0, [x29, #OFFSET_T1]
mov x0, sp
add x1, x29, #SF_SIZE + 16
mov x2, ip0
bl memcpy
ldr ... | arm64 | intel-like | handwritten | bminor/glibc | sysdeps/aarch64/dl-trampoline.S | LGPL-2.1 | d614a7539657941a9201c236b2f15afac18e1213 | github | libc | https://github.com/bminor/glibc/blob/d614a7539657941a9201c236b2f15afac18e1213/sysdeps/aarch64/dl-trampoline.S | 241 | 300 |
bminor/glibc:sysdeps/aarch64/dl-trampoline.S:8 | ldp x0, x1, [x29, #OFFSET_RV + DL_OFFSET_RV_X0]
ldp d0, d1, [x29, #OFFSET_RV + DL_OFFSET_RV_D0 + 16*0]
ldp d2, d3, [x29, #OFFSET_RV + DL_OFFSET_RV_D0 + 16*1]
/* LR from within La_aarch64_reg */
ldr lr, [x29, #OFFSET_RG + DL_OFFSET_RG_LR]
cfi_restore(lr)
mov sp, x29
cfi_def_cfa_register (sp)
ldr x29, [x29, #0]
... | arm64 | intel-like | handwritten | bminor/glibc | sysdeps/aarch64/dl-trampoline.S | LGPL-2.1 | d614a7539657941a9201c236b2f15afac18e1213 | github | libc | https://github.com/bminor/glibc/blob/d614a7539657941a9201c236b2f15afac18e1213/sysdeps/aarch64/dl-trampoline.S | 281 | 300 |
bminor/glibc:sysdeps/aarch64/dl-trampoline.S:1 | /* Copyright (C) 2005-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 | intel-like | handwritten | bminor/glibc | sysdeps/aarch64/dl-trampoline.S | LGPL-2.1 | 5a82c74822d3272df2f5929133680478c0cfb4bd | github | libc | https://github.com/bminor/glibc/blob/5a82c74822d3272df2f5929133680478c0cfb4bd/sysdeps/aarch64/dl-trampoline.S | 1 | 60 |
bminor/glibc:sysdeps/aarch64/dl-trampoline.S:1 | /* Copyright (C) 2005-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 | intel-like | handwritten | bminor/glibc | sysdeps/aarch64/dl-trampoline.S | LGPL-2.1 | 04277e02d7f54d3582bebcf8386b317018cd5e1d | github | libc | https://github.com/bminor/glibc/blob/04277e02d7f54d3582bebcf8386b317018cd5e1d/sysdeps/aarch64/dl-trampoline.S | 1 | 60 |
bminor/glibc:sysdeps/aarch64/dl-trampoline.S:1 | /* Copyright (C) 2005-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 | intel-like | handwritten | bminor/glibc | sysdeps/aarch64/dl-trampoline.S | LGPL-2.1 | 688903eb3ef01301d239ab753d309d45720610a7 | github | libc | https://github.com/bminor/glibc/blob/688903eb3ef01301d239ab753d309d45720610a7/sysdeps/aarch64/dl-trampoline.S | 1 | 60 |
bminor/glibc:sysdeps/aarch64/dl-trampoline.S:1 | /* Copyright (C) 2005-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 | intel-like | handwritten | bminor/glibc | sysdeps/aarch64/dl-trampoline.S | LGPL-2.1 | bfff8b1becd7d01c074177df7196ab327cd8c844 | github | libc | https://github.com/bminor/glibc/blob/bfff8b1becd7d01c074177df7196ab327cd8c844/sysdeps/aarch64/dl-trampoline.S | 1 | 60 |
bminor/glibc:sysdeps/aarch64/dl-trampoline.S:1 | /* Copyright (C) 2005-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 | intel-like | handwritten | bminor/glibc | sysdeps/aarch64/dl-trampoline.S | LGPL-2.1 | 389d1f1b232b3d6b9d73ee2c50e543ace6675621 | github | libc | https://github.com/bminor/glibc/blob/389d1f1b232b3d6b9d73ee2c50e543ace6675621/sysdeps/aarch64/dl-trampoline.S | 1 | 60 |
bminor/glibc:sysdeps/aarch64/dl-trampoline.S:1 | /* Copyright (C) 2005-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 | intel-like | handwritten | bminor/glibc | sysdeps/aarch64/dl-trampoline.S | LGPL-2.1 | f7a9f785e547bd599dee496fd906a28bcb4ec7fe | github | libc | https://github.com/bminor/glibc/blob/f7a9f785e547bd599dee496fd906a28bcb4ec7fe/sysdeps/aarch64/dl-trampoline.S | 1 | 60 |
bminor/glibc:sysdeps/aarch64/dl-trampoline.S:2 | cfi_rel_offset (lr, 8)
/* Save arguments. */
stp x8, x9, [sp, #-(80+8*16)]!
cfi_adjust_cfa_offset (80+8*16)
cfi_rel_offset (x8, 0)
cfi_rel_offset (x9, 8)
stp x6, x7, [sp, #16]
cfi_rel_offset (x6, 16)
cfi_rel_offset (x7, 24)
stp x4, x5, [sp, #32]
cfi_rel_offset (x4, 32)
cfi_rel_offset (x5, 40)
stp x2,... | arm64 | intel-like | handwritten | bminor/glibc | sysdeps/aarch64/dl-trampoline.S | LGPL-2.1 | f7a9f785e547bd599dee496fd906a28bcb4ec7fe | github | libc | https://github.com/bminor/glibc/blob/f7a9f785e547bd599dee496fd906a28bcb4ec7fe/sysdeps/aarch64/dl-trampoline.S | 41 | 100 |
bminor/glibc:sysdeps/aarch64/dl-trampoline.S:3 | /* Get pointer to linker struct. */
ldr x0, [ip0, #-8]
/* Prepare to call _dl_fixup(). */
ldr x1, [sp, 80+8*16] /* Recover &PLTGOT[n] */
sub x1, x1, ip0
add x1, x1, x1, lsl #1
lsl x1, x1, #3
sub x1, x1, #192
lsr x1, x1, #3
/* Call fixup routine. */
bl _dl_fixup
/* Save the return. ... | arm64 | intel-like | handwritten | bminor/glibc | sysdeps/aarch64/dl-trampoline.S | LGPL-2.1 | f7a9f785e547bd599dee496fd906a28bcb4ec7fe | github | libc | https://github.com/bminor/glibc/blob/f7a9f785e547bd599dee496fd906a28bcb4ec7fe/sysdeps/aarch64/dl-trampoline.S | 81 | 140 |
bminor/glibc:sysdeps/aarch64/dl-trampoline.S:4 | .type _dl_runtime_profile, #function
cfi_startproc
.align 2
_dl_runtime_profile:
/* AArch64 we get called with:
ip0 &PLTGOT[2]
ip1 temp(dl resolver entry point)
[sp, #8] lr
[sp, #0] &PLTGOT[n]
Stack frame layout:
[sp, #...] lr
[sp, #...] &PLTGOT[n]
[sp, #96] La_aarch64_regs
... | arm64 | intel-like | handwritten | bminor/glibc | sysdeps/aarch64/dl-trampoline.S | LGPL-2.1 | f7a9f785e547bd599dee496fd906a28bcb4ec7fe | github | libc | https://github.com/bminor/glibc/blob/f7a9f785e547bd599dee496fd906a28bcb4ec7fe/sysdeps/aarch64/dl-trampoline.S | 121 | 180 |
bminor/glibc:sysdeps/aarch64/dl-trampoline.S:5 | cfi_rel_offset (lr, 8)
stp x0, x1, [x29, #OFFSET_RG + DL_OFFSET_RG_X0 + 16*0]
cfi_rel_offset (x0, OFFSET_RG + DL_OFFSET_RG_X0 + 16*0 + 0)
cfi_rel_offset (x1, OFFSET_RG + DL_OFFSET_RG_X0 + 16*0 + 8)
stp x2, x3, [x29, #OFFSET_RG + DL_OFFSET_RG_X0 + 16*1]
cfi_rel_offset (x2, OFFSET_RG + DL_OFFSET_RG_X0 + 16*1 + 0)
... | arm64 | intel-like | handwritten | bminor/glibc | sysdeps/aarch64/dl-trampoline.S | LGPL-2.1 | f7a9f785e547bd599dee496fd906a28bcb4ec7fe | github | libc | https://github.com/bminor/glibc/blob/f7a9f785e547bd599dee496fd906a28bcb4ec7fe/sysdeps/aarch64/dl-trampoline.S | 161 | 220 |
bminor/glibc:sysdeps/aarch64/dl-trampoline.S:6 | lsl x1, x1, #3
sub x1, x1, #192
lsr x1, x1, #3
stp x0, x1, [x29, #OFFSET_SAVED_CALL_X0]
/* Set up extra args for _dl_profile_fixup */
ldr x2, [x29, #OFFSET_LR] /* load saved LR */
add x3, x29, #OFFSET_RG /* address of La_aarch64_reg */
add x4, x29, #OFFSET_FS /* address of framesize */
bl _dl_p... | arm64 | intel-like | handwritten | bminor/glibc | sysdeps/aarch64/dl-trampoline.S | LGPL-2.1 | f7a9f785e547bd599dee496fd906a28bcb4ec7fe | github | libc | https://github.com/bminor/glibc/blob/f7a9f785e547bd599dee496fd906a28bcb4ec7fe/sysdeps/aarch64/dl-trampoline.S | 201 | 260 |
bminor/glibc:sysdeps/aarch64/dl-trampoline.S:7 | cfi_restore_state
1:
/* The new frame size is in ip0. */
sub x1, x29, ip0
and sp, x1, #0xfffffffffffffff0
str x0, [x29, #OFFSET_T1]
mov x0, sp
add x1, x29, #SF_SIZE + 16
mov x2, ip0
bl memcpy
ldr ip0, [x29, #OFFSET_T1]
/* Call the function. */
ldp x0, x1, [x29, #OFFSET_RG + DL_OFFSET_RG_X0 + 16*0]
ld... | arm64 | intel-like | handwritten | bminor/glibc | sysdeps/aarch64/dl-trampoline.S | LGPL-2.1 | f7a9f785e547bd599dee496fd906a28bcb4ec7fe | github | libc | https://github.com/bminor/glibc/blob/f7a9f785e547bd599dee496fd906a28bcb4ec7fe/sysdeps/aarch64/dl-trampoline.S | 241 | 296 |
bminor/glibc:sysdeps/aarch64/dl-trampoline.S:8 | /* LR from within La_aarch64_reg */
ldr lr, [x29, #OFFSET_RG + DL_OFFSET_RG_LR]
cfi_restore(lr)
mov sp, x29
cfi_def_cfa_register (sp)
ldr x29, [x29, #0]
cfi_restore(x29)
add sp, sp, SF_SIZE + 16
cfi_adjust_cfa_offset (- SF_SIZE - 16)
br lr
cfi_endproc
.size _dl_runtime_profile, .-_dl_runtime_profile
#endif... | arm64 | intel-like | handwritten | bminor/glibc | sysdeps/aarch64/dl-trampoline.S | LGPL-2.1 | f7a9f785e547bd599dee496fd906a28bcb4ec7fe | github | libc | https://github.com/bminor/glibc/blob/f7a9f785e547bd599dee496fd906a28bcb4ec7fe/sysdeps/aarch64/dl-trampoline.S | 281 | 296 |
bminor/glibc:sysdeps/aarch64/dl-trampoline.S:1 | /* Copyright (C) 2005-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 | intel-like | handwritten | bminor/glibc | sysdeps/aarch64/dl-trampoline.S | LGPL-2.1 | 890b7a4b33d482b5c768ab47d70758b80227e9bc | github | libc | https://github.com/bminor/glibc/blob/890b7a4b33d482b5c768ab47d70758b80227e9bc/sysdeps/aarch64/dl-trampoline.S | 1 | 60 |
bminor/glibc:sysdeps/aarch64/memchr.S:1 | /* memchr - find a character in a memory zone
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 published by the Free So... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/memchr.S | LGPL-2.1 | 04e750e75b73957cf1c791535a3f4319534a52fc | github | libc | https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/aarch64/memchr.S | 1 | 60 |
bminor/glibc:sysdeps/aarch64/memchr.S:2 | #define shift x6
#define tmp x7
#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 a... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/memchr.S | LGPL-2.1 | 04e750e75b73957cf1c791535a3f4319534a52fc | github | libc | https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/aarch64/memchr.S | 41 | 100 |
bminor/glibc:sysdeps/aarch64/memchr.S:3 | add tmp, tmp, 17
subs cntrem, cntin, tmp
b.lo L(nomatch)
/* Make sure that it won't overread by a 16-byte chunk */
tbz cntrem, 4, L(loop32_2)
sub src, src, 16
.p2align 4
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 s... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/memchr.S | LGPL-2.1 | 04e750e75b73957cf1c791535a3f4319534a52fc | github | libc | https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/aarch64/memchr.S | 81 | 126 |
bminor/glibc:sysdeps/aarch64/memchr.S:1 | /* memchr - find a character in a memory zone
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 published by the Free So... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/memchr.S | LGPL-2.1 | ce2f26a22e6b6f5c108d156afd9b43a452bb024c | github | libc | https://github.com/bminor/glibc/blob/ce2f26a22e6b6f5c108d156afd9b43a452bb024c/sysdeps/aarch64/memchr.S | 1 | 60 |
bminor/glibc:sysdeps/aarch64/memchr.S:1 | /* memchr - find a character in a memory zone
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 published by the Free So... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/memchr.S | LGPL-2.1 | 2642002380aafb71a1d3b569b6d7ebeab3284816 | github | libc | https://github.com/bminor/glibc/blob/2642002380aafb71a1d3b569b6d7ebeab3284816/sysdeps/aarch64/memchr.S | 1 | 60 |
bminor/glibc:sysdeps/aarch64/memchr.S:2 | #define shift x6
#define tmp x7
#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 a... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/memchr.S | LGPL-2.1 | 2642002380aafb71a1d3b569b6d7ebeab3284816 | github | libc | https://github.com/bminor/glibc/blob/2642002380aafb71a1d3b569b6d7ebeab3284816/sysdeps/aarch64/memchr.S | 41 | 100 |
bminor/glibc:sysdeps/aarch64/memchr.S:3 | L(start_loop):
sub tmp, src, srcin
add tmp, tmp, 17
subs cntrem, cntin, tmp
b.lo L(nomatch)
/* Make sure that it won't overread by a 16-byte chunk */
tbz cntrem, 4, L(loop32_2)
sub src, src, 16
.p2align 4
L(loop32):
ldr qdata, [src, 32]!
cmeq vhas_chr.16b, vdata.16b, vrepchr.16b
umaxp vend.16b, vhas_chr.16b... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/memchr.S | LGPL-2.1 | 2642002380aafb71a1d3b569b6d7ebeab3284816 | github | libc | https://github.com/bminor/glibc/blob/2642002380aafb71a1d3b569b6d7ebeab3284816/sysdeps/aarch64/memchr.S | 81 | 128 |
bminor/glibc:sysdeps/aarch64/memchr.S:1 | /* memchr - find a character in a memory zone
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 published by the Free So... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/memchr.S | LGPL-2.1 | dff8da6b3e89b986bb7f6b1ec18cf65d5972e307 | github | libc | https://github.com/bminor/glibc/blob/dff8da6b3e89b986bb7f6b1ec18cf65d5972e307/sysdeps/aarch64/memchr.S | 1 | 60 |
bminor/glibc:sysdeps/aarch64/memchr.S:1 | /* memchr - find a character in a memory zone
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 published by the Free So... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/memchr.S | LGPL-2.1 | ce758d4f063820c2bc743e12797d7454c66be718 | github | libc | https://github.com/bminor/glibc/blob/ce758d4f063820c2bc743e12797d7454c66be718/sysdeps/aarch64/memchr.S | 1 | 60 |
bminor/glibc:sysdeps/aarch64/memchr.S:1 | /* memchr - find a character in a memory zone
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 published by the Free So... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/memchr.S | LGPL-2.1 | 6d7e8eda9b85b08f207a6dc6f187e94e4817270f | github | libc | https://github.com/bminor/glibc/blob/6d7e8eda9b85b08f207a6dc6f187e94e4817270f/sysdeps/aarch64/memchr.S | 1 | 60 |
bminor/glibc:sysdeps/aarch64/memchr.S:2 | #define synd x5
#define shift x6
#define tmp x7
#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 w... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/memchr.S | LGPL-2.1 | 6d7e8eda9b85b08f207a6dc6f187e94e4817270f | github | libc | https://github.com/bminor/glibc/blob/6d7e8eda9b85b08f207a6dc6f187e94e4817270f/sysdeps/aarch64/memchr.S | 41 | 100 |
bminor/glibc:sysdeps/aarch64/memchr.S:3 | L(start_loop):
sub tmp, src, srcin
add tmp, tmp, 16
subs cntrem, cntin, tmp
b.ls L(nomatch)
/* Make sure that it won't overread by a 16-byte chunk */
add tmp, cntrem, 15
tbnz tmp, 4, L(loop32_2)
.p2align 4
L(loop32):
ldr qdata, [src, 16]!
cmeq vhas_chr.16b, vdata.16b, vrepchr.16b
umaxp vend.16b, vhas_chr.1... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/memchr.S | LGPL-2.1 | 6d7e8eda9b85b08f207a6dc6f187e94e4817270f | github | libc | https://github.com/bminor/glibc/blob/6d7e8eda9b85b08f207a6dc6f187e94e4817270f/sysdeps/aarch64/memchr.S | 81 | 127 |
bminor/glibc:sysdeps/aarch64/memchr.S:1 | /* memchr - find a character in a memory zone
Copyright (C) 2015-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 So... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/memchr.S | LGPL-2.1 | 3c9980698988ef64072f1fac339b180f52792faf | github | libc | https://github.com/bminor/glibc/blob/3c9980698988ef64072f1fac339b180f52792faf/sysdeps/aarch64/memchr.S | 1 | 60 |
bminor/glibc:sysdeps/aarch64/memchr.S:1 | /* memchr - find a character in a memory zone
Copyright (C) 2015-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 So... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/memchr.S | LGPL-2.1 | 581c785bf31bc74430320c7856bbfa3875d025fe | github | libc | https://github.com/bminor/glibc/blob/581c785bf31bc74430320c7856bbfa3875d025fe/sysdeps/aarch64/memchr.S | 1 | 60 |
bminor/glibc:sysdeps/aarch64/memchr.S:2 | #define synd x5
#define shift x6
#define tmp x7
#define wtmp w7
#define vrepchr v0
#define qdata q1
#define vdata v1
#define vhas_chr v2
#define vrepmask v3
#define vend v4
#define dend d4
/*
Core algorithm:
For each 16-byte chunk we calculate a 64-bit syndrome value with four bits
per byte. For eve... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/memchr.S | LGPL-2.1 | 581c785bf31bc74430320c7856bbfa3875d025fe | github | libc | https://github.com/bminor/glibc/blob/581c785bf31bc74430320c7856bbfa3875d025fe/sysdeps/aarch64/memchr.S | 41 | 100 |
bminor/glibc:sysdeps/aarch64/memchr.S:3 | clz synd, synd
add result, srcin, synd, lsr 2
cmp cntin, synd, lsr 2
csel result, result, xzr, hi
ret
L(start_loop):
sub tmp, src, srcin
add tmp, tmp, 16
subs cntrem, cntin, tmp
b.ls L(nomatch)
/* Make sure that it won't overread by a 16-byte chunk */
add tmp, cntrem, 15
tbnz tmp, 4, L(loop32_2)
.p2align... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/memchr.S | LGPL-2.1 | 581c785bf31bc74430320c7856bbfa3875d025fe | github | libc | https://github.com/bminor/glibc/blob/581c785bf31bc74430320c7856bbfa3875d025fe/sysdeps/aarch64/memchr.S | 81 | 134 |
bminor/glibc:sysdeps/aarch64/memchr.S:4 | #endif
clz synd, synd
cmp cntrem, synd, lsr 2
add result, src, synd, lsr 2
csel result, result, xzr, hi
ret
L(nomatch):
mov result, 0
ret
END (MEMCHR)
weak_alias (MEMCHR, memchr)
libc_hidden_builtin_def (memchr) | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/memchr.S | LGPL-2.1 | 581c785bf31bc74430320c7856bbfa3875d025fe | github | libc | https://github.com/bminor/glibc/blob/581c785bf31bc74430320c7856bbfa3875d025fe/sysdeps/aarch64/memchr.S | 121 | 134 |
bminor/glibc:sysdeps/aarch64/memchr.S:1 | /* memchr - find a character in a memory zone
Copyright (C) 2015-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 So... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/memchr.S | LGPL-2.1 | 2b778ceb4010c28d70de9b8eab20e8d88eed586b | github | libc | https://github.com/bminor/glibc/blob/2b778ceb4010c28d70de9b8eab20e8d88eed586b/sysdeps/aarch64/memchr.S | 1 | 60 |
bminor/glibc:sysdeps/aarch64/memchr.S:1 | /* memchr - find a character in a memory zone
Copyright (C) 2015-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 So... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/memchr.S | LGPL-2.1 | 45b1e17e9150dbd9ac2d578579063fbfa8e1b327 | github | libc | https://github.com/bminor/glibc/blob/45b1e17e9150dbd9ac2d578579063fbfa8e1b327/sysdeps/aarch64/memchr.S | 1 | 60 |
bminor/glibc:sysdeps/aarch64/memchr.S:2 | #define synd x5
#define shift x6
#define tmp x7
#define wtmp w7
#define vrepchr v0
#define qdata q1
#define vdata v1
#define vhas_chr v2
#define vrepmask v3
#define vend v4
#define dend d4
/*
Core algorithm:
For each 16-byte chunk we calculate a 64-bit syndrome value with four bits
per byte. For eve... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/memchr.S | LGPL-2.1 | 7ff899969fbff7f254c0ffabb4480afe1ccbfa22 | github | libc | https://github.com/bminor/glibc/blob/7ff899969fbff7f254c0ffabb4480afe1ccbfa22/sysdeps/aarch64/memchr.S | 41 | 100 |
bminor/glibc:sysdeps/aarch64/memchr.S:1 | /* memchr - find a character in a memory zone
Copyright (C) 2015-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 So... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/memchr.S | LGPL-2.1 | d614a7539657941a9201c236b2f15afac18e1213 | github | libc | https://github.com/bminor/glibc/blob/d614a7539657941a9201c236b2f15afac18e1213/sysdeps/aarch64/memchr.S | 1 | 60 |
bminor/glibc:sysdeps/aarch64/memchr.S:2 | #define tmp x4
#define wtmp2 w5
#define synd x6
#define soff x9
#define cntrem x10
#define vrepchr v0
#define vdata1 v1
#define vdata2 v2
#define vhas_chr1 v3
#define vhas_chr2 v4
#define vrepmask v5
#define vend v6
/*
* Core algorithm:
*
* For each 32-byte chunk we calculate a 64-bit syndrome value, with... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/memchr.S | LGPL-2.1 | d614a7539657941a9201c236b2f15afac18e1213 | github | libc | https://github.com/bminor/glibc/blob/d614a7539657941a9201c236b2f15afac18e1213/sysdeps/aarch64/memchr.S | 41 | 100 |
bminor/glibc:sysdeps/aarch64/memchr.S:3 | b.eq L(loop)
/*
* Input string is not 32-byte aligned. We calculate the syndrome
* value for the aligned 32 bytes block containing the first bytes
* and mask the irrelevant part.
*/
ld1 {vdata1.16b, vdata2.16b}, [src], #32
sub tmp, soff, #32
adds cntin, cntin, tmp
cmeq vhas_chr1.16b, vdata1.16b, vrepchr.... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/memchr.S | LGPL-2.1 | d614a7539657941a9201c236b2f15afac18e1213 | github | libc | https://github.com/bminor/glibc/blob/d614a7539657941a9201c236b2f15afac18e1213/sysdeps/aarch64/memchr.S | 81 | 140 |
bminor/glibc:sysdeps/aarch64/memchr.S:4 | L(end):
/* Termination condition found, let's calculate the syndrome value */
and vhas_chr1.16b, vhas_chr1.16b, vrepmask.16b
and vhas_chr2.16b, vhas_chr2.16b, vrepmask.16b
addp vend.16b, vhas_chr1.16b, vhas_chr2.16b /* 256->128 */
addp vend.16b, vend.16b, vend.16b /* 128->64 */
mov synd, vend.2d[0]
/* Only do... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/memchr.S | LGPL-2.1 | d614a7539657941a9201c236b2f15afac18e1213 | github | libc | https://github.com/bminor/glibc/blob/d614a7539657941a9201c236b2f15afac18e1213/sysdeps/aarch64/memchr.S | 121 | 161 |
bminor/glibc:sysdeps/aarch64/memchr.S:1 | /* memchr - find a character in a memory zone
Copyright (C) 2015-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 So... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/memchr.S | LGPL-2.1 | 5a82c74822d3272df2f5929133680478c0cfb4bd | github | libc | https://github.com/bminor/glibc/blob/5a82c74822d3272df2f5929133680478c0cfb4bd/sysdeps/aarch64/memchr.S | 1 | 60 |
bminor/glibc:sysdeps/aarch64/memchr.S:1 | /* memchr - find a character in a memory zone
Copyright (C) 2015-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 So... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/memchr.S | LGPL-2.1 | 83d1cc42d8e6b18a4b6ba53addfdae98c694ea36 | github | libc | https://github.com/bminor/glibc/blob/83d1cc42d8e6b18a4b6ba53addfdae98c694ea36/sysdeps/aarch64/memchr.S | 1 | 60 |
bminor/glibc:sysdeps/aarch64/memchr.S:1 | /* memchr - find a character in a memory zone
Copyright (C) 2015-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 So... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/memchr.S | LGPL-2.1 | 04277e02d7f54d3582bebcf8386b317018cd5e1d | github | libc | https://github.com/bminor/glibc/blob/04277e02d7f54d3582bebcf8386b317018cd5e1d/sysdeps/aarch64/memchr.S | 1 | 60 |
bminor/glibc:sysdeps/aarch64/memchr.S:2 | #define cntrem x10
#define vrepchr v0
#define vdata1 v1
#define vdata2 v2
#define vhas_chr1 v3
#define vhas_chr2 v4
#define vrepmask v5
#define vend v6
/*
* Core algorithm:
*
* For each 32-byte chunk we calculate a 64-bit syndrome value, with two bits
* per byte. For each tuple, bit 0 is set if the relevant ... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/memchr.S | LGPL-2.1 | 04277e02d7f54d3582bebcf8386b317018cd5e1d | github | libc | https://github.com/bminor/glibc/blob/04277e02d7f54d3582bebcf8386b317018cd5e1d/sysdeps/aarch64/memchr.S | 41 | 100 |
bminor/glibc:sysdeps/aarch64/memchr.S:3 | * value for the aligned 32 bytes block containing the first bytes
* and mask the irrelevant part.
*/
ld1 {vdata1.16b, vdata2.16b}, [src], #32
sub tmp, soff, #32
adds cntin, cntin, tmp
cmeq vhas_chr1.16b, vdata1.16b, vrepchr.16b
cmeq vhas_chr2.16b, vdata2.16b, vrepchr.16b
and vhas_chr1.16b, vhas_chr1.16b, vre... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/memchr.S | LGPL-2.1 | 04277e02d7f54d3582bebcf8386b317018cd5e1d | github | libc | https://github.com/bminor/glibc/blob/04277e02d7f54d3582bebcf8386b317018cd5e1d/sysdeps/aarch64/memchr.S | 81 | 140 |
bminor/glibc:sysdeps/aarch64/memchr.S:4 | and vhas_chr2.16b, vhas_chr2.16b, vrepmask.16b
addp vend.16b, vhas_chr1.16b, vhas_chr2.16b /* 256->128 */
addp vend.16b, vend.16b, vend.16b /* 128->64 */
mov synd, vend.2d[0]
/* Only do the clear for the last possible block */
b.hi L(tail)
L(masklast):
/* Clear the (32 - ((cntrem + soff) % 32)) * 2 upper bits... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/memchr.S | LGPL-2.1 | 04277e02d7f54d3582bebcf8386b317018cd5e1d | github | libc | https://github.com/bminor/glibc/blob/04277e02d7f54d3582bebcf8386b317018cd5e1d/sysdeps/aarch64/memchr.S | 121 | 157 |
bminor/glibc:sysdeps/aarch64/memchr.S:1 | /* memchr - find a character in a memory zone
Copyright (C) 2015-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 So... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/memchr.S | LGPL-2.1 | 688903eb3ef01301d239ab753d309d45720610a7 | github | libc | https://github.com/bminor/glibc/blob/688903eb3ef01301d239ab753d309d45720610a7/sysdeps/aarch64/memchr.S | 1 | 60 |
bminor/glibc:sysdeps/aarch64/memchr.S:1 | /* memchr - find a character in a memory zone
Copyright (C) 2015-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 So... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/memchr.S | LGPL-2.1 | bfff8b1becd7d01c074177df7196ab327cd8c844 | github | libc | https://github.com/bminor/glibc/blob/bfff8b1becd7d01c074177df7196ab327cd8c844/sysdeps/aarch64/memchr.S | 1 | 60 |
bminor/glibc:sysdeps/aarch64/memchr.S:1 | /* memchr - find a character in a memory zone
Copyright (C) 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 Softwar... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/memchr.S | LGPL-2.1 | 95e431cc73c2df3bc606107d6f79c4683bd61102 | github | libc | https://github.com/bminor/glibc/blob/95e431cc73c2df3bc606107d6f79c4683bd61102/sysdeps/aarch64/memchr.S | 1 | 60 |
bminor/glibc:sysdeps/aarch64/memcmp.S:1 | /* memcmp - compare memory
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 published by the Free Software Foundation; ... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/memcmp.S | LGPL-2.1 | 04e750e75b73957cf1c791535a3f4319534a52fc | github | libc | https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/aarch64/memcmp.S | 1 | 60 |
bminor/glibc:sysdeps/aarch64/memcmp.S:2 | #define tmp x6
#define src1end x7
#define src2end x8
ENTRY (memcmp)
cmp limit, 16
b.lo L(less16)
ldp data1, data3, [src1]
ldp data2, data4, [src2]
ccmp data1, data2, 0, ne
ccmp data3, data4, 0, eq
b.ne L(return2)
add src1end, src1, limit
add src2end, src2, limit
cmp limit, 32
b.ls L(last_bytes)
cmp limit... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/memcmp.S | LGPL-2.1 | 04e750e75b73957cf1c791535a3f4319534a52fc | github | libc | https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/aarch64/memcmp.S | 41 | 100 |
bminor/glibc:sysdeps/aarch64/memcmp.S:3 | subs limit, limit, 32
b.hi L(loop32)
/* Compare last 1-16 bytes using unaligned access. */
L(last_bytes):
ldp data1, data3, [src1end, -16]
ldp data2, data4, [src2end, -16]
L(return2):
cmp data1, data2
csel data1, data1, data3, ne
csel data2, data2, data4, ne
/* Compare data bytes and set return value to 0, -... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/memcmp.S | LGPL-2.1 | 04e750e75b73957cf1c791535a3f4319534a52fc | github | libc | https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/aarch64/memcmp.S | 81 | 140 |
bminor/glibc:sysdeps/aarch64/memcmp.S:4 | ldr data4w, [src2end, -4]
b L(return2)
L(less4):
tbz limit, 1, L(less2)
ldrh data1w, [src1]
ldrh data2w, [src2]
cmp data1w, data2w
b.ne L(return)
L(less2):
mov result, 0
tbz limit, 0, L(return_zero)
ldrb data1w, [src1end, -1]
ldrb data2w, [src2end, -1]
sub result, data1w, data2w
L(return_zero):
ret
L(loop... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/memcmp.S | LGPL-2.1 | 04e750e75b73957cf1c791535a3f4319534a52fc | github | libc | https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/aarch64/memcmp.S | 121 | 180 |
bminor/glibc:sysdeps/aarch64/memcmp.S:5 | eor v0.16b, v0.16b, v1.16b
eor v1.16b, v2.16b, v3.16b
ldr q2, [src1, 48]
ldr q3, [src2, 48]
umaxp v0.16b, v0.16b, v1.16b
ldr q4, [src1, 64]!
ldr q5, [src2, 64]!
eor v1.16b, v2.16b, v3.16b
eor v2.16b, v4.16b, v5.16b
umaxp v1.16b, v1.16b, v2.16b
umaxp v0.16b, v0.16b, v1.16b
umaxp v0.16b, v0.16b, v0.16b
fmov t... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/memcmp.S | LGPL-2.1 | 04e750e75b73957cf1c791535a3f4319534a52fc | github | libc | https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/aarch64/memcmp.S | 161 | 206 |
bminor/glibc:sysdeps/aarch64/memcmp.S:1 | /* memcmp - compare memory
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 published by the Free Software Foundation; ... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/memcmp.S | LGPL-2.1 | ce2f26a22e6b6f5c108d156afd9b43a452bb024c | github | libc | https://github.com/bminor/glibc/blob/ce2f26a22e6b6f5c108d156afd9b43a452bb024c/sysdeps/aarch64/memcmp.S | 1 | 60 |
bminor/glibc:sysdeps/aarch64/memcmp.S:1 | /* memcmp - compare memory
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 published by the Free Software Foundation; ... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/memcmp.S | LGPL-2.1 | 2642002380aafb71a1d3b569b6d7ebeab3284816 | github | libc | https://github.com/bminor/glibc/blob/2642002380aafb71a1d3b569b6d7ebeab3284816/sysdeps/aarch64/memcmp.S | 1 | 60 |
bminor/glibc:sysdeps/aarch64/memcmp.S:2 | #define tmp x6
#define src1end x7
#define src2end x8
ENTRY (memcmp)
PTR_ARG (0)
PTR_ARG (1)
SIZE_ARG (2)
cmp limit, 16
b.lo L(less16)
ldp data1, data3, [src1]
ldp data2, data4, [src2]
ccmp data1, data2, 0, ne
ccmp data3, data4, 0, eq
b.ne L(return2)
add src1end, src1, limit
add src2end, src2, limit
cmp... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/memcmp.S | LGPL-2.1 | 2642002380aafb71a1d3b569b6d7ebeab3284816 | github | libc | https://github.com/bminor/glibc/blob/2642002380aafb71a1d3b569b6d7ebeab3284816/sysdeps/aarch64/memcmp.S | 41 | 100 |
bminor/glibc:sysdeps/aarch64/memcmp.S:3 | b.ne L(return2)
add src1, src1, 32
add src2, src2, 32
L(last64):
subs limit, limit, 32
b.hi L(loop32)
/* Compare last 1-16 bytes using unaligned access. */
L(last_bytes):
ldp data1, data3, [src1end, -16]
ldp data2, data4, [src2end, -16]
L(return2):
cmp data1, data2
csel data1, data1, data3, ne
csel data2, d... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/memcmp.S | LGPL-2.1 | 2642002380aafb71a1d3b569b6d7ebeab3284816 | github | libc | https://github.com/bminor/glibc/blob/2642002380aafb71a1d3b569b6d7ebeab3284816/sysdeps/aarch64/memcmp.S | 81 | 140 |
bminor/glibc:sysdeps/aarch64/memcmp.S:4 | tbz limit, 2, L(less4)
ldr data1w, [src1]
ldr data2w, [src2]
ldr data3w, [src1end, -4]
ldr data4w, [src2end, -4]
b L(return2)
L(less4):
tbz limit, 1, L(less2)
ldrh data1w, [src1]
ldrh data2w, [src2]
cmp data1w, data2w
b.ne L(return)
L(less2):
mov result, 0
tbz limit, 0, L(return_zero)
ldrb data1w, [src1en... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/memcmp.S | LGPL-2.1 | 2642002380aafb71a1d3b569b6d7ebeab3284816 | github | libc | https://github.com/bminor/glibc/blob/2642002380aafb71a1d3b569b6d7ebeab3284816/sysdeps/aarch64/memcmp.S | 121 | 180 |
bminor/glibc:sysdeps/aarch64/memcmp.S:5 | ldr q1, [src2, 16]
subs limit, limit, 64
ldr q2, [src1, 32]
ldr q3, [src2, 32]
eor v0.16b, v0.16b, v1.16b
eor v1.16b, v2.16b, v3.16b
ldr q2, [src1, 48]
ldr q3, [src2, 48]
umaxp v0.16b, v0.16b, v1.16b
ldr q4, [src1, 64]!
ldr q5, [src2, 64]!
eor v1.16b, v2.16b, v3.16b
eor v2.16b, v4.16b, v5.16b
umaxp v1.16b,... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/memcmp.S | LGPL-2.1 | 2642002380aafb71a1d3b569b6d7ebeab3284816 | github | libc | https://github.com/bminor/glibc/blob/2642002380aafb71a1d3b569b6d7ebeab3284816/sysdeps/aarch64/memcmp.S | 161 | 210 |
bminor/glibc:sysdeps/aarch64/memcmp.S:6 | cneg result, result, lo
ret
END (memcmp)
#undef bcmp
weak_alias (memcmp, bcmp)
#undef __memcmpeq
strong_alias (memcmp, __memcmpeq)
libc_hidden_builtin_def (memcmp)
libc_hidden_def (__memcmpeq) | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/memcmp.S | LGPL-2.1 | 2642002380aafb71a1d3b569b6d7ebeab3284816 | github | libc | https://github.com/bminor/glibc/blob/2642002380aafb71a1d3b569b6d7ebeab3284816/sysdeps/aarch64/memcmp.S | 201 | 210 |
bminor/glibc:sysdeps/aarch64/memcmp.S:1 | /* memcmp - compare memory
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 published by the Free Software Foundation; ... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/memcmp.S | LGPL-2.1 | dff8da6b3e89b986bb7f6b1ec18cf65d5972e307 | github | libc | https://github.com/bminor/glibc/blob/dff8da6b3e89b986bb7f6b1ec18cf65d5972e307/sysdeps/aarch64/memcmp.S | 1 | 60 |
bminor/glibc:sysdeps/aarch64/memcmp.S:1 | /* memcmp - compare memory
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 published by the Free Software Foundation; ... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/memcmp.S | LGPL-2.1 | 6d7e8eda9b85b08f207a6dc6f187e94e4817270f | github | libc | https://github.com/bminor/glibc/blob/6d7e8eda9b85b08f207a6dc6f187e94e4817270f/sysdeps/aarch64/memcmp.S | 1 | 60 |
bminor/glibc:sysdeps/aarch64/memcmp.S:1 | /* memcmp - compare memory
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 published by the Free Software Foundation; ... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/memcmp.S | LGPL-2.1 | 581c785bf31bc74430320c7856bbfa3875d025fe | github | libc | https://github.com/bminor/glibc/blob/581c785bf31bc74430320c7856bbfa3875d025fe/sysdeps/aarch64/memcmp.S | 1 | 60 |
bminor/glibc:sysdeps/aarch64/memcmp.S:1 | /* memcmp - compare memory
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 published by the Free Software Foundation; ... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/memcmp.S | LGPL-2.1 | b51eb35c572b015641f03e3682c303f7631279b7 | github | libc | https://github.com/bminor/glibc/blob/b51eb35c572b015641f03e3682c303f7631279b7/sysdeps/aarch64/memcmp.S | 1 | 60 |
bminor/glibc:sysdeps/aarch64/memcmp.S:1 | /* memcmp - compare memory
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 published by the Free Software Foundation; ... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/memcmp.S | LGPL-2.1 | 9894127d202d8c0c821d852658057a03ba3cc3d2 | github | libc | https://github.com/bminor/glibc/blob/9894127d202d8c0c821d852658057a03ba3cc3d2/sysdeps/aarch64/memcmp.S | 1 | 60 |
bminor/glibc:sysdeps/aarch64/memcmp.S:2 | #define tmp1 x7
#define tmp2 x8
ENTRY_ALIGN (memcmp, 6)
PTR_ARG (0)
PTR_ARG (1)
SIZE_ARG (2)
subs limit, limit, 16
b.lo L(less16)
ldp data1, data1h, [src1], 16
ldp data2, data2h, [src2], 16
ccmp data1, data2, 0, ne
ccmp data1h, data2h, 0, eq
b.ne L(return64)
subs limit, limit, 16
b.ls L(last_bytes)
c... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/memcmp.S | LGPL-2.1 | 9894127d202d8c0c821d852658057a03ba3cc3d2 | github | libc | https://github.com/bminor/glibc/blob/9894127d202d8c0c821d852658057a03ba3cc3d2/sysdeps/aarch64/memcmp.S | 41 | 100 |
bminor/glibc:sysdeps/aarch64/memcmp.S:3 | ccmp data1h, data2h, 0, eq
b.ne L(return64)
ldp data1, data1h, [src1, 32]
ldp data2, data2h, [src2, 32]
cmp data1, data2
ccmp data1h, data2h, 0, eq
b.ne L(return64)
ldp data1, data1h, [src1, 48]
ldp data2, data2h, [src2, 48]
cmp data1, data2
ccmp data1h, data2h, 0, eq
b.ne L(return64)
subs limit, limit, ... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/memcmp.S | LGPL-2.1 | 9894127d202d8c0c821d852658057a03ba3cc3d2 | github | libc | https://github.com/bminor/glibc/blob/9894127d202d8c0c821d852658057a03ba3cc3d2/sysdeps/aarch64/memcmp.S | 81 | 140 |
bminor/glibc:sysdeps/aarch64/memcmp.S:4 | cmp data1, data2
csel data1, data1, data1h, ne
csel data2, data2, data2h, ne
L(return):
#ifndef __AARCH64EB__
rev data1, data1
rev data2, data2
#endif
cmp data1, data2
cset result, ne
cneg result, result, lo
ret
.p2align 4
L(less16):
adds limit, limit, 8
b.lo L(less8) //lo:<
ldr data1, [src1]
ldr data2, ... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/memcmp.S | LGPL-2.1 | 9894127d202d8c0c821d852658057a03ba3cc3d2 | github | libc | https://github.com/bminor/glibc/blob/9894127d202d8c0c821d852658057a03ba3cc3d2/sysdeps/aarch64/memcmp.S | 121 | 180 |
bminor/glibc:sysdeps/aarch64/memcmp.S:5 | L(less4):
adds limit, limit, 4
b.eq L(ret_0)
L(byte_loop):
ldrb data1w, [src1], 1
ldrb data2w, [src2], 1
subs limit, limit, 1
ccmp data1w, data2w, 0, ne /* NZCV = 0b0000. */
b.eq L(byte_loop)
sub result, data1w, data2w
ret
L(ret_0):
mov result, 0
ret
END (memcmp)
#undef bcmp
weak_alias (memcmp, bcmp)
#und... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/memcmp.S | LGPL-2.1 | 9894127d202d8c0c821d852658057a03ba3cc3d2 | github | libc | https://github.com/bminor/glibc/blob/9894127d202d8c0c821d852658057a03ba3cc3d2/sysdeps/aarch64/memcmp.S | 161 | 183 |
bminor/glibc:sysdeps/aarch64/memcmp.S:5 | L(less4):
adds limit, limit, 4
b.eq L(ret_0)
L(byte_loop):
ldrb data1w, [src1], 1
ldrb data2w, [src2], 1
subs limit, limit, 1
ccmp data1w, data2w, 0, ne /* NZCV = 0b0000. */
b.eq L(byte_loop)
sub result, data1w, data2w
ret
L(ret_0):
mov result, 0
ret
END (memcmp)
#undef bcmp
weak_alias (memcmp, bcmp)
#und... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/memcmp.S | LGPL-2.1 | 44829b3ddb64e99e37343a0f25b2c082387d31a5 | github | libc | https://github.com/bminor/glibc/blob/44829b3ddb64e99e37343a0f25b2c082387d31a5/sysdeps/aarch64/memcmp.S | 161 | 182 |
bminor/glibc:sysdeps/aarch64/memcmp.S:4 | cmp data1, data2
csel data1, data1, data1h, ne
csel data2, data2, data2h, ne
L(return):
#ifndef __AARCH64EB__
rev data1, data1
rev data2, data2
#endif
cmp data1, data2
cset result, ne
cneg result, result, lo
ret
.p2align 4
L(less16):
adds limit, limit, 8
b.lo L(less8) //lo:<
ldr data1, [src1]
ldr data2, ... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/memcmp.S | LGPL-2.1 | 2b778ceb4010c28d70de9b8eab20e8d88eed586b | github | libc | https://github.com/bminor/glibc/blob/2b778ceb4010c28d70de9b8eab20e8d88eed586b/sysdeps/aarch64/memcmp.S | 121 | 180 |
bminor/glibc:sysdeps/aarch64/memcmp.S:5 | L(less4):
adds limit, limit, 4
b.eq L(ret_0)
L(byte_loop):
ldrb data1w, [src1], 1
ldrb data2w, [src2], 1
subs limit, limit, 1
ccmp data1w, data2w, 0, ne /* NZCV = 0b0000. */
b.eq L(byte_loop)
sub result, data1w, data2w
ret
L(ret_0):
mov result, 0
ret
END (memcmp)
#undef bcmp
weak_alias (memcmp, bcmp)
libc... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/memcmp.S | LGPL-2.1 | 2b778ceb4010c28d70de9b8eab20e8d88eed586b | github | libc | https://github.com/bminor/glibc/blob/2b778ceb4010c28d70de9b8eab20e8d88eed586b/sysdeps/aarch64/memcmp.S | 161 | 180 |
bminor/glibc:sysdeps/aarch64/memcmp.S:1 | /* memcmp - compare memory
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 published by the Free Software Foundation; ... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/memcmp.S | LGPL-2.1 | 45b1e17e9150dbd9ac2d578579063fbfa8e1b327 | github | libc | https://github.com/bminor/glibc/blob/45b1e17e9150dbd9ac2d578579063fbfa8e1b327/sysdeps/aarch64/memcmp.S | 1 | 60 |
bminor/glibc:sysdeps/aarch64/memcmp.S:1 | /* memcmp - compare memory
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 published by the Free Software Foundation; ... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/memcmp.S | LGPL-2.1 | d614a7539657941a9201c236b2f15afac18e1213 | github | libc | https://github.com/bminor/glibc/blob/d614a7539657941a9201c236b2f15afac18e1213/sysdeps/aarch64/memcmp.S | 1 | 60 |
bminor/glibc:sysdeps/aarch64/memcmp.S:2 | #define tmp1 x7
#define tmp2 x8
ENTRY_ALIGN (memcmp, 6)
DELOUSE (0)
DELOUSE (1)
DELOUSE (2)
subs limit, limit, 16
b.lo L(less16)
ldp data1, data1h, [src1], 16
ldp data2, data2h, [src2], 16
ccmp data1, data2, 0, ne
ccmp data1h, data2h, 0, eq
b.ne L(return64)
subs limit, limit, 16
b.ls L(last_bytes)
cm... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/memcmp.S | LGPL-2.1 | d614a7539657941a9201c236b2f15afac18e1213 | github | libc | https://github.com/bminor/glibc/blob/d614a7539657941a9201c236b2f15afac18e1213/sysdeps/aarch64/memcmp.S | 41 | 100 |
bminor/glibc:sysdeps/aarch64/memcmp.S:1 | /* memcmp - compare memory
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 published by the Free Software Foundation; ... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/memcmp.S | LGPL-2.1 | 233efd433d847e69480fe587c4c29a32fe554174 | github | libc | https://github.com/bminor/glibc/blob/233efd433d847e69480fe587c4c29a32fe554174/sysdeps/aarch64/memcmp.S | 1 | 60 |
bminor/glibc:sysdeps/aarch64/memcmp.S:1 | /* memcmp - compare memory
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 published by the Free Software Foundation; ... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/memcmp.S | LGPL-2.1 | 5a82c74822d3272df2f5929133680478c0cfb4bd | github | libc | https://github.com/bminor/glibc/blob/5a82c74822d3272df2f5929133680478c0cfb4bd/sysdeps/aarch64/memcmp.S | 1 | 60 |
bminor/glibc:sysdeps/aarch64/memcmp.S:2 | #define tmp1 x7
#define tmp2 x8
ENTRY_ALIGN (memcmp, 6)
DELOUSE (0)
DELOUSE (1)
DELOUSE (2)
subs limit, limit, 8
b.lo L(less8)
ldr data1, [src1], 8
ldr data2, [src2], 8
cmp data1, data2
b.ne L(return)
subs limit, limit, 8
b.gt L(more16)
ldr data1, [src1, limit]
ldr data2, [src2, limit]
b L(return)
... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/memcmp.S | LGPL-2.1 | 5a82c74822d3272df2f5929133680478c0cfb4bd | github | libc | https://github.com/bminor/glibc/blob/5a82c74822d3272df2f5929133680478c0cfb4bd/sysdeps/aarch64/memcmp.S | 41 | 100 |
bminor/glibc:sysdeps/aarch64/memcmp.S:4 | rev data2, data2
#endif
cmp data1, data2
L(ret_eq):
cset result, ne
cneg result, result, lo
ret
.p2align 4
/* Compare up to 8 bytes. Limit is [-8..-1]. */
L(less8):
adds limit, limit, 4
b.lo L(less4)
ldr data1w, [src1], 4
ldr data2w, [src2], 4
cmp data1w, data2w
b.ne L(return)
sub limit, limit, 4
L(... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/memcmp.S | LGPL-2.1 | 5a82c74822d3272df2f5929133680478c0cfb4bd | github | libc | https://github.com/bminor/glibc/blob/5a82c74822d3272df2f5929133680478c0cfb4bd/sysdeps/aarch64/memcmp.S | 121 | 154 |
bminor/glibc:sysdeps/aarch64/memcmp.S:1 | /* memcmp - compare memory
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 published by the Free Software Foundation; ... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/memcmp.S | LGPL-2.1 | 04277e02d7f54d3582bebcf8386b317018cd5e1d | github | libc | https://github.com/bminor/glibc/blob/04277e02d7f54d3582bebcf8386b317018cd5e1d/sysdeps/aarch64/memcmp.S | 1 | 60 |
bminor/glibc:sysdeps/aarch64/memcmp.S:1 | /* memcmp - compare memory
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 published by the Free Software Foundation; ... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/memcmp.S | LGPL-2.1 | 4e54d918630ea53e29dd70d3bdffcb00d29ed3d4 | github | libc | https://github.com/bminor/glibc/blob/4e54d918630ea53e29dd70d3bdffcb00d29ed3d4/sysdeps/aarch64/memcmp.S | 1 | 60 |
bminor/glibc:sysdeps/aarch64/memcmp.S:2 | #define tmp1 x7
#define tmp2 x8
ENTRY_ALIGN (memcmp, 6)
DELOUSE (0)
DELOUSE (1)
DELOUSE (2)
subs limit, limit, 8
b.lo L(less8)
ldr data1, [src1], 8
ldr data2, [src2], 8
cmp data1, data2
b.ne L(return)
subs limit, limit, 8
b.gt L(more16)
ldr data1, [src1, limit]
ldr data2, [src2, limit]
b L(return)
... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/memcmp.S | LGPL-2.1 | 30a81dae5b752f8aa5f96e7f7c341ec57cba3585 | github | libc | https://github.com/bminor/glibc/blob/30a81dae5b752f8aa5f96e7f7c341ec57cba3585/sysdeps/aarch64/memcmp.S | 41 | 100 |
bminor/glibc:sysdeps/aarch64/memcmp.S:1 | /* memcmp - compare memory
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 published by the Free Software Foundation; ... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/memcmp.S | LGPL-2.1 | 84c94d2fd90d84ae7e67657ee8e22c2d1b796f63 | github | libc | https://github.com/bminor/glibc/blob/84c94d2fd90d84ae7e67657ee8e22c2d1b796f63/sysdeps/aarch64/memcmp.S | 1 | 60 |
bminor/glibc:sysdeps/aarch64/memcmp.S:2 | ENTRY_ALIGN (memcmp, 6)
DELOUSE (0)
DELOUSE (1)
DELOUSE (2)
subs limit, limit, 8
b.lo L(less8)
/* Limit >= 8, so check first 8 bytes using unaligned loads. */
ldr data1, [src1], 8
ldr data2, [src2], 8
and tmp1, src1, 7
add limit, limit, tmp1
cmp data1, data2
bne L(return)
/* Align src1 and adjust src2 ... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/memcmp.S | LGPL-2.1 | 84c94d2fd90d84ae7e67657ee8e22c2d1b796f63 | github | libc | https://github.com/bminor/glibc/blob/84c94d2fd90d84ae7e67657ee8e22c2d1b796f63/sysdeps/aarch64/memcmp.S | 41 | 100 |
bminor/glibc:sysdeps/aarch64/memcmp.S:3 | ldr data2, [src2, limit]
/* Compare data bytes and set return value to 0, -1 or 1. */
L(return):
#ifndef __AARCH64EB__
rev data1, data1
rev data2, data2
#endif
cmp data1, data2
L(ret_eq):
cset result, ne
cneg result, result, lo
ret
.p2align 4
/* Compare up to 8 bytes. Limit is [-8..-1]. */
L(less8):
... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/memcmp.S | LGPL-2.1 | 84c94d2fd90d84ae7e67657ee8e22c2d1b796f63 | github | libc | https://github.com/bminor/glibc/blob/84c94d2fd90d84ae7e67657ee8e22c2d1b796f63/sysdeps/aarch64/memcmp.S | 81 | 120 |
bminor/glibc:sysdeps/aarch64/memcmp.S:1 | /* memcmp - compare memory
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 published by the Free Software Foundation; ... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/memcmp.S | LGPL-2.1 | 688903eb3ef01301d239ab753d309d45720610a7 | github | libc | https://github.com/bminor/glibc/blob/688903eb3ef01301d239ab753d309d45720610a7/sysdeps/aarch64/memcmp.S | 1 | 60 |
bminor/glibc:sysdeps/aarch64/memcmp.S:2 | ENTRY_ALIGN (memcmp, 6)
DELOUSE (0)
DELOUSE (1)
DELOUSE (2)
subs limit, limit, 8
b.lo .Lless8
/* Limit >= 8, so check first 8 bytes using unaligned loads. */
ldr data1, [src1], 8
ldr data2, [src2], 8
and tmp1, src1, 7
add limit, limit, tmp1
cmp data1, data2
bne .Lreturn
/* Align src1 and adjust src2 wi... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/memcmp.S | LGPL-2.1 | 688903eb3ef01301d239ab753d309d45720610a7 | github | libc | https://github.com/bminor/glibc/blob/688903eb3ef01301d239ab753d309d45720610a7/sysdeps/aarch64/memcmp.S | 41 | 100 |
bminor/glibc:sysdeps/aarch64/memcmp.S:3 | ldr data2, [src2, limit]
/* Compare data bytes and set return value to 0, -1 or 1. */
.Lreturn:
#ifndef __AARCH64EB__
rev data1, data1
rev data2, data2
#endif
cmp data1, data2
.Lret_eq:
cset result, ne
cneg result, result, lo
ret
.p2align 4
/* Compare up to 8 bytes. Limit is [-8..-1]. */
.Lless8:
add... | arm64 | gas-like | handwritten | bminor/glibc | sysdeps/aarch64/memcmp.S | LGPL-2.1 | 688903eb3ef01301d239ab753d309d45720610a7 | github | libc | https://github.com/bminor/glibc/blob/688903eb3ef01301d239ab753d309d45720610a7/sysdeps/aarch64/memcmp.S | 81 | 120 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.