Skip to content

Prefix shared SIMD include scaffolding with Hlp to avoid CryptoLib collisions#96

Merged
Xor-el merged 1 commit into
masterfrom
fix/hlp-prefix-shared-simd-includes
Jul 8, 2026
Merged

Prefix shared SIMD include scaffolding with Hlp to avoid CryptoLib collisions#96
Xor-el merged 1 commit into
masterfrom
fix/hlp-prefix-shared-simd-includes

Conversation

@Xor-el

@Xor-el Xor-el commented Jul 8, 2026

Copy link
Copy Markdown
Owner

The SIMD prologue/save-restore scaffolding (Include\Simd\Common) and the CPUID/XGETBV probes (Include\Simd\CpuFeatures) are copied into both this library and CryptoLib4Pascal and have diverged (they branch on HASHLIB_* vs CRYPTOLIB_* defines). Exposed under identical names on both packages' include search path, they trip Lazarus "Duplicate file" warnings and let FPC's include resolution bind against the wrong library's copy.

Rename the 24 shared files (Common x86_64/i386/aarch64 + CpuFeatures) with an Hlp prefix so no basename is shared with CryptoLib, updating the {$I} references and their comment mentions. The CpuIdQuery/XGetBvQuery procedures keep their names; only the include files are renamed. Paths stay .pas-relative, so the -Fi depth anchor still resolves and Delphi is unaffected.

…llisions

The SIMD prologue/save-restore scaffolding (Include\Simd\Common) and the
CPUID/XGETBV probes (Include\Simd\CpuFeatures) are copied into both this
library and CryptoLib4Pascal and have diverged (they branch on HASHLIB_*
vs CRYPTOLIB_* defines). Exposed under identical names on both packages'
include search path, they trip Lazarus "Duplicate file" warnings and let
FPC's include resolution bind against the wrong library's copy.

Rename the 24 shared files (Common x86_64/i386/aarch64 + CpuFeatures) with
an Hlp prefix so no basename is shared with CryptoLib, updating the {$I}
references and their comment mentions. The CpuIdQuery/XGetBvQuery
procedures keep their names; only the include files are renamed. Paths
stay .pas-relative, so the -Fi depth anchor still resolves and Delphi is
unaffected.
@Xor-el Xor-el merged commit e4a73f7 into master Jul 8, 2026
24 checks passed
@Xor-el Xor-el deleted the fix/hlp-prefix-shared-simd-includes branch July 8, 2026 17:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant