diff options
| author | Amlal El Mahrouss <amlal@nekernel.org> | 2025-09-04 10:15:05 +0200 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal@nekernel.org> | 2025-09-04 10:15:05 +0200 |
| commit | be11411ae7c2f6a2eda84abf56521d38a8b80b7e (patch) | |
| tree | e42a87f76dee6a123ba02f2014f563464af93ba9 /dev/kernel/src/FS/HeFS+FileSystemParser.cc | |
| parent | ce27bc968ba425eaa7f27091b704b6519b4b978b (diff) | |
feat&fix: Kernel improvements and fixes, introduced `special` trees.
fix: Protective measures against affinity `zero` processes.
wip: WIP introduce `CFDictionary` object inside CF.
fix: public tooling fixes.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'dev/kernel/src/FS/HeFS+FileSystemParser.cc')
| -rw-r--r-- | dev/kernel/src/FS/HeFS+FileSystemParser.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/dev/kernel/src/FS/HeFS+FileSystemParser.cc b/dev/kernel/src/FS/HeFS+FileSystemParser.cc index f1531b4c..86f929c0 100644 --- a/dev/kernel/src/FS/HeFS+FileSystemParser.cc +++ b/dev/kernel/src/FS/HeFS+FileSystemParser.cc @@ -88,7 +88,8 @@ namespace Detail { /// @brief Simple algorithm to hash directory entries for INDs. /// @param path the directory path. /// @return The hashed path. - STATIC UInt64 hefsi_hash_64(const Utf8Char* path) { + template <typename CharT = Utf8Char> + STATIC UInt64 hefsi_hash_64(const CharT* path) { if (!path || *path == 0) return 0; const UInt64 kFnvBaseOffset = 0xcbf29ce484222325ULL; @@ -97,7 +98,7 @@ namespace Detail { UInt64 hash = kFnvBaseOffset; while (*path) { - hash ^= (Utf8Char) (*path++); + hash ^= (CharT) (*path++); hash *= kFnvPrimeNumber; } |
