summaryrefslogtreecommitdiff
path: root/mbld
diff options
context:
space:
mode:
authorS. Gilles <sgilles@math.umd.edu>2018-03-29 00:37:58 -0400
committerS. Gilles <sgilles@math.umd.edu>2018-03-29 00:37:58 -0400
commit55f8d064387dcf0229b6020d5a8e57e660d358c7 (patch)
tree06120118c3eb9da3ae7585c6865c795d24bd8b69 /mbld
parent959b473779673322fbef51385a1cf730e73c7aac (diff)
downloadmc-55f8d064387dcf0229b6020d5a8e57e660d358c7.tar.gz
Implement sqrt in asm.
Diffstat (limited to 'mbld')
-rw-r--r--mbld/opts.myr1
-rw-r--r--mbld/syssel.myr3
2 files changed, 4 insertions, 0 deletions
diff --git a/mbld/opts.myr b/mbld/opts.myr
index 8956338..5cdc93a 100644
--- a/mbld/opts.myr
+++ b/mbld/opts.myr
@@ -34,6 +34,7 @@ pkg bld =
const parseversion : (v : byte[:] -> (int, int, int))
/* not exactly portable, but good enough for now */
+ const CpuidSSE2 : uint64= 0x400000000000000
const CpuidSSE4 : uint64= 0x180000
/*
diff --git a/mbld/syssel.myr b/mbld/syssel.myr
index f0223ca..636792a 100644
--- a/mbld/syssel.myr
+++ b/mbld/syssel.myr
@@ -162,6 +162,9 @@ const addsysattrs = {b, tags
match opt_arch
| "x64":
tag(b, "x64")
+ if opt_cpufeatures & CpuidSSE2 == CpuidSSE2
+ tag(b, "sse2")
+ ;;
if opt_cpufeatures & CpuidSSE4 == CpuidSSE4
tag(b, "sse4")
;;