Skip to content

Commit af6c619

Browse files
committed
guard x86-64 SIMD force defines behind HASHLIB_X86_64
1 parent 34a7345 commit af6c619

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

HashLib/src/Include/HashLib.inc

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,11 @@
6262

6363
{============================== SIMD Settings =================================}
6464

65-
// Uncomment ONE of the following to force a specific SIMD dispatch level:
65+
// Uncomment to force scalar dispatch (available on all platforms):
6666
// {$DEFINE HASHLIB_FORCE_SCALAR}
67+
68+
{$IFDEF HASHLIB_X86_64}
69+
// Uncomment ONE to force a specific x86-64 SIMD dispatch level:
6770
// {$DEFINE HASHLIB_FORCE_SSE2}
6871
// {$DEFINE HASHLIB_FORCE_SSSE3}
6972

@@ -72,5 +75,6 @@
7275
OR (DEFINED(HASHLIB_FORCE_SSE2) AND DEFINED(HASHLIB_FORCE_SSSE3))}
7376
{$MESSAGE ERROR 'Only one HASHLIB_FORCE_* define may be enabled at a time.'}
7477
{$IFEND}
78+
{$ENDIF}
7579

7680
(* &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& *)

0 commit comments

Comments
 (0)