Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Source/Math.PurePascal.pas
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// (WebAssembly, Android, mobile Darwin platforms, unsupported architectures)

// Check same conditions as Math.pas - must be kept in sync!
{$IF ((WINDOWS AND (i386 OR x86_64 OR ARM64)) OR ((DARWIN AND NOT (IOS OR TVOS OR WATCHOS OR VISIONOS)) AND (i386 OR x86_64 OR ARM64)) OR ((LINUX AND NOT ANDROID) AND (i386 OR x86_64 OR ARM64)))}
{$IF (WINDOWS AND (i386 OR x86_64 OR ARM64)) OR (DARWIN AND NOT (IOS OR TVOS OR WATCHOS OR VISIONOS))}
{$DEFINE USE_LLVM_MATH_VECTORLIB}
{$ENDIF}

Expand Down
4 changes: 2 additions & 2 deletions Source/Math.pas
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ interface
// Two implementations available:
// 1. Math.LLVMVectorLib.pas - SLEEF-based (ENABLED for supported platforms)
// 2. Math.PurePascal.pas - Pure Pascal fallback
// Supported: Windows (), macOS (ARM), Linux (non-Android) on i386, x86_64, ARM64
// Supported: Windows (i386, x86_64, ARM64), macOS (x86_64, ARM64)
// You MUST keep this up to date with Elements' IslandOutput.pas, ShouldUseVectorMathLib()
{$IF ((WINDOWS AND (i386 OR x86_64 OR ARM64)) OR ((DARWIN AND NOT (IOS OR TVOS OR WATCHOS OR VISIONOS)) AND (i386 OR x86_64 OR ARM64)) OR ((LINUX AND NOT ANDROID) AND (i386 OR x86_64 OR ARM64)))}
{$IF (WINDOWS AND (i386 OR x86_64 OR ARM64)) OR (DARWIN AND NOT (IOS OR TVOS OR WATCHOS OR VISIONOS))}
{$DEFINE USE_LLVM_MATH_VECTORLIB} // Uses SLEEF library with LLVM vectorization
{$ENDIF}

Expand Down