diff options
Diffstat (limited to 'common/scaler/hq3x.cpp')
-rw-r--r-- | common/scaler/hq3x.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/common/scaler/hq3x.cpp b/common/scaler/hq3x.cpp index f0a92c533c..43bc0dd432 100644 --- a/common/scaler/hq3x.cpp +++ b/common/scaler/hq3x.cpp @@ -42,6 +42,19 @@ void HQ3x(const uint8 *srcPtr, uint32 srcPitch, uint8 *dstPtr, uint32 dstPitch, #else #ifdef HAS_ALTIVEC + +#ifdef __amigaos4__ +#include <proto/exec.h> +static bool isAltiVecAvailable() { + uint32 vecUnit; + IExec->GetCPUInfo(GCIT_VectorUnit, &vecUnit, TAG_DONE); + if (vecUnit == VECTORTYPE_NONE) + return false; + else + return true; +} +#else + #include <sys/sysctl.h> static bool isAltiVecAvailable() { @@ -54,6 +67,7 @@ static bool isAltiVecAvailable() { return false; } #endif +#endif #define PIXEL00_1M *(q) = interpolate16_2<bitFormat,3,1>(w5, w1); #define PIXEL00_1U *(q) = interpolate16_2<bitFormat,3,1>(w5, w2); |