sse2 is a more precise description of the requirement,
and it matches what people will see in, for example
grep sse2 /proc/cpuinfo # linux
sysctl hw.optional.sse2 # os x
R=golang-dev, dsymonds, iant
CC=golang-dev
https://golang.org/cl/
7057050
void bgrunv(char *dir, int mode, Vec *argv);
void bgwait(void);
bool streq(char*, char*);
-bool cansse(void);
+bool cansse2(void);
void writefile(Buf*, char*, int);
void xatexit(void (*f)(void));
void xexit(int);
xgetenv(&b, "GO386");
if(b.len == 0) {
- if(cansse())
- bwritestr(&b, "sse");
+ if(cansse2())
+ bwritestr(&b, "sse2");
else
bwritestr(&b, "387");
}
}
bool
-cansse(void)
+cansse2(void)
{
// if we had access to cpuid, could answer this question
// less conservatively.
}
bool
-cansse(void)
+cansse2(void)
{
int info[4];
}
bool
-cansse(void)
+cansse2(void)
{
int info[4];
goroot = getgoroot();
goos = getgoos();
goarch = thestring;
- use_sse = strcmp(getgo386(), "sse") == 0;
setexp();
flagparse(&argc, &argv, usage);
+ if(argc < 1)
+ usage();
+
if(flag_race) {
racepkg = mkpkg(strlit("runtime/race"));
racepkg->name = "race";
if(debug['l'] <= 1)
debug['l'] = 1 - debug['l'];
- if(argc < 1)
- usage();
+ if(thechar == '8') {
+ p = getgo386();
+ if(strcmp(p, "387") == 0)
+ use_sse = 0;
+ else if(strcmp(p, "sse2") == 0)
+ use_sse = 1;
+ else
+ sysfatal("unsupported setting GO386=%s", p);
+ }
pathname = mal(1000);
if(getwd(pathname, 999) == 0)