* ===========================================================================
*/
#include <linux/kernel.h>
-#include <asm/bitops.h>
+#include <linux/bitops.h>
#include <asm/ptrace.h>
#include <asm/vfp.h>
dd, d, exceptions);
vfp_put_double(dd, d);
}
- return exceptions;
+ return exceptions & ~VFP_NAN_FLAG;
}
/*
/*
* If one was a signalling NAN, raise invalid operation.
*/
- return tn == VFP_SNAN || tm == VFP_SNAN ? FPSCR_IOC : 0x100;
+ return tn == VFP_SNAN || tm == VFP_SNAN ? FPSCR_IOC : VFP_NAN_FLAG;
}
/*
static u32 vfp_double_fcmpz(int dd, int unused, int dm, u32 fpscr)
{
- return vfp_compare(dd, 0, -1, fpscr);
+ return vfp_compare(dd, 0, VFP_REG_ZERO, fpscr);
}
static u32 vfp_double_fcmpez(int dd, int unused, int dm, u32 fpscr)
{
- return vfp_compare(dd, 1, -1, fpscr);
+ return vfp_compare(dd, 1, VFP_REG_ZERO, fpscr);
}
static u32 vfp_double_fcvts(int sd, int unused, int dm, u32 fpscr)