Plan 9 from Bell Labs’s /usr/web/sources/plan9/sys/src/libc/arm/getfcr.vfp.S

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


/* for VFP */
#define VMRS(fp, cpu) WORD $(0xeef00a10 | (fp)<<16 | (cpu)<<12) /* FP → arm */
#define VMSR(cpu, fp) WORD $(0xeee00a10 | (fp)<<16 | (cpu)<<12) /* arm → FP */

#define Fpscr 1

TEXT	setfcr(SB), $0
	VMSR(0, Fpscr)
	RET

TEXT	getfcr(SB), $0
	VMRS(Fpscr, 0)
	RET

TEXT	getfsr(SB), $0
	VMSR(0, Fpscr)
	RET

TEXT	setfsr(SB), $0
	VMRS(Fpscr, 0)
	RET

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.