mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-23 16:52:18 +01:00
Add slice base.u8 peek/poke methods
wuffs_png_decode_filter_1_sub/clang9 4.59GB/s ± 0% 4.59GB/s ± 0% ~ (p=0.151 n=5+5) wuffs_png_decode_filter_1_sub/gcc10 1.85GB/s ± 0% 4.11GB/s ± 0% +122.24% (p=0.016 n=5+4)
This commit is contained in:
1 parent
602b711ba6
commit
26a7280900
13 files changed
+204
-48
No files matched your search
@@ -154,6 +154,11 @@ func (c *Checker) resolveFunc(typ *a.TypeExpr) (*a.Func, error) {
|
||||
if f := c.builtInSliceFuncs[qqid]; f != nil {
|
||||
return f, nil
|
||||
}
|
||||
if lTyp.Eq(typeExprSliceU8) {
|
||||
if f := c.builtInSliceU8Funcs[qqid]; f != nil {
|
||||
return f, nil
|
||||
}
|
||||
}
|
||||
|
||||
} else if lTyp.IsTableType() {
|
||||
qqid[0] = t.IDBase
|
||||
|
||||
Reference in new issue
Block a user