base: add hasher_bitvec256 type

This commit is contained in:
Nigel Tao committed 2023-10-12 21:35:47 +11:00
1 parent e0636e3255
commit 71dca5adce
5 files changed
+278 -7

No files matched your search

+3
View File
@@ -348,6 +348,9 @@ func writeOutParamZeroValue(b *buffer, tm *t.Map, typ *a.TypeExpr) error {
}
} else if (typ.Decorator() == 0) && (typ.QID()[0] == t.IDBase) {
switch typ.QID()[1] {
case t.IDBitvec256:
b.writes("wuffs_base__utility__make_bitvec256(0u, 0u, 0u, 0u)")
return nil
case t.IDRangeIEU32:
b.writes("wuffs_base__utility__empty_range_ie_u32()")
return nil