Skip to content

Commit

Permalink
vec4 and mat4 arm implementations ...
Browse files Browse the repository at this point in the history
... 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
rkusa committed Jan 10, 2016
1 parent 4b73f24 commit d4e2a94
Show file tree
Hide file tree
Showing 7 changed files with 42 additions and 0 deletions.
6 changes: 6 additions & 0 deletions mat4/invert_arm.s
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)

6 changes: 6 additions & 0 deletions mat4/mul_arm.s
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)

6 changes: 6 additions & 0 deletions vec4/add_arm.s
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)

6 changes: 6 additions & 0 deletions vec4/div_arm.s
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)

6 changes: 6 additions & 0 deletions vec4/len_arm.s
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)

6 changes: 6 additions & 0 deletions vec4/mul_arm.s
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)

6 changes: 6 additions & 0 deletions vec4/sub_arm.s
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)

0 comments on commit d4e2a94

Please sign in to comment.