Let skip_u32_fast take non-constant arguments

This commit is contained in:
Nigel Tao committed 2020-07-15 14:10:43 +10:00
1 parent 4e193599ac
commit 31674f9bd2
5 files changed
+67 -24

No files matched your search

+2 -3
View File
@@ -396,9 +396,8 @@ var Funcs = []string{
"io_reader.skip_u32?(n: u32)",
// TODO: this should have explicit pre-conditions "actual <= worst_case"
// and "worst_case <= available()". As an implementation restriction, we
// also require that worst_case has a constant value. For now, that's all
// implicitly checked (i.e. hard coded).
// and "worst_case <= available()". For now, that's all implicitly checked
// (i.e. hard coded).
"io_reader.skip_u32_fast!(actual: u32, worst_case: u32)",
// ---- io_writer