mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-22 08:47:28 +01:00
Rename sse128/sse128i to x86_sse42/x86_m128i
This commit is contained in:
1 parent
a563bb7cf8
commit
5941e7e5cc
9 files changed
+85
-83
No files matched your search
+5
-5
@@ -25,7 +25,7 @@ import (
|
||||
type cpuArchBits uint32
|
||||
|
||||
const (
|
||||
cpuArchBitsSSE128 = cpuArchBits(0x00000001)
|
||||
cpuArchBitsX86SSE42 = cpuArchBits(0x00000001)
|
||||
)
|
||||
|
||||
func calcCPUArchBits(n *a.Func) (ret cpuArchBits) {
|
||||
@@ -35,8 +35,8 @@ func calcCPUArchBits(n *a.Func) (ret cpuArchBits) {
|
||||
continue
|
||||
}
|
||||
switch o.Condition().RHS().AsExpr().Ident() {
|
||||
case t.IDSSE128:
|
||||
ret |= cpuArchBitsSSE128
|
||||
case t.IDX86SSE42:
|
||||
ret |= cpuArchBitsX86SSE42
|
||||
}
|
||||
}
|
||||
return ret
|
||||
@@ -46,8 +46,8 @@ func (q *checker) tcheckCPUArchBits(cab cpuArchBits, typ *a.TypeExpr) error {
|
||||
if qid := typ.Innermost().QID(); qid[0] == t.IDBase {
|
||||
need := cpuArchBits(0)
|
||||
switch qid[1] {
|
||||
case t.IDSSE128I:
|
||||
need = cpuArchBitsSSE128
|
||||
case t.IDX86M128I:
|
||||
need = cpuArchBitsX86SSE42
|
||||
}
|
||||
if (cab & need) != need {
|
||||
return fmt.Errorf("check: missing cpu_arch for %q", typ.Innermost().Str(q.tm))
|
||||
|
||||
Reference in new issue
Block a user