diff options
| author | Amlal <amlal@nekernel.org> | 2025-05-04 09:15:24 +0200 |
|---|---|---|
| committer | Amlal <amlal@nekernel.org> | 2025-05-04 09:15:24 +0200 |
| commit | 8c6138652733b4beda082ca2393170c14d5feb06 (patch) | |
| tree | 2bae53ec994d83eb85105cc34113775946fd6652 /dev/kernel/src | |
| parent | eff61e7f70b340190b0d8734dc768563db12379d (diff) | |
feat(kernel/filesystem): update HeFS's FNV algorithm to 64-bit.
Signed-off-by: Amlal <amlal@nekernel.org>
Diffstat (limited to 'dev/kernel/src')
| -rw-r--r-- | dev/kernel/src/FS/HeFS+FileSystemParser.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dev/kernel/src/FS/HeFS+FileSystemParser.cc b/dev/kernel/src/FS/HeFS+FileSystemParser.cc index b73de87e..1e2cf873 100644 --- a/dev/kernel/src/FS/HeFS+FileSystemParser.cc +++ b/dev/kernel/src/FS/HeFS+FileSystemParser.cc @@ -90,8 +90,8 @@ namespace Detail { /// @param path the directory path. /// @return The hashed path. STATIC UInt64 hefsi_hash_64(const Utf8Char* path) { - const UInt64 FNV_OFFSET_BASIS = 0x811C9DC5; - const UInt64 FNV_PRIME = 0x01000193; + const UInt64 FNV_OFFSET_BASIS = 0xcbf29ce484222325ULL; + const UInt64 FNV_PRIME = 0x100000001b3ULL; UInt64 hash = FNV_OFFSET_BASIS; |
