[DiscordArchive] is there a way to run the code from that editor?
[DiscordArchive] is there a way to run the code from that editor?
Archived author: Deamon • Posted: 2018-06-05T13:09:59.185000+00:00
Original source
is there a way to run the code from that editor?
Archived author: schlumpf • Posted: 2018-06-05T13:15:18.716000+00:00
Original source
remove the cout and `static_assert (check<0x8200>(-1.f),"");`
Archived author: schlumpf • Posted: 2018-06-05T13:15:27.578000+00:00
Original source
but no, no running the compiled result
Archived author: Quantam • Posted: 2018-06-05T13:25:50.806000+00:00
Original source
f2 is wrong. v337 needs to be multiplied by the sum
Archived author: Quantam • Posted: 2018-06-05T13:26:10.409000+00:00
Original source
Which is why it makes absolutely no sense to compute the 6 bits and 9 bits separately
Archived author: Deamon • Posted: 2018-06-05T13:30:18.648000+00:00
Original source
```
float f2 (std::int16_t v336)
{
float v337 = ((v336 & 0x8000) ) ? -1.f : 1.f;
return (((v336 & 0x7E00u) / 512.f) + ((v336 & 0x1FF) / 512.f)) * v337;
}
```
Archived author: Quantam • Posted: 2018-06-05T13:30:42.751000+00:00
Original source
Yeah
Archived author: schlumpf • Posted: 2018-06-05T13:31:04.303000+00:00
Original source
I just took what was above
Archived author: Deamon • Posted: 2018-06-05T13:31:19.205000+00:00
Original source
was: 0xFE00u, needs to be 0x7E00u
Archived author: schlumpf • Posted: 2018-06-05T13:32:00.320000+00:00
Original source
welp, then you say "do exactly as on wiki". good job!