Differences From Artifact [670a4be42e]:
- File mods/vtlib/marshal.lua — part of check-in [a810a756ce] at 2024-05-01 13:46:45 on branch trunk — cleanups, fixes, begin canister rework, begin ecology (user: lexi, size: 11097) [annotate] [blame] [check-ins using]
To Artifact [500f446f0a]:
- File mods/vtlib/marshal.lua — part of check-in [0e67c606c9] at 2024-05-01 16:25:38 on branch trunk — fixes, sounds; add license info (user: lexi, size: 11103) [annotate] [blame] [check-ins using]
254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 |
return {
sz = c.sz;
name = string.format("%sfixed<%s,%s,%s>",
sign and 's' or 'u',
bits, base, prec
);
enc = function(v)
return c.enc(v)
end;
dec = function(s)
local v = c.dec(s)
return v / mul
end;
}
end
|
| |
254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 |
return {
sz = c.sz;
name = string.format("%sfixed<%s,%s,%s>",
sign and 's' or 'u',
bits, base, prec
);
enc = function(v)
return c.enc(v * mul)
end;
dec = function(s)
local v = c.dec(s)
return v / mul
end;
}
end
|