summaryrefslogtreecommitdiff
path: root/lib/libc/arch/mvme88k/gen/fpgetmask.c
blob: 832fe0de567bcefa1eb65a6b3a75f76875bc856c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/*
 * Written by J.T. Conklin, Apr 10, 1995
 * Public domain.
 * Ported to 88k by Nivas Madhur.
 */

#include <ieeefp.h>

fp_except
fpgetmask()
{
	int x;

	__asm__ volatile ("fldcr %0,fcr63" : "=r" (x));
	return (x & 0x1f);
}