mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 18:07:34 +00:00
AK: Rename the common integer typedefs to make it obvious what they are.
These types can be picked up by including <AK/Types.h>: * u8, u16, u32, u64 (unsigned) * i8, i16, i32, i64 (signed)
This commit is contained in:
parent
c4c4bbc5ba
commit
27f699ef0c
208 changed files with 1603 additions and 1621 deletions
|
@ -66,11 +66,11 @@ private:
|
|||
char m_inline_buffer[0];
|
||||
};
|
||||
|
||||
inline constexpr dword string_hash(const char* characters, int length)
|
||||
inline constexpr u32 string_hash(const char* characters, int length)
|
||||
{
|
||||
dword hash = 0;
|
||||
u32 hash = 0;
|
||||
for (int i = 0; i < length; ++i) {
|
||||
hash += (dword)characters[i];
|
||||
hash += (u32)characters[i];
|
||||
hash += (hash << 10);
|
||||
hash ^= (hash >> 6);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue