Skip to content

Commit

Permalink
Remove invalid restrict attribute in softmax ukernel
Browse files Browse the repository at this point in the history
  • Loading branch information
Marat Dukhan committed Sep 3, 2018
1 parent af40ea7 commit 1e005b0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/psimd/softmax.c
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ static float sum_exp_minus_c__psimd(size_t n, const float v[restrict static n],
return psimd_reduce_sum_f32(sum0);
}

static void scaled_exp_minus_c__scalar(size_t n, const float x[restrict static n], float y[restrict static n], float scale, float c) {
static void scaled_exp_minus_c__scalar(size_t n, const float x[static n], float y[static n], float scale, float c) {
do {
*y++ = scale * expf(*x++ - c);
} while (--n);
Expand Down
2 changes: 1 addition & 1 deletion src/scalar/softmax.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ static float sum_exp_minus_c__scalar(size_t n, const float v[restrict static n],
return sum;
}

static void scaled_exp_minus_c__scalar(size_t n, const float x[restrict static n], float y[restrict static n], float scale, float c) {
static void scaled_exp_minus_c__scalar(size_t n, const float x[static n], float y[static n], float scale, float c) {
do {
*y++ = scale * expf(*x++ - c);
} while (--n);
Expand Down

0 comments on commit 1e005b0

Please sign in to comment.