mirror of
https://sourceware.org/git/glibc.git
synced 2025-01-09 02:40:08 +00:00
f446d90fe6
The goal of this flag is to allow targets which don't prefer/have ERMS to still access the non-temporal memset implementation. There are 4 cases for tuning memset: 1) `Avoid_STOSB && Avoid_Non_Temporal_Memset` - Memset with temporal stores 2) `Avoid_STOSB && !Avoid_Non_Temporal_Memset` - Memset with temporal/non-temporal stores. Non-temporal path goes through `rep stosb` path. We accomplish this by setting `x86_rep_stosb_threshold` to `x86_memset_non_temporal_threshold`. 3) `!Avoid_STOSB && Avoid_Non_Temporal_Memset` - Memset with temporal stores/`rep stosb` 3) `!Avoid_STOSB && !Avoid_Non_Temporal_Memset` - Memset with temporal stores/`rep stosb`/non-temporal stores. Reviewed-by: H.J. Lu <hjl.tools@gmail.com>
38 lines
1.3 KiB
Modula-2
38 lines
1.3 KiB
Modula-2
/* Bits in the PREFERRED_FEATURE_INDEX_1 bitfield of <cpu-features.h>.
|
|
Copyright (C) 2020-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/>. */
|
|
|
|
BIT (Fast_Rep_String)
|
|
BIT (Fast_Copy_Backward)
|
|
BIT (Slow_BSF)
|
|
BIT (Fast_Unaligned_Load)
|
|
BIT (Prefer_PMINUB_for_stringop)
|
|
BIT (Fast_Unaligned_Copy)
|
|
BIT (I586)
|
|
BIT (I686)
|
|
BIT (Slow_SSE4_2)
|
|
BIT (AVX_Fast_Unaligned_Load)
|
|
BIT (Prefer_MAP_32BIT_EXEC)
|
|
BIT (Prefer_No_VZEROUPPER)
|
|
BIT (Prefer_ERMS)
|
|
BIT (Prefer_No_AVX512)
|
|
BIT (MathVec_Prefer_No_AVX512)
|
|
BIT (Prefer_FSRM)
|
|
BIT (Avoid_Short_Distance_REP_MOVSB)
|
|
BIT (Avoid_Non_Temporal_Memset)
|
|
BIT (Avoid_STOSB)
|