repo.or.cz
/
sdcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
struct / union in initializer, RFE #901.
[sdcc.git]
/
sdcc
/
support
/
regression
/
tests
/
frexpf.c
blob
d36a295facab03a4fd96cbb168fac05b992086ee
1
/* Test frexpf(), which has a habit of breaking */
2
3
4
#include <testfwk.h>
5
#include <math.h>
6
7
void
testfrexpf
(
void
)
8
{
9
#if !defined(__SDCC_pdk14)
// Lack of memory
10
int
e
;
11
int
*
p
= &
e
;
12
13
ASSERT
(
frexpf
(
0.75
,
p
) ==
0.75
);
14
15
ASSERT
(
frexpf
(
0.75
*
4
,
p
) ==
0.75
);
16
17
ASSERT
(
frexpf
(
0.75
*
16
,
p
) ==
0.75
);
18
#endif
19
}
20