mirror of
https://github.com/golang/go
synced 2024-11-14 15:10:54 -07:00
3a369a0f59
so that our release note can reference a simple command to check if the processor implements ARMv6K or not. Updates #17082. Change-Id: I9ca52051e5517394a7cd6b778fb822c3ee435f84 Reviewed-on: https://go-review.googlesource.com/33686 Run-TryBot: Minux Ma <minux@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
27 lines
457 B
Go
27 lines
457 B
Go
// Copyright 2015 The Go Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style
|
|
// license that can be found in the LICENSE file.
|
|
|
|
// +build gccgo
|
|
|
|
package main
|
|
|
|
/*
|
|
int supports_sse2() {
|
|
#if defined(__i386__) || defined(__x86_64__)
|
|
return __builtin_cpu_supports("sse2");
|
|
#else
|
|
return 0;
|
|
#endif
|
|
}
|
|
*/
|
|
import "C"
|
|
|
|
func cansse2() bool { return C.supports_sse2() != 0 }
|
|
|
|
func useVFPv1() {}
|
|
|
|
func useVFPv3() {}
|
|
|
|
func useARMv6K() {}
|