2022-11-04 09:35:42 -07:00

15 lines
236 B
C

/*
* @@name: SIMD.4
* @@type: C
* @@operation: compile
* @@expect: success
* @@version: omp_4.0
*/
void work( float *b, int n, int m )
{
int i;
#pragma omp simd safelen(16)
for (i = m; i < n; i++)
b[i] = b[i-m] - 1.0f;
}