1 Commits

Author SHA1 Message Date
a0628a5725 Add CI 2024-10-30 18:53:31 -05:00
3 changed files with 6 additions and 4 deletions

View File

@@ -13,17 +13,16 @@ jobs:
strategy: strategy:
matrix: matrix:
os: [macos-latest, ubuntu-latest] os: [macos-latest, ubuntu-latest]
swift: ["5.9", "5.10, "6.0"] swift: ["5.9", "5.10", "6.0"]
steps: steps:
- name: Checkout code - name: Checkout code
uses: actions/checkout@v3 uses: actions/checkout@v3
- name: Set up Swift ${{ matrix.swift }} - name: Set up Swift ${{ matrix.swift }}
uses: fwal/setup-swift@v1 uses: NeedleInAJayStack/setup-swift@feat/swift-6
with: with:
swift-version: ${{ matrix.swift }} swift-version: ${{ matrix.swift }}
os: ${{ matrix.os }}
- name: Build and Run Tests - name: Build and Run Tests
run: | run: |

View File

@@ -20,6 +20,7 @@ let package = Package(
publicHeadersPath: "include", publicHeadersPath: "include",
cSettings: [ cSettings: [
.define("PFFFT_SCALVEC_ENABLED", to: "1"), .define("PFFFT_SCALVEC_ENABLED", to: "1"),
.define("PFFFT_ENABLE_NEON"),
.define("_USE_MATH_DEFINES"), .define("_USE_MATH_DEFINES"),
.define("NDEBUG"), .define("NDEBUG"),
] ]

View File

@@ -1,3 +1,5 @@
[![CI](https://github.com/jkl1337/SwiftPFFFT/actions/workflows/swift.yml/badge.svg)](https://github.com/jkl1337/SwiftPFFFT/actions/workflows/swift.yml)
# SwiftPFFFT # SwiftPFFFT
Swift package providing a PFFFT (Pretty Fast, Fast Fourier Transform) library with wrapper. Swift package providing a PFFFT (Pretty Fast, Fast Fourier Transform) library with wrapper.
@@ -21,7 +23,7 @@ performance with much simpler usage and a permissive 3 clause BSD license.
let fft = try FFT<Complex<Float>>(n: 16) let fft = try FFT<Complex<Float>>(n: 16)
let signal = fft.makeSignalBuffer() let signal = fft.makeSignalBuffer()
signal.mutateEach { (i, v) in signal.mapInPlace { (i, v) in
v = Complex(Float(i) + 1.0, Float(i) - 2.0) v = Complex(Float(i) + 1.0, Float(i) - 2.0)
} }