aboutsummaryrefslogtreecommitdiff
path: root/winsup/mingw/mingwex/fucom.c
blob: 80c937262d5eda3a555b867a35d2137c3691a453 (plain)
1
2
3
4
5
6
7
8
9
10
11
int 
__fp_unordered_compare (long double x,  long double y){
  unsigned short retval;
  __asm__ (
	"fucom %%st(1);"
	"fnstsw;"
	: "=a" (retval)
	: "t" (x), "u" (y)
	);
  return retval;
}