Skip to content

Commit

Permalink
fixing restrict
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Lemire committed Dec 4, 2023
1 parent 4131769 commit dd19133
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/despacer.c
Original file line number Diff line number Diff line change
Expand Up @@ -221,8 +221,8 @@ size_t despace64(char *bytes, size_t howmany) {
* Result is stored in "out", where the caller is responsible for memory
* allocation.
*/
size_t despace_to(const char *__restrict__ bytes, size_t howmany,
char *__restrict__ out) {
size_t despace_to(const char *restrict bytes, size_t howmany,
char *restrict out) {
size_t pos = 0;
for (size_t i = 0; i < howmany; i++) {
char c = bytes[i];
Expand Down Expand Up @@ -897,8 +897,8 @@ size_t vbmi2_despace(char *bytes, size_t howmany) {

#include <x86intrin.h>

size_t sse42_despace_to(const char *__restrict__ bytes,
size_t howmany, char *__restrict__ out) {
size_t sse42_despace_to(const char *restrict bytes,
size_t howmany, char *restrict out) {
size_t pos = 0;
__m128i targetchars =
_mm_set_epi8(' ', '\n', '\r', ' ', ' ', '\n', '\r', ' ', ' ', '\n', '\r',
Expand Down

0 comments on commit dd19133

Please sign in to comment.