netsurf: branch master updated. release/3.5-212-gd0a1ee7

NetSurf Browser Project (Commit Mailer) no-reply at netsurf-browser.org
Sat Jul 9 23:17:39 BST 2016


Gitweb links:

...log http://git.netsurf-browser.org/netsurf.git/shortlog/d0a1ee7ac0137a1ab51551649ce9f3f1522e4a39
...commit http://git.netsurf-browser.org/netsurf.git/commit/d0a1ee7ac0137a1ab51551649ce9f3f1522e4a39
...tree http://git.netsurf-browser.org/netsurf.git/tree/d0a1ee7ac0137a1ab51551649ce9f3f1522e4a39

The branch, master has been updated
       via  d0a1ee7ac0137a1ab51551649ce9f3f1522e4a39 (commit)
      from  794f12e4b5236cb686f61fa18968455b4c960d66 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commitdiff http://git.netsurf-browser.org/netsurf.git/commit/?id=d0a1ee7ac0137a1ab51551649ce9f3f1522e4a39
commit d0a1ee7ac0137a1ab51551649ce9f3f1522e4a39
Author: Chris Young <chris at unsatisfactorysoftware.co.uk>
Commit: Chris Young <chris at unsatisfactorysoftware.co.uk>

    Only set JSIMD_FORCENONE if it is not already set

diff --git a/frontends/amiga/gui.c b/frontends/amiga/gui.c
index 60fb222..ed4ce61 100644
--- a/frontends/amiga/gui.c
+++ b/frontends/amiga/gui.c
@@ -5548,13 +5548,23 @@ int main(int argc, char** argv)
 #ifdef __amigaos4__
 	/* Check for AltiVec */
 	uint32 altivec = 0;
+
 	GetCPUInfoTags(GCIT_VectorUnit, &altivec);
 
 	if(altivec == VECTORTYPE_ALTIVEC) {
 		LOG("AltiVec detected");
 	} else {
+		char jsimd_forcenone[10];
+
 		LOG("AltiVec NOT detected");
-		SetVar("JSIMD_FORCENONE", "1", 1, GVF_GLOBAL_ONLY | GVF_SAVE_VAR);
+		int32 len = GetVar("JSIMD_FORCENONE", jsimd_forcenone, 10, GVF_GLOBAL_ONLY);
+
+		if(len == -1) {
+			LOG("WARNING: JSIMD_FORCENONE NOT SET");
+			SetVar("JSIMD_FORCENONE", "1", 1, GVF_GLOBAL_ONLY | GVF_SAVE_VAR);
+		} else {
+			LOG("JSIMDFORCENONE = %s (NB: Should be '1' for this architecture)", jsimd_forcenone);
+		}
 	}
 #endif
 


-----------------------------------------------------------------------

Summary of changes:
 frontends/amiga/gui.c |   12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/frontends/amiga/gui.c b/frontends/amiga/gui.c
index 60fb222..ed4ce61 100644
--- a/frontends/amiga/gui.c
+++ b/frontends/amiga/gui.c
@@ -5548,13 +5548,23 @@ int main(int argc, char** argv)
 #ifdef __amigaos4__
 	/* Check for AltiVec */
 	uint32 altivec = 0;
+
 	GetCPUInfoTags(GCIT_VectorUnit, &altivec);
 
 	if(altivec == VECTORTYPE_ALTIVEC) {
 		LOG("AltiVec detected");
 	} else {
+		char jsimd_forcenone[10];
+
 		LOG("AltiVec NOT detected");
-		SetVar("JSIMD_FORCENONE", "1", 1, GVF_GLOBAL_ONLY | GVF_SAVE_VAR);
+		int32 len = GetVar("JSIMD_FORCENONE", jsimd_forcenone, 10, GVF_GLOBAL_ONLY);
+
+		if(len == -1) {
+			LOG("WARNING: JSIMD_FORCENONE NOT SET");
+			SetVar("JSIMD_FORCENONE", "1", 1, GVF_GLOBAL_ONLY | GVF_SAVE_VAR);
+		} else {
+			LOG("JSIMDFORCENONE = %s (NB: Should be '1' for this architecture)", jsimd_forcenone);
+		}
 	}
 #endif
 


-- 
NetSurf Browser



More information about the netsurf-commits mailing list