URL
https://opencores.org/ocsvn/raytrac/raytrac/trunk
Subversion Repositories raytrac
Compare Revisions
- This comparison shows the changes necessary to convert path
/raytrac/trunk/utils
- from Rev 75 to Rev 79
- ↔ Reverse comparison
Rev 75 → Rev 79
/memMaker.c
35,6 → 35,7
|
int offset; |
|
|
}memparam={0,0,0,australia,canada,0,1}; |
|
//mpx memparam={0,0,australia}; |
107,7 → 108,7
float fI; |
fI=(1/x); |
//fprintf (stdout," %f %f ", x, fI); |
fI*=pow(2,memparam.dec+2); |
fI*=pow(2,memparam.dec); |
I=fI; |
I&=0x3ffff; |
return I; |
116,7 → 117,7
int f1sqrt(float x){ |
int S; |
float fS; |
fS=(sqrt(x)*pow(2,memparam.dec+2)); |
fS=(sqrt(x)*pow(2,memparam.dec)); |
S=fS; |
S&=0x3ffff; |
return S; |