projects
/
debian
/
cc1111
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Imported Upstream version 2.9.0
[debian/cc1111]
/
support
/
regression
/
tests
/
bug1520966.c
1
/* bug1520966 "Floating-point bug with small numbers"
2
*/
3
4
#include <testfwk.h>
5
#include <math.h>
6
7
void
8
testFloatOp(void)
9
{
10
volatile float a,b;
11
float result;
12
13
a = 2.04e-38;
14
b = 0.01;
15
result = a * b;
16
ASSERT( result < a );
17
ASSERT( result >= 0.0 );
18
19
b = 100;
20
result = a / b;
21
ASSERT( result < a );
22
ASSERT( result >= 0.0 );
23
}