version of TJBench from outputting any reference images (the `-nowrite` switch
was accidentally enabled by default.)
-4. libjpeg-turbo should now build and run on AmigaOS 4 (with full AltiVec
-SIMD acceleration.)
+4. libjpeg-turbo should now build and run with full AltiVec SIMD acceleration
+on PowerPC-based AmigaOS 4 and OpenBSD systems.
1.5.1
char *env = NULL;
#if !defined(__ALTIVEC__) && (defined(__linux__) || defined(ANDROID) || defined(__ANDROID__))
int bufsize = 1024; /* an initial guess for the line buffer size limit */
+#elif defined(__amigaos4__)
+ uint32 altivec = 0;
+#elif defined(__OpenBSD__)
+ int mib[2] = { CTL_MACHDEP, CPU_ALTIVEC };
+ int altivec;
+ size_t len = sizeof(altivec);
#endif
if (simd_support != ~0U)
break;
}
#elif defined(__amigaos4__)
- uint32 altivec = 0;
IExec->GetCPUInfoTags(GCIT_VectorUnit, &altivec, TAG_DONE);
if(altivec == VECTORTYPE_ALTIVEC)
simd_support |= JSIMD_ALTIVEC;
#elif defined(__OpenBSD__)
- int mib[2] = { CTL_MACHDEP, CPU_ALTIVEC };
- int altivec;
- size_t len = sizeof(altivec);
if (sysctl(mib, 2, &altivec, &len, NULL, 0) == 0 && altivec != 0)
simd_support |= JSIMD_ALTIVEC;
#endif