67 Commits

Author SHA1 Message Date
Stenzek
b6118569c1 Common: Polyfill move_only_function wrapper for Linux/Mac
Using Folly's Function class.
2026-10-31 15:20:29 +10:00
Stenzek
f591ef20e2 Common: Fix heap overflow when shrinking DynamicHeapArray
Don't think this actually happens anywhere, but just in case.
2026-10-27 02:32:05 +10:00
Stenzek
0b5b8774cf Common: Add PackedOptionalArray 2026-10-25 21:59:17 +10:00
Stenzek
507e249522 Common: Add PackedOptional class
Move the valid bit outside of the value, so we don't waste struct
padding bytes.
2026-10-24 18:56:05 +10:00
Stenzek
d177f7adb6 Common: Fix AVX2 vector helpers
Replace AVX-512-only intrinsics and fix wrong-width ge16/ge32/u8to64.
2026-10-15 23:50:32 +10:00
Stenzek
de2dd2b68c StringUtil: Fix possible integer overflow in EncodeAndAppendUTF8() 2026-10-13 15:21:21 +10:00
Stenzek
73b5a24165 Threading: Add SharedLockGuard helper
And remove UpgradeLock, not doing it this way.
2026-09-25 21:35:44 +10:00
Stenzek
8148a81968 Threading: Add SharedMutex lightweight wrapper 2026-09-23 21:42:02 +10:00
Stenzek
473025995f Tests: Fix directory not cleaned up 2026-09-23 17:30:40 +10:00
Stenzek
831305b5df Threading: Detect recursive locks in debug builds 2026-09-22 01:16:07 +10:00
Stenzek
60a798cdce StringUtil: Return first match in BytePatternSearch()
Also validate byte pattern syntax and improve unit test coverage.
2026-09-21 15:00:19 +10:00
Stenzek
bce5e3ddce StringUtil: Fix buffer overflow in BytePatternSearch()
Also fixes searching at the final valid offset and underflow when the
pattern length exceeds the input length.
2026-09-21 14:25:49 +10:00
Stenzek
7137ce2be7 Threading: Add lightweight Mutex/ConditionVariable wrappers 2026-09-18 15:17:56 +10:00
Stenzek
824a1072e2 LRUCache: Add custom deleter override 2026-08-20 19:01:07 +10:00
Stenzek
2307ad9b0f CMake: Drop Win32/MSVC specific paths. Use MSBuild.
This was never supported, and hasn't been updated in a while anyway.
2026-05-23 11:57:13 +10:00
Stenzek
ee1fb3529b FileSystem: Add OpenTemporaryCFile() 2026-04-18 12:08:43 +10:00
Stenzek
79576be41a StringUtil: Add AppendUTF8ToWideString() 2026-04-18 12:08:43 +10:00
Stenzek
d731a65673 Common: Add OptionalWithStatus 2026-04-18 12:08:43 +10:00
Yang Liu
c41cd7937a GPU: Fix blend32() template for non-SIMD path
The mask-based blend32() was incorrectly selecting components only from the input vector using mask bits as indices, rather than blending between this and the input vector based on mask bits. Fix the logic to properly select each component from either this or v based on the corresponding mask bit.

Add tests covering this.

Co-Authored-By: phorcys <phorcys@126.com>
2026-03-10 19:22:56 +10:00
Stenzek
bc3b6fcb6f Common: Add missing functions for SSE2 vector implementation 2026-03-07 15:29:12 +10:00
Stenzek
1f9122cca9 Common: Add BumpUniqueStringPool 2026-02-28 19:07:35 +10:00
Stenzek
cdf6d5bd29 CI: Use prebuilt dependencies
Decouple from the repository. Less CI time, and faster building of older
commits.
2026-02-25 13:07:02 +10:00
Stenzek
1b2bcfd4ce Common: Move BCD helpers into separate file
Saves a few unnecessary includes.
2026-02-12 22:53:56 +10:00
Stenzek
b20c2b281f Common: Add additional unit tests
And fix several logical errors.
2026-02-01 02:41:32 +10:00
Stenzek
e50909234b Common: Fix string tests building 2026-01-30 21:56:38 +10:00
Stenzek
d4c4ec566a CMake: Prefer private over public include dirs 2025-12-31 17:33:04 +10:00
Stenzek
351e787681 Common: Fix a bunch of errors in ARM vector wrapper
ARM64 passes now at least.
2025-12-14 19:20:20 +10:00
Stenzek
c9177bc398 Common: Add vector rectangle helper functions 2025-12-14 01:17:20 +10:00
Stenzek
754591f279 StringUtil: Add GetUTF8CharacterCount() 2025-11-15 14:20:36 +10:00
Stenzek
ac4634c289 Add StringPool and BumpStringPool classes 2025-10-14 00:06:56 +10:00
Stenzek
d4c6905cfa Tests: Linux build fix 2025-09-26 20:02:08 +10:00
Stenzek
1cdde2cab6 Path: Add IsFileNameValid() 2025-09-12 23:29:46 +10:00
Stenzek
faa75991a0 Tests: Add more unit tests for common classes 2025-08-31 20:36:42 +10:00
Stenzek
0a271cd7d5 StringUtil: Fix CompareNoCase for prefixes 2025-08-31 12:05:45 +10:00
Stenzek
0a267ce158 Common: Add more tests 2025-07-05 14:12:29 +10:00
Stenzek
4b20fc6922 Path: Fix several errors in URLEncode/Decode and add tests 2025-01-20 21:44:44 +10:00
Stenzek
e137d3b5c7 Common: Fix rectangle rempty() on ARM32 2024-12-10 16:49:45 +10:00
Stenzek
b39f1558ec StringUtil: Add Base64 decode/encode functions 2024-11-29 17:05:02 +10:00
Stenzek
bbe6612b25 Common: Add SHA256Digest 2024-11-29 15:20:33 +10:00
Stenzek
5c03e1d940 Misc: Fix alignment errors on ARM32 2024-11-23 18:52:45 +10:00
Stenzek
7f4e5d55db Misc: Update copyright headers 2024-09-01 22:08:31 +10:00
Stenzek
cdba1fe25a Common: Rename iNN -> sNN 2024-08-31 14:38:20 +10:00
Stenzek
2e2451998c Misc: Fix ARM32 build (again) 2024-08-14 21:39:29 +10:00
Stenzek
460acce561 MDEC: Ensure alignment of inputs 2024-08-14 21:39:04 +10:00
Stenzek
18b0b11094 CommonTests: Add GSVector MDEC YUVToRGB test 2024-07-10 15:18:42 +10:00
Stenzek
e0509ebd9f Common: Remove Rectangle class 2024-07-03 15:54:32 +10:00
Stenzek
979b7bd36f FileSystem: Use PathCchCanonicalizeEx() for GetWin32Path() 2024-03-30 00:46:38 +10:00
Stenzek
ab445ec69d FileSystem: Handle paths longer than MAX_PATH on Windows 2024-03-29 16:23:03 +10:00
Stenzek
43eb6e20fa System: Improve screenshot naming 2024-03-16 14:14:15 +10:00
Stenzek
9211d9f2e3 Path: Add CreateFileURL() 2024-03-16 14:10:35 +10:00