mirror of
git://sourceware.org/git/glibc.git
synced 2024-11-21 01:12:26 +08:00
AArch64: Remove memset-reg.h
Remove memset-reg.h by moving register definitions into the memset implementations. Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
This commit is contained in:
parent
89b088bf70
commit
8ecb477ea1
@ -1,30 +0,0 @@
|
||||
/* Register aliases for memset to be used across implementations.
|
||||
Copyright (C) 2017-2024 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
|
||||
The GNU C Library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Lesser General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 2.1 of the License, or (at your option) any later version.
|
||||
|
||||
The GNU C Library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Lesser General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public
|
||||
License along with the GNU C Library; if not, see
|
||||
<https://www.gnu.org/licenses/>. */
|
||||
|
||||
#define dstin x0
|
||||
#define val x1
|
||||
#define valw w1
|
||||
#define count x2
|
||||
#define dst x3
|
||||
#define dstend x4
|
||||
#define tmp1 x5
|
||||
#define tmp1w w5
|
||||
#define tmp2 x6
|
||||
#define tmp2w w6
|
||||
#define zva_len x7
|
||||
#define zva_lenw w7
|
@ -30,7 +30,6 @@
|
||||
*/
|
||||
|
||||
#define dstin x0
|
||||
#define val x1
|
||||
#define valw w1
|
||||
#define count x2
|
||||
#define dst x3
|
||||
|
@ -18,7 +18,6 @@
|
||||
<https://www.gnu.org/licenses/>. */
|
||||
|
||||
#include <sysdep.h>
|
||||
#include <sysdeps/aarch64/memset-reg.h>
|
||||
|
||||
/* Assumptions:
|
||||
*
|
||||
@ -36,6 +35,14 @@
|
||||
|
||||
.arch armv8.2-a+sve
|
||||
|
||||
#define dstin x0
|
||||
#define valw w1
|
||||
#define count x2
|
||||
#define dst x3
|
||||
#define dstend x4
|
||||
#define tmp1 x5
|
||||
#define tmp2 x6
|
||||
|
||||
.macro st1b_unroll first=0, last=7
|
||||
st1b z0.b, p0, [dst, \first, mul vl]
|
||||
.if \last-\first
|
||||
|
@ -18,7 +18,6 @@
|
||||
<https://www.gnu.org/licenses/>. */
|
||||
|
||||
#include <sysdep.h>
|
||||
#include "memset-reg.h"
|
||||
|
||||
/* Assumptions:
|
||||
*
|
||||
@ -26,6 +25,13 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#define dstin x0
|
||||
#define val x1
|
||||
#define valw w1
|
||||
#define count x2
|
||||
#define dst x3
|
||||
#define dstend x4
|
||||
|
||||
ENTRY (__memset_emag)
|
||||
|
||||
PTR_ARG (0)
|
||||
|
@ -18,7 +18,6 @@
|
||||
<https://www.gnu.org/licenses/>. */
|
||||
|
||||
#include <sysdep.h>
|
||||
#include <sysdeps/aarch64/memset-reg.h>
|
||||
|
||||
/* Assumptions:
|
||||
*
|
||||
@ -26,6 +25,12 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#define dstin x0
|
||||
#define valw w1
|
||||
#define count x2
|
||||
#define dst x3
|
||||
#define dstend x4
|
||||
|
||||
ENTRY (__memset_kunpeng)
|
||||
|
||||
PTR_ARG (0)
|
||||
|
@ -19,12 +19,18 @@
|
||||
<https://www.gnu.org/licenses/>. */
|
||||
|
||||
#include <sysdep.h>
|
||||
#include "memset-reg.h"
|
||||
|
||||
/* Assumptions:
|
||||
ARMv8-a, AArch64, unaligned accesses
|
||||
*/
|
||||
|
||||
#define dstin x0
|
||||
#define val x1
|
||||
#define valw w1
|
||||
#define count x2
|
||||
#define dst x3
|
||||
#define dstend x4
|
||||
|
||||
ENTRY (__memset_oryon1)
|
||||
|
||||
PTR_ARG (0)
|
||||
|
Loading…
Reference in New Issue
Block a user