2016-03-01 15:57:46 -07:00
|
|
|
// Copyright 2015 The Go Authors. All rights reserved.
|
2015-04-13 05:50:47 -06:00
|
|
|
// Use of this source code is governed by a BSD-style
|
|
|
|
// license that can be found in the LICENSE file.
|
|
|
|
|
|
|
|
// +build gccgo
|
|
|
|
|
|
|
|
package main
|
|
|
|
|
2015-04-13 13:50:56 -06:00
|
|
|
/*
|
|
|
|
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 }
|
2015-09-09 20:56:26 -06:00
|
|
|
|
|
|
|
func useVFPv1() {}
|
|
|
|
|
|
|
|
func useVFPv3() {}
|