[Snek] [keith-packard/snek] e8e1f3: Use PICOLIBC_FLOAT_PRINT_SCANF to avoid passing do...

Keith Packard noreply at github.com
Sun Dec 1 12:44:25 PST 2019


  Branch: refs/heads/master
  Home:   https://github.com/keith-packard/snek
  Commit: e8e1f331567612656a6e77e94ebea966347a36fa
      https://github.com/keith-packard/snek/commit/e8e1f331567612656a6e77e94ebea966347a36fa
  Author: Keith Packard <keithp at keithp.com>
  Date:   2019-12-01 (Sun, 01 Dec 2019)

  Changed paths:
    M chips/qemu/snek-qemu.defs
    M chips/samd21/snek-samd21.defs
    M snek-print.c

  Log Message:
  -----------
  Use PICOLIBC_FLOAT_PRINT_SCANF to avoid passing double to printf

Picolibc has a kludge which lets applications pass 'float' values to
printf without casting to double. Take advantage of that to avoid
loading up all of the double soft float code in qemu and samd21 ports.

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




More information about the Snek mailing list