[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: Quantam • Posted: 2018-06-05T13:51:45.961000+00:00
Original source
(corrected f2)
Archived author: schlumpf • Posted: 2018-06-05T13:55:12.858000+00:00
Original source
Great. We didn’t need that direction, we already had it. This also checks exactly two cases and still needs to be verified with all others and probably also a second format and degenerate cases like the 1:0:15 one.
Archived author: schlumpf • Posted: 2018-06-05T13:55:36.124000+00:00
Original source
We still need the other way around, float to fp
Archived author: Quantam • Posted: 2018-06-05T13:56:22.501000+00:00
Original source
That 1:0:15 seems to be a totally weird format. For that one you need to divide the magnitude by 0x7FFF rather than 0x8000 (like any sane format would use)
Archived author: Quantam • Posted: 2018-06-05T14:01:20.890000+00:00
Original source
Verified for all possible values: https://godbolt.org/g/cw4R34
[Embed: Compiler Explorer]
Compiler Explorer is an interactive online compiler which shows the assembly output of compiled C, C++, Rust, Go, D, Haskell, Swift & Pascal code.
https://godbolt.org/g/cw4R34
Archived author: Quantam • Posted: 2018-06-05T14:01:27.357000+00:00
Original source
❤ constexpr
Archived author: Deamon • Posted: 2018-06-05T14:03:30.186000+00:00
Original source
the other way around is simple
Archived author: Quantam • Posted: 2018-06-05T14:03:38.556000+00:00
Original source
Yeah, I'm writing it right now
Archived author: Quantam • Posted: 2018-06-05T14:10:55.245000+00:00
Original source
Wait a second...
Archived author: Deamon • Posted: 2018-06-05T14:20:27.092000+00:00
Original source
sup?