mirror of
git://sourceware.org/git/glibc.git
synced 2025-03-06 20:58:33 +01:00
arm: Remove __builtin_arm_uqsub8 usage on string-fza.h
The __builtin_arm_uqsub8 is an internal GCC builtin which might change in future release (the correct way is to include "arm_acle.h" and use __uqsub8 ()). Since not all compilers support it, just use the inline assembler instead. Checked on armv7a-linux-gnueabihf. Reviewed-by: Wilco Dijkstra <Wilco.Dijkstra@arm.com>
This commit is contained in:
parent
90ae3bc393
commit
3a4781c16c
1 changed files with 0 additions and 4 deletions
|
@ -33,13 +33,9 @@ find_zero_all (op_t x)
|
|||
/* Use unsigned saturated subtraction from 1 in each byte.
|
||||
That leaves 1 for every byte that was zero. */
|
||||
op_t ones = repeat_bytes (0x01);
|
||||
#if __GNUC_PREREQ (10, 0)
|
||||
return __builtin_arm_uqsub8 (ones, x);
|
||||
#else
|
||||
op_t ret;
|
||||
asm ("uqsub8 %0,%1,%2" : "=r"(ret) : "r"(ones), "r"(x));
|
||||
return ret;
|
||||
#endif
|
||||
}
|
||||
|
||||
/* Identify bytes that are equal between X1 and X2. */
|
||||
|
|
Loading…
Add table
Reference in a new issue