shithub: purgatorio

ref: c116550e6a41572796e4db65e4f6acbcb3d9d6f8
dir: /lib9/setfcr-Linux-arm.S/

View raw version
#define	FN(x)	.type x,%function; .global x; x
#define	ENT
#define	RET	bx lr
#ifdef USEVFP
	.fpu	vfp
#define	VMSR(f,r)	vmsr	f,r
#define	VMRS(r,f)		vmrs	r,f
#else
	.fpu	softvfp
#define	VMSR(f,r)
#define	VMRS(r,f)
#endif

	.file	"setfcr-Linux-arm.S"
FN(setfcr):
	ENT
	VMSR(fpscr,r0)
	RET

FN(getfcr):
	ENT
	VMRS(r0, fpscr)
	RET

FN(getfsr):
	ENT
	VMRS(r0, fpscr)
	RET

FN(setfsr):
	ENT
	VMSR(fpscr, r0)
	RET