[Snek] [keith-packard/snek] bd9e86: Share prngs across all devices

Keith Packard noreply at github.com
Sun Oct 27 13:29:01 PDT 2024


  Branch: refs/heads/share-random
  Home:   https://github.com/keith-packard/snek
  Commit: bd9e86301d026183b4996736964c242409e7307a
      https://github.com/keith-packard/snek/commit/bd9e86301d026183b4996736964c242409e7307a
  Author: Keith Packard <keithp at keithp.com>
  Date:   2024-10-27 (Sun, 27 Oct 2024)

  Changed paths:
    M chips/atmega/snek-328p.c
    M chips/atmega/snek-atmega.builtin
    M chips/atmega/snek-atmega.defs
    M chips/avr/ao-snek-avr.c
    M chips/avr/snek-avr.builtin
    M chips/avr/snek-avr.defs
    M chips/qemu/snek-qemu.builtin
    M chips/qemu/snek-qemu.c
    M chips/qemu/snek-qemu.defs
    M chips/samd21/snek-altos.builtin
    M chips/samd21/snek-altos.c
    M chips/samd21/snek-samd21.defs
    M hosts/windows/Makefile
    M hosts/windows/snek-windows.builtin
    M hosts/windows/snek-windows.c
    M ports/esp32/main/Makefile
    M ports/esp32/main/snek-esp32.builtin
    M ports/esp32/main/snek-esp32.c
    M ports/ev3/Makefile
    M ports/ev3/snek-ev3.builtin
    M ports/hifive1revb/Makefile
    M ports/hifive1revb/snek-hifive1revb.builtin
    M ports/hifive1revb/snek-metal-builtin.c
    M ports/mega/Makefile
    M ports/mega/snek-mega.c
    M ports/nano-every/snek-nano-every.c
    M ports/narrow-1284/snek-narrow-1284.c
    M ports/posix/Makefile
    M ports/posix/snek-posix.builtin
    M ports/posix/snek-posix.c
    A snek-random-small.c
    A snek-random.builtin
    A snek-random.c

  Log Message:
  -----------
  Share prngs across all devices

Create snek-random.c and snek-random-small.c, then share those across
all snek implementations. Select snek-random-small.c for smaller
devices to avoid needing 64-bit arithmetic.

Signed-off-by: Keith Packard <keithp at keithp.com>



To unsubscribe from these emails, change your notification settings at https://github.com/keith-packard/snek/settings/notifications


More information about the Snek mailing list