mirror of
https://github.com/kemko/reproxy.git
synced 2026-01-01 15:55:49 +03:00
Bumps the go-modules-updates group with 2 updates in the / directory: [github.com/prometheus/client_golang](https://github.com/prometheus/client_golang) and [golang.org/x/crypto](https://github.com/golang/crypto). Updates `github.com/prometheus/client_golang` from 1.19.1 to 1.20.2 - [Release notes](https://github.com/prometheus/client_golang/releases) - [Changelog](https://github.com/prometheus/client_golang/blob/main/CHANGELOG.md) - [Commits](https://github.com/prometheus/client_golang/compare/v1.19.1...v1.20.2) Updates `golang.org/x/crypto` from 0.24.0 to 0.26.0 - [Commits](https://github.com/golang/crypto/compare/v0.24.0...v0.26.0) --- updated-dependencies: - dependency-name: github.com/prometheus/client_golang dependency-type: direct:production update-type: version-update:semver-minor dependency-group: go-modules-updates - dependency-name: golang.org/x/crypto dependency-type: direct:production update-type: version-update:semver-minor dependency-group: go-modules-updates ... Signed-off-by: dependabot[bot] <support@github.com>
37 lines
562 B
ArmAsm
37 lines
562 B
ArmAsm
// +build !appengine
|
|
// +build gc
|
|
// +build !noasm
|
|
|
|
#include "textflag.h"
|
|
#include "funcdata.h"
|
|
#include "go_asm.h"
|
|
|
|
TEXT ·x86extensions(SB), NOSPLIT, $0
|
|
// 1. determine max EAX value
|
|
XORQ AX, AX
|
|
CPUID
|
|
|
|
CMPQ AX, $7
|
|
JB unsupported
|
|
|
|
// 2. EAX = 7, ECX = 0 --- see Table 3-8 "Information Returned by CPUID Instruction"
|
|
MOVQ $7, AX
|
|
MOVQ $0, CX
|
|
CPUID
|
|
|
|
BTQ $3, BX // bit 3 = BMI1
|
|
SETCS AL
|
|
|
|
BTQ $8, BX // bit 8 = BMI2
|
|
SETCS AH
|
|
|
|
MOVB AL, bmi1+0(FP)
|
|
MOVB AH, bmi2+1(FP)
|
|
RET
|
|
|
|
unsupported:
|
|
XORQ AX, AX
|
|
MOVB AL, bmi1+0(FP)
|
|
MOVB AL, bmi2+1(FP)
|
|
RET
|