diff options
author | Ghabry <gabriel+github@mastergk.de> | 2020-04-04 14:59:52 +0200 |
---|---|---|
committer | Matt Turner <mattst88@gmail.com> | 2020-04-14 00:08:57 +0000 |
commit | eb0c3d26ed2c11955a8176481888919c6a95e548 (patch) | |
tree | 919b3532ffcbab6f2634be396f8c5a55805152d4 | |
parent | 9976d2c099db028f24a09cef6f1686b3b5ab9975 (diff) | |
download | pixman-eb0c3d26ed2c11955a8176481888919c6a95e548.tar.gz |
Enabled armv6 SIMD for 3DS (devkitARM) and arm neon SIMD for PS Vita (vitasdk) and Switch (devkitA64)
-rw-r--r-- | pixman/pixman-arm.c | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/pixman/pixman-arm.c b/pixman/pixman-arm.c index 23374e4..4a2ae85 100644 --- a/pixman/pixman-arm.c +++ b/pixman/pixman-arm.c @@ -176,6 +176,31 @@ detect_cpu_features (void) return features; } +#elif defined (_3DS) /* 3DS homebrew (devkitARM) */ + +static arm_cpu_features_t +detect_cpu_features (void) +{ + arm_cpu_features_t features = 0; + + features |= ARM_V6; + + return features; +} + +#elif defined (PSP2) || defined (__SWITCH__) +/* Vita (VitaSDK) or Switch (devkitA64) homebrew */ + +static arm_cpu_features_t +detect_cpu_features (void) +{ + arm_cpu_features_t features = 0; + + features |= ARM_NEON; + + return features; +} + #else /* Unknown */ static arm_cpu_features_t |