Sha256: 318814eb72f21ca0a495feddd0d48e389964c9ac1e5f6ec5c66798fbb579a8fa

Contents?: true

Size: 855 Bytes

Versions: 16

Compression:

Stored size: 855 Bytes

Contents

// Copyright (c) 2015 Klaus Post, released under MIT License. See LICENSE file.

//+build arm64,!gccgo,!noasm,!appengine

// See https://www.kernel.org/doc/Documentation/arm64/cpu-feature-registers.txt

// func getMidr
TEXT ·getMidr(SB), 7, $0
	WORD $0xd5380000    // mrs x0, midr_el1         /* Main ID Register */
	MOVD R0, midr+0(FP)
	RET

// func getProcFeatures
TEXT ·getProcFeatures(SB), 7, $0
	WORD $0xd5380400            // mrs x0, id_aa64pfr0_el1  /* Processor Feature Register 0 */
	MOVD R0, procFeatures+0(FP)
	RET

// func getInstAttributes
TEXT ·getInstAttributes(SB), 7, $0
	WORD $0xd5380600            // mrs x0, id_aa64isar0_el1 /* Instruction Set Attribute Register 0 */
	WORD $0xd5380621            // mrs x1, id_aa64isar1_el1 /* Instruction Set Attribute Register 1 */
	MOVD R0, instAttrReg0+0(FP)
	MOVD R1, instAttrReg1+8(FP)
	RET

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
ruby_snowflake_client-1.3.7 ext/vendor/github.com/klauspost/cpuid/v2/cpuid_arm64.s
ruby_snowflake_client-1.3.6 ext/vendor/github.com/klauspost/cpuid/v2/cpuid_arm64.s
ruby_snowflake_client-1.3.5 ext/vendor/github.com/klauspost/cpuid/v2/cpuid_arm64.s
ruby_snowflake_client-1.3.4 ext/vendor/github.com/klauspost/cpuid/v2/cpuid_arm64.s
ruby_snowflake_client-1.3.4.pre.debug ext/vendor/github.com/klauspost/cpuid/v2/cpuid_arm64.s
ruby_snowflake_client-1.3.3.pre.debug ext/vendor/github.com/klauspost/cpuid/v2/cpuid_arm64.s
ruby_snowflake_client-1.3.2 ext/vendor/github.com/klauspost/cpuid/v2/cpuid_arm64.s
ruby_snowflake_client-1.3.1 ext/vendor/github.com/klauspost/cpuid/v2/cpuid_arm64.s
ruby_snowflake_client-1.3.0 ext/vendor/github.com/klauspost/cpuid/v2/cpuid_arm64.s
ruby_snowflake_client-1.2.1 ext/vendor/github.com/klauspost/cpuid/v2/cpuid_arm64.s
ruby_snowflake_client-1.2.0 ext/vendor/github.com/klauspost/cpuid/v2/cpuid_arm64.s
ruby_snowflake_client-1.1.1 ext/vendor/github.com/klauspost/cpuid/v2/cpuid_arm64.s
ruby_snowflake_client-1.1.0 ext/vendor/github.com/klauspost/cpuid/v2/cpuid_arm64.s
ruby_snowflake_client-1.0.2 ext/vendor/github.com/klauspost/cpuid/v2/cpuid_arm64.s
ruby_snowflake_client-1.0.1 ext/vendor/github.com/klauspost/cpuid/v2/cpuid_arm64.s
ruby_snowflake_client-1.0.0 ext/vendor/github.com/klauspost/cpuid/v2/cpuid_arm64.s