2024-04-17 03:56:05 +00:00
|
|
|
//go:build amd64 && !purego
|
|
|
|
|
2024-04-11 05:44:12 +00:00
|
|
|
#include "textflag.h"
|
|
|
|
|
|
|
|
// stmxcsr reads the MXCSR control and status register.
|
|
|
|
TEXT ·stmxcsr(SB),NOSPLIT|NOFRAME,$0-8
|
|
|
|
MOVQ addr+0(FP), SI
|
|
|
|
STMXCSR (SI)
|
|
|
|
RET
|
|
|
|
|
|
|
|
// ldmxcsr writes to the MXCSR control and status register.
|
|
|
|
TEXT ·ldmxcsr(SB),NOSPLIT|NOFRAME,$0-8
|
|
|
|
MOVQ addr+0(FP), SI
|
|
|
|
LDMXCSR (SI)
|
|
|
|
RET
|