mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-02-26 03:14:21 +03:00
Set an env-var if we don't have AltiVec
This, in theory, allows us to use libjpeg-turbo 1.5+ on both AltiVec and non-AltiVec systems.
This commit is contained in:
parent
39dcd22b05
commit
c9daec5567
@ -5544,6 +5544,19 @@ int main(int argc, char** argv)
|
||||
/* Open splash window */
|
||||
Object *splash_window = ami_gui_splash_open();
|
||||
|
||||
#ifdef __amigaos4__
|
||||
/* Check for AltiVec */
|
||||
uint32 altivec = 0;
|
||||
GetCPUInfoTags(GCIT_VectorUnit, &altivec);
|
||||
|
||||
if(altivec == VECTORTYPE_ALTIVEC) {
|
||||
LOG("AltiVec detected");
|
||||
} else {
|
||||
LOG("AltiVec NOT detected");
|
||||
SetVar("JSIMD_FORCENONE", "0", 1, GVF_LOCAL_ONLY);
|
||||
}
|
||||
#endif
|
||||
|
||||
ami_object_init();
|
||||
|
||||
if (ami_open_resources() == false) { /* alloc message ports */
|
||||
|
Loading…
x
Reference in New Issue
Block a user