Skip to content

Commit 9b449aa

Browse files
committed
.
2 parents 0016dc6 + 472e8eb commit 9b449aa

File tree

1 file changed

+8
-17
lines changed

1 file changed

+8
-17
lines changed

CImg.h

Lines changed: 8 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -212,13 +212,6 @@ enum {FALSE_WIN = 0};
212212
#define cimg_pragma(x) _Pragma(#x)
213213
#endif
214214

215-
// Portable macro to define '__restrict'.
216-
#if defined(__GNUC__) || defined(__clang__) || defined(_MSC_VER) || defined(__INTEL_COMPILER)
217-
#define cimg_restrict __restrict
218-
#else
219-
#define cimg_restrict
220-
#endif
221-
222215
// Define own datatypes to ensure portability.
223216
// ( 'sizeof(cimg_ulong/cimg_long) = sizeof(void*)' ).
224217
#define cimg_uint8 unsigned char
@@ -34864,8 +34857,8 @@ namespace cimg_library {
3486434857
if (mode&4) cimg_rofX(*this,x) mp(x,y,z,0);
3486534858
else cimg_rofX(*this,x) {
3486634859
mp(x,y,z,0,res._data);
34867-
const double *const cimg_restrict ptrs = res._data;
34868-
T *cimg_restrict _ptrd = ptrd--;
34860+
const double *const ptrs = res._data;
34861+
T *_ptrd = ptrd--;
3486934862
for (unsigned int n = 0; n<N; ++n) _ptrd[n*whd] = (T)ptrs[n];
3487034863
}
3487134864
}
@@ -34879,10 +34872,9 @@ namespace cimg_library {
3487934872
if (mode&4) cimg_forX(*this,x) mp(x,y,z,0);
3488034873
else cimg_forX(*this,x) {
3488134874
mp(x,y,z,0,res._data);
34882-
const double *const cimg_restrict ptrs = res._data;
34883-
T *cimg_restrict _ptrd = ptrd++;
34884-
cimg_pragma_openmp(simd)
34885-
for (unsigned int n = 0; n<N; ++n) _ptrd[n*whd] = (T)ptrs[n];
34875+
const double *const ptrs = res._data;
34876+
T *_ptrd = ptrd++;
34877+
for (unsigned int n = 0; n<N; ++n) _ptrd[n*whd] = (T)ptrs[n];
3488634878
}
3488734879
}
3488834880
mp.end_t();
@@ -34910,10 +34902,9 @@ namespace cimg_library {
3491034902
const ulongT off = (ulongT)_off; \
3491134903
cimg_for##_X(*this,_x) { \
3491234904
lmp(x,y,z,0,res._data); \
34913-
const double *const cimg_restrict ptrs = res._data; \
34914-
T *cimg_restrict _ptrd = __ptrd; \
34915-
cimg_pragma_openmp(simd) \
34916-
for (unsigned int n = 0; n<N; ++n) _ptrd[n*whd] = (T)ptrs[n]; \
34905+
const double *const ptrs = res._data; \
34906+
T *_ptrd = __ptrd; \
34907+
for (unsigned int n = 0; n<N; ++n) _ptrd[n*whd] = (T)ptrs[n]; \
3491734908
__ptrd+=off; \
3491834909
} \
3491934910
} \

0 commit comments

Comments
 (0)