Loading files
6d2e42836This file is pinned to the selected release. Download the original to open it in your design tool.
#include "../lib.c"
union fi {
float f;
int i;
};
int bitcast(float x){
union fi tmp;
tmp.f = x;
return tmp.i;
}
int main(void){
volatile float s = 0;
for(int i=1;i<=100;++i){
s = (s - i) * 3.0f / i + 1.5f;
serial_out_hex(bitcast(s));
serial_out_char('\n');
}
return 0;
}