Commit 2de1cf8c by Nick Clifton Committed by Nick Clifton

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
parent ab99f467
2016-04-25 Nick Clifton <nickc@redhat.com>
* 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.
2016-04-21 Waldemar Brodkorb <wbx@openadk.org> 2016-04-21 Waldemar Brodkorb <wbx@openadk.org>
* config/m68k/linux-atomic.c: Do not include unistd.h * config/m68k/linux-atomic.c: Do not include unistd.h
......
/* Public domain. */ /* Public domain. */
int __mspabi_cmpf (float, float);
int int
__mspabi_cmpf (float x, float y) __mspabi_cmpf (float x, float y)
{ {
...@@ -8,6 +11,9 @@ __mspabi_cmpf (float x, float y) ...@@ -8,6 +11,9 @@ __mspabi_cmpf (float x, float y)
return 1; return 1;
return 0; return 0;
} }
int __mspabi_cmpd (double, double);
int int
__mspabi_cmpd (double x, double y) __mspabi_cmpd (double x, double y)
{ {
......
/* Public domain. */ /* Public domain. */
extern double __floatsidf (long); extern double __floatsidf (long);
double __floathidf (int);
double double
__floathidf (int u) __floathidf (int u)
{ {
......
...@@ -4,6 +4,8 @@ typedef float SFtype __attribute__ ((mode (SF))); ...@@ -4,6 +4,8 @@ typedef float SFtype __attribute__ ((mode (SF)));
extern SFtype __floatsisf (unsigned long); extern SFtype __floatsisf (unsigned long);
SFtype __floathisf (HItype);
SFtype SFtype
__floathisf (HItype u) __floathisf (HItype u)
{ {
......
...@@ -5,6 +5,8 @@ typedef float DFtype __attribute__ ((mode (DF))); ...@@ -5,6 +5,8 @@ typedef float DFtype __attribute__ ((mode (DF)));
extern DFtype __floatunsidf (unsigned long); extern DFtype __floatunsidf (unsigned long);
DFtype __floatunhidf (UHItype);
DFtype DFtype
__floatunhidf (UHItype u) __floatunhidf (UHItype u)
{ {
......
...@@ -5,6 +5,8 @@ typedef float SFtype __attribute__ ((mode (SF))); ...@@ -5,6 +5,8 @@ typedef float SFtype __attribute__ ((mode (SF)));
extern SFtype __floatunsisf (unsigned long); extern SFtype __floatunsisf (unsigned long);
SFtype __floatunhisf (UHItype);
SFtype SFtype
__floatunhisf (UHItype u) __floatunhisf (UHItype u)
{ {
......
...@@ -28,10 +28,10 @@ typedef unsigned int uint32_type __attribute__ ((mode (SI))); ...@@ -28,10 +28,10 @@ typedef unsigned int uint32_type __attribute__ ((mode (SI)));
typedef int sint16_type __attribute__ ((mode (HI))); typedef int sint16_type __attribute__ ((mode (HI)));
typedef unsigned int uint16_type __attribute__ ((mode (HI))); typedef unsigned int uint16_type __attribute__ ((mode (HI)));
uint32_type __ashlsi3 (uint32_type in, char bit); uint32_type __ashlsi3 (uint32_type, signed char);
sint32_type __ashrsi3 (sint32_type in, char bit); sint32_type __ashrsi3 (sint32_type, signed char);
int __clrsbhi2 (sint16_type x); int __clrsbhi2 (sint16_type);
extern int __clrsbsi2 (sint32_type x); extern int __clrsbsi2 (sint32_type);
typedef struct typedef struct
{ {
...@@ -43,7 +43,7 @@ typedef struct ...@@ -43,7 +43,7 @@ typedef struct
} dd; } dd;
uint32_type uint32_type
__ashlsi3 (uint32_type in, char bit) __ashlsi3 (uint32_type in, signed char bit)
{ {
uint16_type h, l; uint16_type h, l;
dd d; dd d;
...@@ -77,7 +77,7 @@ __ashlsi3 (uint32_type in, char bit) ...@@ -77,7 +77,7 @@ __ashlsi3 (uint32_type in, char bit)
} }
sint32_type sint32_type
__ashrsi3 (sint32_type in, char bit) __ashrsi3 (sint32_type in, signed char bit)
{ {
sint16_type h; sint16_type h;
uint16_type l; uint16_type l;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment