OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Add NIOS2 support. Code from SourceyG++.
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
gcc.dg
/
torture
/
pr39241.c
1
/* { dg-do compile } */
2
/* { dg-options "-w" } */
3
4
static inline int
5
foo (float f)
6
{
7
return *((int *) &f) - 1;
8
}
9
10
float
11
bar (float x, float y, float *z)
12
{
13
float c = y < 0.002f ? 0.002f : y;
14
float d = x < c ? c : x;
15
return z[foo (c)] + z[foo (d * 255.0f)];
16
}