You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
f:=s.NewFunction("not_index_byte_asm", "Find the index of the first byte that is not b", []FunctionParam{{"data", ByteSlice}, {"b", types.Byte}}, []FunctionParam{{"ans", types.Int}})
1543
+
ifs.ISA.HasSIMD {
1544
+
s.not_index_byte_body(f)
1545
+
}
1546
+
f=s.NewFunction("not_index_byte_string_asm", "Find the index of the first byte that is not b", []FunctionParam{{"data", types.String}, {"b", types.Byte}}, []FunctionParam{{"ans", types.Int}})
f:=s.NewFunction("not_index_byte2_asm", "Find the index of the first byte that is neither b1 nor b2", []FunctionParam{{"data", ByteSlice}, {"b1", types.Byte}, {"b2", types.Byte}}, []FunctionParam{{"ans", types.Int}})
1569
+
ifs.ISA.HasSIMD {
1570
+
s.not_index_byte2_body(f)
1571
+
}
1572
+
f=s.NewFunction("not_index_byte2_string_asm", "Find the index of the first byte that is neither b1 nor b2", []FunctionParam{{"data", types.String}, {"b1", types.Byte}, {"b2", types.Byte}}, []FunctionParam{{"ans", types.Int}})
1573
+
ifs.ISA.HasSIMD {
1574
+
s.not_index_byte2_body(f)
1575
+
}
1576
+
1577
+
}
1578
+
1507
1579
func (s*State) Generate() {
1508
1580
s.test_load()
1509
1581
s.test_set1_epi8()
@@ -1516,6 +1588,8 @@ func (s *State) Generate() {
0 commit comments