Skip to content

Commit

Permalink
Coalesced stubs into one single file.
Browse files Browse the repository at this point in the history
Added stubs for 385, arm, arm64, wasm
Fixes #1
  • Loading branch information
chewxy committed Jul 7, 2019
1 parent 9a000fc commit 690198f
Show file tree
Hide file tree
Showing 8 changed files with 68 additions and 27 deletions.
7 changes: 0 additions & 7 deletions exp_stub.s

This file was deleted.

7 changes: 0 additions & 7 deletions log_stub.s

This file was deleted.

6 changes: 0 additions & 6 deletions remainder_stub.s

This file was deleted.

7 changes: 0 additions & 7 deletions sqrt_stub.s

This file was deleted.

17 changes: 17 additions & 0 deletions stubs_386.s
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#include "textflag.h"

// func Exp(x float32) float32
TEXT ·Exp(SB),NOSPLIT,$0
JMP ·exp(SB)


// func Log(x float64) float64
TEXT ·Log(SB),NOSPLIT,$0
JMP ·log(SB)

TEXT ·Remainder(SB),NOSPLIT,$0
JMP ·remainder(SB)

// func Sqrt(x float32) float32
TEXT ·Sqrt(SB),NOSPLIT,$0
JMP ·sqrt(SB)
17 changes: 17 additions & 0 deletions stubs_arm.s
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#include "textflag.h"

// func Exp(x float32) float32
TEXT ·Exp(SB),NOSPLIT,$0
B ·exp(SB)


// func Log(x float64) float64
TEXT ·Log(SB),NOSPLIT,$0
B ·log(SB)

TEXT ·Remainder(SB),NOSPLIT,$0
B ·remainder(SB)

// func Sqrt(x float32) float32
TEXT ·Sqrt(SB),NOSPLIT,$0
B ·sqrt(SB)
17 changes: 17 additions & 0 deletions stubs_arm64.s
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#include "textflag.h"

// func Exp(x float32) float32
TEXT ·Exp(SB),NOSPLIT,$0
B ·exp(SB)


// func Log(x float64) float64
TEXT ·Log(SB),NOSPLIT,$0
B ·log(SB)

TEXT ·Remainder(SB),NOSPLIT,$0
B ·remainder(SB)

// func Sqrt(x float32) float32
TEXT ·Sqrt(SB),NOSPLIT,$0
B ·sqrt(SB)
17 changes: 17 additions & 0 deletions stubs_wasm.s
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#include "textflag.h"

// func Exp(x float32) float32
TEXT ·Exp(SB),NOSPLIT,$0
JMP ·exp(SB)


// func Log(x float64) float64
TEXT ·Log(SB),NOSPLIT,$0
JMP ·log(SB)

TEXT ·Remainder(SB),NOSPLIT,$0
JMP ·remainder(SB)

// func Sqrt(x float32) float32
TEXT ·Sqrt(SB),NOSPLIT,$0
JMP ·sqrt(SB)

0 comments on commit 690198f

Please sign in to comment.