repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
* MAINTAINERS: Add Nick Clifton and DJ Delorie as msp430
[official-gcc.git]
/
libgcc
/
config
/
msp430
/
cmpd.c
blob
03e690dff53ae4d2878fa34cf0ac97147d43a91f
1
/* Public domain. */
2
int
3
__mspabi_cmpf
(
float
x
,
float
y
)
4
{
5
if
(
x
<
y
)
6
return
-
1
;
7
if
(
x
>
y
)
8
return
1
;
9
return
0
;
10
}
11
int
12
__mspabi_cmpd
(
double
x
,
double
y
)
13
{
14
if
(
x
<
y
)
15
return
-
1
;
16
if
(
x
>
y
)
17
return
1
;
18
return
0
;
19
}