Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for initS390Xbase (0.16 sec)

  1. src/vendor/golang.org/x/sys/cpu/cpu_zos_s390x.go

    // Copyright 2020 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.
    
    package cpu
    
    func initS390Xbase() {
    	// get the facilities list
    	facilities := stfle()
    
    	// mandatory
    	S390X.HasZARCH = facilities.Has(zarch)
    	S390X.HasSTFLE = facilities.Has(stflef)
    	S390X.HasLDISP = facilities.Has(ldisp)
    	S390X.HasEIMM = facilities.Has(eimm)
    
    	// optional
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 02 15:41:00 UTC 2020
    - 643 bytes
    - Viewed (0)
  2. src/vendor/golang.org/x/sys/cpu/cpu_linux_s390x.go

    	hwcap_ZARCH  = 2
    	hwcap_STFLE  = 4
    	hwcap_MSA    = 8
    	hwcap_LDISP  = 16
    	hwcap_EIMM   = 32
    	hwcap_DFP    = 64
    	hwcap_ETF3EH = 256
    	hwcap_VX     = 2048
    	hwcap_VXE    = 8192
    )
    
    func initS390Xbase() {
    	// test HWCAP bit vector
    	has := func(featureMask uint) bool {
    		return hwCap&featureMask == featureMask
    	}
    
    	// mandatory
    	S390X.HasZARCH = has(hwcap_ZARCH)
    
    	// optional
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 02 15:41:00 UTC 2020
    - 890 bytes
    - Viewed (0)
  3. src/vendor/golang.org/x/sys/cpu/cpu_s390x.go

    	if len(fns) == 0 {
    		panic("no function codes provided")
    	}
    	for _, f := range fns {
    		if !bitIsSet(q.bits[:], uint(f)) {
    			return false
    		}
    	}
    	return true
    }
    
    func doinit() {
    	initS390Xbase()
    
    	// We need implementations of stfle, km and so on
    	// to detect cryptographic features.
    	if !haveAsmFunctions() {
    		return
    	}
    
    	// optional cryptographic functions
    	if S390X.HasMSA {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 02 15:41:00 UTC 2020
    - 4.9K bytes
    - Viewed (0)
Back to top