https://github.com/gin66/simdlinux
missing simd package for swift on linux (only needed functions and not optimized for speed)
https://github.com/gin66/simdlinux
development library linux package simd spm swift xcode
Last synced: 25 days ago
JSON representation
missing simd package for swift on linux (only needed functions and not optimized for speed)
- Host: GitHub
- URL: https://github.com/gin66/simdlinux
- Owner: gin66
- License: mit
- Created: 2021-10-31T10:24:16.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-08-27T17:00:09.000Z (almost 4 years ago)
- Last Synced: 2025-10-08T09:53:09.432Z (8 months ago)
- Topics: development, library, linux, package, simd, spm, swift, xcode
- Language: Swift
- Homepage:
- Size: 54.7 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# simdLinux
This is a non-simd(!) implementation of the simd-library for reusing code on Linux.
In your swift source just replace:
```swift
import simd
```
with
```swift
#if os(macOS) || os(iOS) || os(watchOS) || os(tvOS)
import simd
#else
import simdLinux
#endif
```
The implementation is not 100% complete, but is a pretty good start.
simd_float/double/int/uint are implemented for 1/2/3/4/8/16.
simd_quaternion is present.
matrix-support is very limited.