summaryrefslogtreecommitdiff
path: root/lib/libc/arch/m68k/gen/fpgetmask.S
blob: bc30ed8e5500b3f98de8c7b30e9a3ce94cdcea69 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* $OpenBSD: fpgetmask.S,v 1.4 2013/02/02 13:29:14 miod Exp $ */
/*
 * Written by Charles M. Hannum, Apr 9, 1995
 * Public domain.
 */

#include <machine/asm.h>

ENTRY(fpgetmask)
	fmovel %fpcr,%d0
	bfextu %d0{#18:#5},%d0
	rts