summaryrefslogtreecommitdiffstats
path: root/arch/tile/lib/memchr_64.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/tile/lib/memchr_64.c')
-rw-r--r--arch/tile/lib/memchr_64.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/tile/lib/memchr_64.c b/arch/tile/lib/memchr_64.c
index 6f867dbf7c56..f8196b3a950e 100644
--- a/arch/tile/lib/memchr_64.c
+++ b/arch/tile/lib/memchr_64.c
@@ -36,7 +36,7 @@ void *memchr(const void *s, int c, size_t n)
p = (const uint64_t *)(s_int & -8);
/* Create eight copies of the byte for which we are looking. */
- goal = 0x0101010101010101ULL * (uint8_t) c;
+ goal = copy_byte(c);
/* Read the first word, but munge it so that bytes before the array
* will not match goal.
OpenPOWER on IntegriCloud