Skip to content

Commit 7ba2c08

Browse files
committed
guard assembly files against tinygo and noasm build tags
1 parent 7caa3bb commit 7ba2c08

15 files changed

+19
-2
lines changed

_exp_arm64.s

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build !tinygo && !noasm
12
// Copyright 2017 The Go Authors. All rights reserved.
23
// Use of this source code is governed by a BSD-style
34
// license that can be found in the LICENSE file.

_stubs_risc64.s

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
#include "textflag.h"
1+
//go:build !tinygo && !noasm
2+
#include "textflag.h"
23

34
// func archExp(x float32) float32
45
TEXT ·archExp(SB),NOSPLIT,$0

dim.go

+3
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ package math32
33
// Dim returns the maximum of x-y or 0.
44
//
55
// Special cases are:
6+
//
67
// Dim(+Inf, +Inf) = NaN
78
// Dim(-Inf, -Inf) = NaN
89
// Dim(x, NaN) = Dim(NaN, x) = NaN
@@ -17,6 +18,7 @@ func dim(x, y float32) float32 {
1718
// Max returns the larger of x or y.
1819
//
1920
// Special cases are:
21+
//
2022
// Max(x, +Inf) = Max(+Inf, x) = +Inf
2123
// Max(x, NaN) = Max(NaN, x) = NaN
2224
// Max(+0, ±0) = Max(±0, +0) = +0
@@ -47,6 +49,7 @@ func max(x, y float32) float32 {
4749
// Min returns the smaller of x or y.
4850
//
4951
// Special cases are:
52+
//
5053
// Min(x, -Inf) = Min(-Inf, x) = -Inf
5154
// Min(x, NaN) = Min(NaN, x) = NaN
5255
// Min(-0, ±0) = Min(±0, -0) = -0

exp_amd64.s

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build !tinygo && !noasm
12
// Copyright 2014 Xuanyi Chew. All rights reserved.
23
// Use of this source code is governed by a BSD-style
34
// license that can be found in the LICENSE file.

log_amd64.s

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build !tinygo && !noasm
12
// Copyright 2010 The Go Authors. All rights reserved.
23
// Use of this source code is governed by a BSS-style
34
// license that can be found in the LICENSE file.

nextafter.go

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ package math32
77
// Nextafter returns the next representable float32 value after x towards y.
88
//
99
// Special cases are:
10+
//
1011
// Nextafter32(x, x) = x
1112
// Nextafter32(NaN, y) = NaN
1213
// Nextafter32(x, NaN) = NaN

remainder_amd64.s

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build !tinygo && !noasm
12
// Copyright 2011 The Go Authors. All rights reserved.
23
// Use of this source code is governed by a BSD-style
34
// license that can be found in the LICENSE file.

sqrt_amd64.s

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build !tinygo && !noasm
12
#include "textflag.h"
23

34
// func archSqrt(x float32) float32

sqrt_arm64.s

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build !tinygo && !noasm
12
// Copyright 2015 The Go Authors. All rights reserved.
23
// Use of this source code is governed by a BSD-style
34
// license that can be found in the LICENSE file.

stubs_386.s

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build !tinygo && !noasm
12
#include "textflag.h"
23

34
// func archExp(x float32) float32

stubs_arm.s

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build !tinygo && !noasm
12
#include "textflag.h"
23

34
// func archExp(x float32) float32

stubs_arm64.s

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build !tinygo && !noasm
12
#include "textflag.h"
23

34
// func archLog(x float64) float64

stubs_ppc64le.s

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build !tinygo && !noasm
12
#include "textflag.h"
23

34
// func archExp(x float32) float32

stubs_s390x.s

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build !tinygo && !noasm
12
#include "textflag.h"
23

34
// func archExp(x float32) float32

stubs_wasm.s

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
// +build wasm
1+
//go:build wasm && !tinygo && !noasm
2+
// +build wasm,!tinygo,!noasm
23

34
#include "textflag.h"
45

0 commit comments

Comments
 (0)