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 <[email protected]>
Commit: Chris Young <[email protected]>

    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

_______________________________________________
netsurf-commits mailing list
[email protected]
http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/netsurf-commits-netsurf-browser.org

Reply via email to