Check 8-byte-chunk copy distance precondition

This commit is contained in:
Nigel Tao committed 2021-03-11 22:54:06 +11:00
1 parent 5767f030a3
commit 385c34930a
7 files changed
+22 -22

No files matched your search

+2 -2
View File
@@ -537,14 +537,14 @@ var funcsOther = [...]string{
// TODO: this should have explicit pre-conditions:
// - up_to <= this.length()
// - distance > 0
// - 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!(up_to: u32, distance: u32) u32",
// TODO: this should have explicit pre-conditions:
// - (up_to + 8) <= this.length()
// - distance > 0
// - distance >= 8
// - distance <= this.history_length()
// For now, that's all implicitly checked (i.e. hard coded).
"io_writer.limited_copy_u32_from_history_8_byte_chunks_fast!(up_to: u32, distance: u32) u32",