Retro68/gcc/libgcc/config/msp430/cmpd.c

26 lines
314 B
C
Raw Normal View History

2014-09-21 17:33:12 +00:00
/* Public domain. */
int __mspabi_cmpf (float, float);
2014-09-21 17:33:12 +00:00
int
__mspabi_cmpf (float x, float y)
{
if (x < y)
return -1;
if (x > y)
return 1;
return 0;
}
int __mspabi_cmpd (double, double);
2014-09-21 17:33:12 +00:00
int
__mspabi_cmpd (double x, double y)
{
if (x < y)
return -1;
if (x > y)
return 1;
return 0;
}