summaryrefslogtreecommitdiff
path: root/vendor/modernc.org/libc/builtin.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/modernc.org/libc/builtin.go')
-rw-r--r--vendor/modernc.org/libc/builtin.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/vendor/modernc.org/libc/builtin.go b/vendor/modernc.org/libc/builtin.go
index 1d727eb0c..5582af66c 100644
--- a/vendor/modernc.org/libc/builtin.go
+++ b/vendor/modernc.org/libc/builtin.go
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
-//go:build linux && (amd64 || loong64)
+//go:build linux && (amd64 || arm64 || loong64)
package libc // import "modernc.org/libc"
@@ -32,6 +32,10 @@ func X__builtin_round(tls *TLS, x float64) (r float64) {
return Xround(tls, x)
}
+func X__builtin_roundf(tls *TLS, x float32) (r float32) {
+ return Xroundf(tls, x)
+}
+
func X__builtin_expect(t *TLS, exp, c long) long {
return exp
}