gcc/libgcc/config/msp430/cmpd.c
Nick Clifton 2de1cf8c4b cmpd.c (__mspabi_cmpf): Add prototype.
* config/msp430/cmpd.c (__mspabi_cmpf): Add prototype.
	(__mspabi_cmpd): Likewise.
	* config/msp430/floathidf.c (__floathidf): Likewise.
	* config/msp430/floathisf.c (__floathisf): Likewise
	* config/msp430/floatunhidf.c (__floatunssidf): Likewise.
	* config/msp430/floatunhisf.c (__floatunshisf): Likewise.
	* config/msp430/lib2shift.c (__ashlsi3): Take a signed char as the
	second parameter.
	(__ashrsi3): Likewise.

From-SVN: r235409
2016-04-25 11:13:35 +00:00

26 lines
314 B
C

/* Public domain. */
int __mspabi_cmpf (float, float);
int
__mspabi_cmpf (float x, float y)
{
if (x < y)
return -1;
if (x > y)
return 1;
return 0;
}
int __mspabi_cmpd (double, double);
int
__mspabi_cmpd (double x, double y)
{
if (x < y)
return -1;
if (x > y)
return 1;
return 0;
}