diff options
author | Richard Henderson <richard.henderson@linaro.org> | 2023-01-10 18:00:51 -0300 |
---|---|---|
committer | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2023-02-06 16:19:35 -0300 |
commit | d45890b28c8712dbbbb3a39da1eef952d4bf98d1 (patch) | |
tree | b75a8f9d9a0f395e851417b1f75e6d864648ce89 /sysdeps/generic/string-opthr.h | |
parent | d1a9b6d8e736db997b5e825df92031645db5d96c (diff) | |
download | glibc-d45890b28c8712dbbbb3a39da1eef952d4bf98d1.zip glibc-d45890b28c8712dbbbb3a39da1eef952d4bf98d1.tar.gz glibc-d45890b28c8712dbbbb3a39da1eef952d4bf98d1.tar.bz2 |
Parameterize OP_T_THRES from memcopy.h
It moves OP_T_THRES out of memcopy.h to its own header and adjust
each architecture that redefines it.
Checked with a build and check with run-built-tests=no for all major
Linux ABIs.
Co-authored-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Reviewed-by: Carlos O'Donell <carlos@redhat.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'sysdeps/generic/string-opthr.h')
-rw-r--r-- | sysdeps/generic/string-opthr.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/sysdeps/generic/string-opthr.h b/sysdeps/generic/string-opthr.h new file mode 100644 index 0000000..6f10a98 --- /dev/null +++ b/sysdeps/generic/string-opthr.h @@ -0,0 +1,25 @@ +/* Define a threshold for word access. Generic version. + Copyright (C) 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 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 + <http://www.gnu.org/licenses/>. */ + +#ifndef _STRING_OPTHR_H +#define _STRING_OPTHR_H 1 + +/* Threshold value for when to enter the unrolled loops. */ +#define OP_T_THRES 16 + +#endif /* string-opthr.h */ |