Merge remote-tracking branch 'openconsole/inbox'

This commit is contained in:
Dustin Howett
2022-10-20 15:08:04 -05:00
2 changed files with 18 additions and 6 deletions

View File

@@ -17,8 +17,8 @@
#define TIL_HASH_X64
#elif defined(_M_ARM64) || defined(_M_ARM64EC)
#define TIL_HASH_ARM64
#elif defined(_M_IX86)
#define TIL_HASH_X86
#elif defined(_M_IX86) || defined(_M_ARM)
#define TIL_HASH_32BIT
#else
#error "Unsupported architecture for til::hash"
#endif
@@ -59,7 +59,7 @@ namespace til
}
private:
#if defined(TIL_HASH_X86)
#if defined(TIL_HASH_32BIT)
static uint32_t _wyr24(const uint8_t* p, uint32_t k) noexcept
{
@@ -109,7 +109,7 @@ namespace til
return seed ^ see1;
}
#else // defined(TIL_HASH_X86)
#else // defined(TIL_HASH_32BIT)
static uint64_t _wyr3(const uint8_t* p, size_t k) noexcept
{
@@ -201,7 +201,7 @@ namespace til
return _wymix(s1 ^ len, _wymix(a ^ s1, b ^ seed));
}
#endif // defined(TIL_HASH_X86)
#endif // defined(TIL_HASH_32BIT)
size_t _hash = 0;
};

View File

@@ -16,17 +16,29 @@ SOURCES = \
$(SOURCES) \
BaseTests.cpp \
BitmapTests.cpp \
CoalesceTests.cpp \
ColorTests.cpp \
EnumSetTests.cpp \
HashTests.cpp \
MathTests.cpp \
mutex.cpp \
OperatorTests.cpp \
PointTests.cpp \
MathTests.cpp \
RectangleTests.cpp \
ReplaceTests.cpp \
RunLengthEncodingTests.cpp \
SizeTests.cpp \
SmallVectorTests.cpp \
SomeTests.cpp \
StaticMapTests.cpp \
string.cpp \
u8u16convertTests.cpp \
DefaultResource.rc \
# These tests are disabled because of a missing symbol.
# SPSCTests.cpp \
# throttled_func.cpp \
INCLUDES = \
.. \
$(INCLUDES) \