go-randomx/fpu/round_amd64.s
DataHoarder b207b994b3
All checks were successful
continuous-integration/drone/push Build is passing
Working RandomX with minimal assembly for rounding mode (AMD64,ARM64)
2024-04-11 08:46:34 +02:00

14 lines
300 B
ArmAsm

#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