[Snek] [keith-packard/snek] 76c3b3: Avoid using uint64_t -> float conversion in random...
Keith Packard
noreply at github.com
Sat Nov 30 11:54:26 PST 2019
Branch: refs/heads/master
Home: https://github.com/keith-packard/snek
Commit: 76c3b3271b47fa0527ed14a347dc36c2705407d8
https://github.com/keith-packard/snek/commit/76c3b3271b47fa0527ed14a347dc36c2705407d8
Author: Keith Packard <keithp at keithp.com>
Date: 2019-11-29 (Fri, 29 Nov 2019)
Changed paths:
M chips/avr/ao-snek-avr.c
M chips/qemu/snek-qemu.c
M chips/samd21/snek-altos.c
M ports/duemilanove/snek-duemilanove.c
M ports/mega/snek-mega.c
Log Message:
-----------
Avoid using uint64_t -> float conversion in random.randrange
GCC's uint64_t to float conversion uses doubles, and pulls in a pile
of double code in soft float mode. Cast the value to a soffset_t, which
covers the whole potential range of values.
Signed-off-by: Keith Packard <keithp at keithp.com>
Commit: a28758b966c8004a112079fed733fde5639b4228
https://github.com/keith-packard/snek/commit/a28758b966c8004a112079fed733fde5639b4228
Author: Keith Packard <keithp at keithp.com>
Date: 2019-11-29 (Fri, 29 Nov 2019)
Changed paths:
M chips/qemu/snek-qemu.defs
M chips/samd21/snek-samd21.defs
M snek.defs
Log Message:
-----------
Clean up compiler warning flag usage
Stop duplicating compiler warning flags in chips/samd21 and chips/qemu. Switch
to -Warray-bounds=2, add -Wcast-align.
Signed-off-by: Keith Packard <keithp at keithp.com>
Compare: https://github.com/keith-packard/snek/compare/f48b9806f14f...a28758b966c8
More information about the Snek
mailing list