Skip to content
Merged
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
6 changes: 6 additions & 0 deletions Sources/_NumericsShims/include/_NumericsShims.h
Original file line number Diff line number Diff line change
Expand Up @@ -383,6 +383,10 @@ HEADER_SHIM long double libm_lgammal(long double x, int *signp) {
#endif

// MARK: - shims to import C complex operations for timing purposes
#if !defined _WIN32
// Clang doesn't have support for complex arithmetic on Windows, so
// it doesn't make sense to benchmark against it (and these will
// fail to link if used there).

typedef struct { double real; double imag; } CComplex;

Expand All @@ -399,3 +403,5 @@ HEADER_SHIM CComplex libm_cmul(CComplex z, CComplex w) {
double _Complex c = a*b;
return (CComplex){ __real__ c, __imag__ c };
}

#endif
180 changes: 0 additions & 180 deletions Tests/ComplexTests/ArithmeticBenchmarkTests.swift

This file was deleted.