stage2 ai重构

This commit is contained in:
zzy committed 2026-10-26 12:51:32 +08:00
1 parent 4c0317fcb5
commit 2c531f23de
26 files changed
+1251 -1578

No files matched your search

+3 -3
View File
@@ -1,7 +1,7 @@
// Expect retcode = 0
// 哈希工具:FNV-1a 字节哈希 + 整型混合;并给出可直接交给 map 的回调
// (map 的 hash/eq 回调接收指向键字节的指针,这里按 usize / ByteView 解释)。
// 哈希工具:FNV-1a 字节哈希 + 整型混合;并提供 Map 按 hash_kind 分派的辅助。
// 键指针按 usize / ByteView 解释。
// 仅提供确定性哈希与等值,不承诺密码学性质。
type .{ .ByteView } = @import("byte_view.spl");
@@ -82,7 +82,7 @@ fn test_fnv_vectors() {
@assert(hash_usize_value(7) != hash_usize_value(8), "int distinct");
}
// map 回调(hash_usize/eq_usize/hash_view/eq_view)由 map.spl 在自己的测试里验证。
// Map 的哈希/相等分派(hash_usize/eq_usize/hash_view/eq_view)由 map.spl 的测试覆盖。
fn main() {
test_fnv_vectors();