Commit Graph

16869 Commits

Author SHA1 Message Date
dmex 5c3c23a4d5 Speed up printable ASCII string scanning
Add a SIMD-aware `PhpPrintableAsciiBlock` helper (AVX2 and 128-bit intrinsics) to quickly recognize full printable ASCII chunks, including TAB/LF/CR. Wire it into both UTF-8 and generic string search loops to skip per-byte decoding/classification when safe, while preserving scalar handling at boundaries and transitions.
2026-09-25 05:32:40 +10:00
dmex 7dc067277c Add crypto provider discovery API
Expose provider selection and capability queries in phcrypt, including BCrypt ML-DSA detection, incremental hash entry points, and fixed ML-DSA size constants. The update also tightens SymCrypt wrappers with stricter parameter and buffer validation, safer constant-time padding handling, and broader API documentation for the expanded crypto surface.
2026-09-25 05:12:26 +10:00
dmex 5103ab3d04 Update phbasesup.h 2026-09-25 05:10:31 +10:00
dmex 344f72c6b3 Update phbasesup.h 2026-09-25 05:10:10 +10:00
dmex a774b38974 Update phbasesup.h 2026-09-25 05:09:57 +10:00
dmex fd5ff3dc8a Fix AVX-512 conversion paths
Correct the AVX-512 implementations in `phlib/basesup.c` by restoring the proper types, intrinsics, and comments for the float-to-ulong and ulong-to-float copy helpers. This fixes the two fast paths being accidentally swapped while keeping the scalar conversion semantics intact.
2026-09-25 04:45:26 +10:00
dmex 415353f50b Improve timing and bitmap helpers
Harden the low-level time/query helpers by using ordered shared-data reads, adding unbiased interrupt time support, and introducing a more precise QPC fast path for x64/ARM64. The update also raises queued work item priority, adds missing bitmap utility routines, and improves several hot memory/entropy paths with AVX-512 and histogram optimizations.
2026-09-25 04:42:32 +10:00
dmex 5aca48c5a9 Optimize base64 and string SIMD paths
Expand SIMD acceleration across phlib base64 and string utilities: unify encode shuffles through PH_INT128 wrappers, add AVX2/SSSE3 fast decode for base64, and introduce AVX-512/AVX2/SSSE3 tiers for string length/compare/search, hashing, hex encode/decode, and integer parsing hot paths. The changes preserve scalar fallbacks and exact behavior (including padding/whitespace and invalid-input handling) while reducing per-character loops. This also adds a PH_NATIVE_NAME_WILDCARDS switch with RTL fallback and tightens PhConvertUtf16ToAsciiEx replacement semantics (ANSI_NULL to drop non-ASCII).
2026-09-25 04:36:17 +10:00
dmex 8239781797 Fix WPP TMH_FILE and zsign dir detection
Move the WPP `TMH_FILE` define out of `ItemDefinitionGroup` into a target so per-file metadata expands correctly during kernel builds. Also fix `build_zsign.cmd` to detect directories via file attributes instead of `if exist path\.` so signing no longer misclassifies files whose paths normalize that check.
2026-09-25 02:35:54 +10:00
dmex 7ace518a62 Update subprocesstag.h 2026-09-24 21:10:12 +10:00
dmex b81fa07589 Update usermgr.h 2026-09-24 21:08:42 +10:00
dmex 2b4d0388f2 Fix SMBIOS parsing and typos
Correct SMBIOS constant names and clamp firmware-declared array counts and variable-length records to the formatted section before reading them. This avoids out-of-bounds parsing in SMBIOS tables for baseboard, memory controller, additional info, MCHI, and processor blocks, while also adding the portable PDB test manifest.
2026-09-24 21:01:06 +10:00
dmex 47200db12e Add ntfve header to phnt project items 2026-09-24 20:10:24 +10:00
dmex a528cafa7c Update ntpoapi.h 2026-09-24 19:55:08 +10:00
dmex c9fa7ccd36 Create ntfve.h 2026-09-24 19:46:59 +10:00
dmex d5c8793036 Update ntdbg.h 2026-09-24 19:45:34 +10:00
dmex 38c205ac4c Update ntldr.h 2026-09-24 19:37:15 +10:00
dmex ceddbdc937 Update ntpsapi.h 2026-09-24 19:36:39 +10:00
dmex fa26dce6b4 Update ntrtl.h 2026-09-24 19:36:25 +10:00
dmex 4972efa34d Update ntrtl.h 2026-09-24 19:36:10 +10:00
dmex 1cb880f594 Update ntrtl.h 2026-09-24 19:36:01 +10:00
dmex 257d447acc Update ntrtl.h 2026-09-24 19:35:40 +10:00
dmex 568e71791f Update ntrtl.h 2026-09-24 19:35:19 +10:00
dmex 37adf8ed70 Update ntrtl.h 2026-09-24 19:34:51 +10:00
dmex 3fcdab8bdb Update ntrtl.h 2026-09-24 19:34:45 +10:00
dmex d32b468a40 Update ntrtl.h 2026-09-24 19:15:34 +10:00
dmex 73b2d58a6f Update ntrtl.h 2026-09-24 19:15:20 +10:00
dmex 374e64b6f9 Update ntrtl.h 2026-09-24 19:15:07 +10:00
dmex a479f7c7e7 Update ntrtl.h 2026-09-24 19:14:29 +10:00
dmex c96cc171db Update ntrtl.h 2026-09-24 19:14:06 +10:00
dmex 0ae58353f3 Update ntwow64.h 2026-09-24 18:58:24 +10:00
dmex b1309cad78 Update ntzwapi.h 2026-09-24 18:58:13 +10:00
dmex f917edcf3f Update ntxcapi.h 2026-09-24 18:58:02 +10:00
dmex 8093bdc2fb Update ntwmi.h 2026-09-24 18:57:44 +10:00
dmex 77b84392d6 Update ntsmss.h 2026-09-24 17:19:54 +10:00
dmex ed4703bbd6 Update ntseapi.h 2026-09-24 17:19:51 +10:00
dmex b7ed129cba Update ntsam.h 2026-09-24 17:18:12 +10:00
dmex c8dda9e2a7 Update ntregapi.h 2026-09-24 17:16:58 +10:00
dmex 56afa7192a Update ntpsapi.h 2026-09-24 17:16:33 +10:00
dmex f1f8608fcd Update ntpnpapi.h 2026-09-24 17:16:08 +10:00
dmex 2c561d5522 Update ntpfapi.h 2026-09-24 17:16:01 +10:00
dmex 5baaa055b4 Update ntobapi.h 2026-09-24 17:15:47 +10:00
dmex 82b28b828e Update ntmisc.h 2026-09-24 17:14:57 +10:00
dmex d26ea145bf Update ntlsa.h 2026-09-24 17:13:28 +10:00
dmex 930f1d72ec Update ntldr.h 2026-09-24 17:13:05 +10:00
dmex 87c9d850f9 Update ntkeapi.h 2026-09-24 17:12:18 +10:00
dmex f9742c9e20 Update ntioapi.h 2026-09-24 17:12:08 +10:00
dmex e9aad1a19e Update ntimage.h 2026-09-24 17:09:13 +10:00
dmex 13dc421a5b Update ntgdi.h 2026-09-24 17:08:55 +10:00
dmex 694716bef2 Update ntexapi.h 2026-09-24 17:08:44 +10:00