Home | History | Annotate | Download | only in dist
      1 // Copyright 2015 The Go Authors.  All rights reserved.
      2 // Use of this source code is governed by a BSD-style
      3 // license that can be found in the LICENSE file.
      4 
      5 // +build !gccgo
      6 
      7 package main
      8 
      9 func cpuid(info *[4]uint32, ax uint32)
     10 
     11 func cansse2() bool {
     12 	if gohostarch != "386" && gohostarch != "amd64" {
     13 		return false
     14 	}
     15 
     16 	var info [4]uint32
     17 	cpuid(&info, 1)
     18 	return info[3]&(1<<26) != 0 // SSE2
     19 }
     20