generated from treeform/nimtemplate
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
44 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,6 +27,7 @@ F16C | ✅ | |
MOVBE | ✅ | ||
MOVBE | ✅ | ||
POPCNT | ✅ | ||
FMA | ✅ | ||
|
||
### Compiler flags | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
import avx | ||
|
||
export avx | ||
|
||
{.push header: "immintrin.h".} | ||
|
||
func mm_fmadd_pd*(a, b, c: M128d): M128d {.importc: "_mm_fmadd_pd".} | ||
func mm256_fmadd_pd*(a, b, c: M256d): M256d {.importc: "_mm256_fmadd_pd".} | ||
func mm_fmadd_ps*(a, b, c: M128): M128 {.importc: "_mm_fmadd_ps".} | ||
func mm256_fmadd_ps*(a, b, c: M256): M256 {.importc: "_mm256_fmadd_ps".} | ||
func mm_fmadd_sd*(a, b, c: M128d): M128d {.importc: "_mm_fmadd_sd".} | ||
func mm_fmadd_ss*(a, b, c: M128): M128 {.importc: "_mm_fmadd_ss".} | ||
func mm_fmaddsub_pd*(a, b, c: M128d): M128d {.importc: "_mm_fmaddsub_pd".} | ||
func mm256_fmaddsub_pd*(a, b, c: M256d): M256d {.importc: "_mm256_fmaddsub_pd".} | ||
func mm_fmaddsub_ps*(a, b, c: M128): M128 {.importc: "_mm_fmaddsub_ps".} | ||
func mm256_fmaddsub_ps*(a, b, c: M256): M256 {.importc: "_mm256_fmaddsub_ps".} | ||
func mm_fmsub_pd*(a, b, c: M128d): M128d {.importc: "_mm_fmsub_pd".} | ||
func mm256_fmsub_pd*(a, b, c: M256d): M256d {.importc: "_mm256_fmsub_pd".} | ||
func mm_fmsub_ps*(a, b, c: M128): M128 {.importc: "_mm_fmsub_ps".} | ||
func mm256_fmsub_ps*(a, b, c: M256): M256 {.importc: "_mm256_fmsub_ps".} | ||
func mm_fmsub_sd*(a, b, c: M128d): M128d {.importc: "_mm_fmsub_sd".} | ||
func mm_fmsub_ss*(a, b, c: M128): M128 {.importc: "_mm_fmsub_ss".} | ||
func mm_fmsubadd_pd*(a, b, c: M128d): M128d {.importc: "_mm_fmsubadd_pd".} | ||
func mm256_fmsubadd_pd*(a, b, c: M256d): M256d {.importc: "_mm256_fmsubadd_pd".} | ||
func mm_fmsubadd_ps*(a, b, c: M128): M128 {.importc: "_mm_fmsubadd_ps".} | ||
func mm256_fmsubadd_ps*(a, b, c: M256): M256 {.importc: "_mm256_fmsubadd_ps".} | ||
func mm_fnmadd_pd*(a, b, c: M128d): M128d {.importc: "_mm_fnmadd_pd".} | ||
func mm256_fnmadd_pd*(a, b, c: M256d): M256d {.importc: "_mm256_fnmadd_pd".} | ||
func mm_fnmadd_ps*(a, b, c: M128): M128 {.importc: "_mm_fnmadd_ps".} | ||
func mm256_fnmadd_ps*(a, b, c: M256): M256 {.importc: "_mm256_fnmadd_ps".} | ||
func mm_fnmadd_sd*(a, b, c: M128d): M128d {.importc: "_mm_fnmadd_sd".} | ||
func mm_fnmadd_ss*(a, b, c: M128): M128 {.importc: "_mm_fnmadd_ss".} | ||
func mm_fnmsub_pd*(a, b, c: M128d): M128d {.importc: "_mm_fnmsub_pd".} | ||
func mm256_fnmsub_pd*(a, b, c: M256d): M256d {.importc: "_mm256_fnmsub_pd".} | ||
func mm_fnmsub_ps*(a, b, c: M128): M128 {.importc: "_mm_fnmsub_ps".} | ||
func mm256_fnmsub_ps*(a, b, c: M256): M256 {.importc: "_mm256_fnmsub_ps".} | ||
func mm_fnmsub_sd*(a, b, c: M128d): M128d {.importc: "_mm_fnmsub_sd".} | ||
func mm_fnmsub_ss*(a, b, c: M128): M128 {.importc: "_mm_fnmsub_ss".} | ||
|
||
{.pop.} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters