diff options
-rw-r--r-- | base/base_cpudep.c | 16 | ||||
-rw-r--r-- | raster/imagescale.c | 4 |
2 files changed, 11 insertions, 9 deletions
diff --git a/base/base_cpudep.c b/base/base_cpudep.c index c2b29672..0b92a330 100644 --- a/base/base_cpudep.c +++ b/base/base_cpudep.c @@ -27,11 +27,13 @@ void fz_cpudetect(void) #include <setjmp.h> /* sigsetjmp/siglongjmp */ #endif -//#ifdef WIN32 -//#define sigjmp_buf jmp_buf -//#define sigsetjmp(a,b) setjmp(a) -//#define siglongjmp longjmp -//#endif +/* +#ifdef WIN32 +#define sigjmp_buf jmp_buf +#define sigsetjmp(a,b) setjmp(a) +#define siglongjmp longjmp +#endif +*/ typedef struct { void (*test)(void); @@ -236,7 +238,7 @@ void fz_cpudetect(void) features[i].test(); #if defined(ARCH_X86) || defined(ARCH_X86_64) - // reset mmx/x87 pipeline state + /* reset mmx/x87 pipeline state */ if (features[i].flag & (HAVE_MMX | HAVE_3DNOW | HAVE_MMXEXT)) { __asm__ __volatile__ ("emms\n\t"); } @@ -300,7 +302,7 @@ void fz_cpudetect(void) #if defined(ARCH_X86) || defined(ARCH_X86_64) if (features[i].flag & (HAVE_MMX | HAVE_3DNOW | HAVE_MMXEXT)) { - // reset mmx/x87 pipeline state + /* reset mmx/x87 pipeline state */ __asm emms; } #endif diff --git a/raster/imagescale.c b/raster/imagescale.c index bbe20565..9ff58d24 100644 --- a/raster/imagescale.c +++ b/raster/imagescale.c @@ -36,7 +36,7 @@ static inline void srown(byte * restrict src, byte * restrict dst, int w, int de dst[k] = sum[k] / left; } -// special-case common 1-5 components - the compiler optimizes this +/* special-case common 1-5 components - the compiler optimizes this */ static inline void srowc(byte * restrict src, byte * restrict dst, int w, int denom, int n) { int invdenom = (1<<16) / denom; @@ -54,7 +54,7 @@ static inline void srowc(byte * restrict src, byte * restrict dst, int w, int de for (x = 0; x < w; x++) { sum1 += src[x * n + 0]; - // the compiler eliminates these if-tests + /* the compiler eliminates these if-tests */ if (n >= 2) sum2 += src[x * n + 1]; if (n >= 3) |