Add a (table T).row method

This commit is contained in:
Nigel Tao committed 2018-05-26 11:32:54 +10:00
1 parent 00c3f7ef1e
commit f43afd8236
6 files changed
+38 -8

No files matched your search

+1
View File
@@ -200,4 +200,5 @@ var TableFuncs = []string{
"T2.width()(ret u64)",
"T2.linearize()(ret T1)",
"T2.row(y u32)(ret T1)",
}
+5 -3
View File
@@ -491,9 +491,10 @@ const (
IDLength = ID(0x242)
IDLinearize = ID(0x243)
IDPrefix = ID(0x244)
IDStride = ID(0x245)
IDSuffix = ID(0x246)
IDWidth = ID(0x247)
IDRow = ID(0x245)
IDStride = ID(0x246)
IDSuffix = ID(0x247)
IDWidth = ID(0x248)
)
var builtInsByID = [nBuiltInIDs]string{
@@ -713,6 +714,7 @@ var builtInsByID = [nBuiltInIDs]string{
IDLength: "length",
IDLinearize: "linearize",
IDPrefix: "prefix",
IDRow: "row",
IDStride: "stride",
IDSuffix: "suffix",
IDWidth: "width",