summaryrefslogtreecommitdiff
path: root/support/regression/tests/frexpf.c
blob: d36a295facab03a4fd96cbb168fac05b992086ee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* Test frexpf(), which has a habit of breaking */


#include <testfwk.h>
#include <math.h>

void testfrexpf(void)
{
#if !defined(__SDCC_pdk14) // Lack of memory
  int e;
  int *p = &e;

  ASSERT (frexpf (0.75, p) == 0.75);

  ASSERT (frexpf (0.75 * 4, p) == 0.75);

  ASSERT (frexpf (0.75 * 16, p) == 0.75);
#endif
}