mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-25 00:55:11 +01:00
base: add bitvec256 type
This commit is contained in:
1 parent
310f5011b5
commit
e0636e3255
7 files changed
+62
No files matched your search
@@ -284,6 +284,8 @@ var Types = []string{
|
||||
"u32",
|
||||
"u64",
|
||||
|
||||
"bitvec256",
|
||||
|
||||
"empty_struct",
|
||||
"bool",
|
||||
"utility",
|
||||
@@ -374,6 +376,7 @@ var funcsOther = [...]string{
|
||||
"utility.empty_rect_ii_u32() rect_ii_u32",
|
||||
"utility.empty_rect_ie_u32() rect_ie_u32",
|
||||
"utility.empty_slice_u8() slice u8",
|
||||
"utility.make_bitvec256(e00: u64, e01: u64, e02: u64, e03: u64) bitvec256",
|
||||
"utility.make_pixel_format(repr: u32) pixel_format",
|
||||
"utility.make_range_ii_u32(min_incl: u32, max_incl: u32) range_ii_u32",
|
||||
"utility.make_range_ie_u32(min_incl: u32, max_excl: u32) range_ie_u32",
|
||||
|
||||
@@ -42,6 +42,8 @@ var (
|
||||
typeExprU32 = a.NewTypeExpr(0, t.IDBase, t.IDU32, nil, nil, nil)
|
||||
typeExprU64 = a.NewTypeExpr(0, t.IDBase, t.IDU64, nil, nil, nil)
|
||||
|
||||
typeExprBitvec256 = a.NewTypeExpr(0, t.IDBase, t.IDBitvec256, nil, nil, nil)
|
||||
|
||||
typeExprEmptyStruct = a.NewTypeExpr(0, t.IDBase, t.IDEmptyStruct, nil, nil, nil)
|
||||
typeExprBool = a.NewTypeExpr(0, t.IDBase, t.IDBool, nil, nil, nil)
|
||||
typeExprUtility = a.NewTypeExpr(0, t.IDBase, t.IDUtility, nil, nil, nil)
|
||||
@@ -111,6 +113,8 @@ var builtInTypeMap = typeMap{
|
||||
t.IDU32: typeExprU32,
|
||||
t.IDU64: typeExprU64,
|
||||
|
||||
t.IDBitvec256: typeExprBitvec256,
|
||||
|
||||
t.IDEmptyStruct: typeExprEmptyStruct,
|
||||
t.IDBool: typeExprBool,
|
||||
t.IDUtility: typeExprUtility,
|
||||
|
||||
@@ -467,6 +467,9 @@ const (
|
||||
IDU32 = ID(0x116)
|
||||
IDU64 = ID(0x117)
|
||||
|
||||
IDBitvec128 = ID(0x118)
|
||||
IDBitvec256 = ID(0x119)
|
||||
|
||||
IDBase = ID(0x120)
|
||||
IDBool = ID(0x121)
|
||||
IDEmptyIOReader = ID(0x122)
|
||||
@@ -910,6 +913,9 @@ var builtInsByID = [nBuiltInIDs]string{
|
||||
IDU32: "u32",
|
||||
IDU64: "u64",
|
||||
|
||||
IDBitvec128: "bitvec128",
|
||||
IDBitvec256: "bitvec256",
|
||||
|
||||
IDBase: "base",
|
||||
IDBool: "bool",
|
||||
IDEmptyIOReader: "empty_io_reader",
|
||||
|
||||
Reference in new issue
Block a user