Timeline for Convert integer to float while also dividing down the scale, without data loss
Current License: CC BY-SA 4.0
10 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Aug 3, 2020 at 6:00 | history | tweeted | twitter.com/StackGameDev/status/1290165523351654400 | ||
Jul 30, 2020 at 9:22 | comment | added | leftaroundabout | Anybody following the link take note that it's from back in 2006. Keep that in mind while reading... | |
Jul 29, 2020 at 22:43 | answer | added | Steve Cox | timeline score: 5 | |
Jul 29, 2020 at 22:29 | comment | added | Steve Cox |
On cpu's there are sometimes hardware instructions to make this incredibly fast if you're willing to scale by powers of 2 (so maybe 1024ths of a meter instead of millimeters as the fixed point representation). On aarch64 for example VCVT takes the parameter fbits which determines (more or less) how big the divisor is in your conversion. Perhaps some the the GPU whiz's here might know of an equivalent instruction, and how to convince a toolchain to generate it
|
|
Jul 29, 2020 at 14:12 | review | Close votes | |||
Aug 3, 2020 at 3:02 | |||||
Jul 29, 2020 at 12:44 | history | became hot network question | |||
Jul 29, 2020 at 12:17 | vote | accept | Nairou | ||
Jul 29, 2020 at 11:56 | answer | added | DMGregory♦ | timeline score: 24 | |
Jul 29, 2020 at 4:40 | answer | added | 3D Coder | timeline score: -1 | |
Jul 29, 2020 at 4:22 | history | asked | Nairou | CC BY-SA 4.0 |