-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
vec4 and mat4 arm implementations ...
... however, 'implementation' in this case just means, to fallback to the pure Go implementation, because go assembly does not yet support arm neon instructions (which are the equivalent of SSE). See golang/go#7300
- Loading branch information
Showing
7 changed files
with
42 additions
and
0 deletions.
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#include "textflag.h" | ||
|
||
// func invertSIMD(lhs *Mat4) | ||
TEXT ·invertSIMD(SB),NOSPLIT,$0 | ||
B ·invert(SB) | ||
|
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,6 @@ | ||
#include "textflag.h" | ||
|
||
// func mulSIMD(out, lhs, rhs *Mat4) | ||
TEXT ·mulSIMD(SB),NOSPLIT,$0 | ||
B ·mul(SB) | ||
|
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,6 @@ | ||
#include "textflag.h" | ||
|
||
// func addSIMD(lhs, rhs *Vec4) | ||
TEXT ·addSIMD(SB),NOSPLIT,$0 | ||
B ·add(SB) | ||
|
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,6 @@ | ||
#include "textflag.h" | ||
|
||
// func divSIMD(lhs *Vec4, rhs float32) | ||
TEXT ·divSIMD(SB),NOSPLIT,$0 | ||
B ·div(SB) | ||
|
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,6 @@ | ||
#include "textflag.h" | ||
|
||
// func lenSIMD(lhs *Vec4) float32 | ||
TEXT ·lenSIMD(SB),NOSPLIT,$0 | ||
B ·len(SB) | ||
|
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,6 @@ | ||
#include "textflag.h" | ||
|
||
// func mulSIMD(lhs *Vec4, rhs float32) | ||
TEXT ·mulSIMD(SB),NOSPLIT,$0 | ||
B ·mul(SB) | ||
|
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,6 @@ | ||
#include "textflag.h" | ||
|
||
// func subSIMD(lhs, rhs *Vec4) | ||
TEXT ·subSIMD(SB),NOSPLIT,$0 | ||
B ·sub(SB) | ||
|