mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2026-02-27 01:07:10 +00:00
23 lines
433 B
ArmAsm
23 lines
433 B
ArmAsm
// Copyright 2017 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.
|
|
|
|
#include "textflag.h"
|
|
|
|
// func getGOAMD64level() int32
|
|
TEXT ·getGOAMD64level(SB),NOSPLIT,$0-4
|
|
#ifdef GOAMD64_v4
|
|
MOVL $4, ret+0(FP)
|
|
#else
|
|
#ifdef GOAMD64_v3
|
|
MOVL $3, ret+0(FP)
|
|
#else
|
|
#ifdef GOAMD64_v2
|
|
MOVL $2, ret+0(FP)
|
|
#else
|
|
MOVL $1, ret+0(FP)
|
|
#endif
|
|
#endif
|
|
#endif
|
|
RET
|