Files
tinygo/src/runtime
Ayke van Laethem 431e51b8a0 runtime: use dedicated printfloat32
It can be unexpected that printing a float32 involves 64-bit floating
point routines, see for example:
https://github.com/tinygo-org/tinygo/issues/1415

This commit adds a dedicated printfloat32 instead just for printing
float32 values. It comes with a possible code size increase, but only if
both float32 and float64 values are printed. Therefore, this should be
an improvement in almost all cases.

I also tried using printfloat32 for everything (and casting a float64 to
float32 to print) but the printed values are slightly different,
breaking the testdata/math.go test for example.
2020-10-02 11:26:22 +02:00
..
2018-09-14 20:58:00 +02:00
2019-04-13 19:58:58 +02:00
2020-07-08 21:58:15 +02:00
2020-09-29 21:58:03 +02:00
2020-09-24 21:17:26 +02:00
2019-05-11 15:33:37 +02:00
2020-03-17 19:25:30 +01:00
2020-03-17 19:25:30 +01:00
2020-04-05 16:16:57 +02:00
2019-02-19 15:54:36 +01:00
2019-12-29 10:48:28 +01:00
2018-08-30 05:48:16 +02:00
2018-08-30 05:48:16 +02:00
2020-04-05 16:16:57 +02:00
2020-10-02 11:26:22 +02:00
2020-05-25 22:08:28 +02:00
2020-09-14 08:48:01 +02:00
2020-09-29 21:58:03 +02:00
2020-09-29 21:58:03 +02:00
2020-05-25 22:08:28 +02:00
2020-09-21 08:49:13 +02:00
2020-09-21 08:49:13 +02:00
2018-09-16 13:01:03 +02:00
2020-07-08 21:58:15 +02:00