summaryrefslogtreecommitdiff
path: root/ports/sysdeps/tile/tilegx/strrchr.c
diff options
context:
space:
mode:
Diffstat (limited to 'ports/sysdeps/tile/tilegx/strrchr.c')
-rw-r--r--ports/sysdeps/tile/tilegx/strrchr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ports/sysdeps/tile/tilegx/strrchr.c b/ports/sysdeps/tile/tilegx/strrchr.c
index 223c59dd4..b6e43a683 100644
--- a/ports/sysdeps/tile/tilegx/strrchr.c
+++ b/ports/sysdeps/tile/tilegx/strrchr.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2011 Free Software Foundation, Inc.
+/* Copyright (C) 2011-2012 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Chris Metcalf <cmetcalf@tilera.com>, 2011.
@@ -28,7 +28,7 @@ strrchr (const char *s, int c)
const uint64_t *p = (const uint64_t *) (s_int & -8);
/* Create eight copies of the byte for which we are looking. */
- const uint64_t goal = 0x0101010101010101ULL * (uint8_t) c;
+ const uint64_t goal = copy_byte(c);
/* Read the first aligned word, but force bytes before the string to
match neither zero nor goal (we make sure the high bit of each byte