base: add io_writer.limited_copy_etc_return_cusp

This commit is contained in:
Nigel Tao committed 2023-11-19 10:32:59 +11:00
1 parent 7fb80a047b
commit e517ca4bee
6 files changed
+88 -5

No files matched your search

+7
View File
@@ -579,6 +579,13 @@ var funcsOther = [...]string{
// For now, that's all implicitly checked (i.e. hard coded).
"io_writer.limited_copy_u32_from_history_fast!(up_to: u32, distance: u32) u32",
// TODO: this should have explicit pre-conditions:
// - up_to <= this.length()
// - distance >= 1
// - distance <= this.history_length()
// For now, that's all implicitly checked (i.e. hard coded).
"io_writer.limited_copy_u32_from_history_fast_return_cusp!(up_to: u32, distance: u32) u32[..= 0xFFFF]",
// TODO: this should have explicit pre-conditions:
// - (up_to + 8) <= this.length()
// - distance >= 8