[Snek] [keith-packard/snek] e01953: snek-mega: Add back missing math functions

Keith Packard noreply at github.com
Wed May 1 15:28:42 PDT 2019


  Branch: refs/heads/master
  Home:   https://github.com/keith-packard/snek
  Commit: e0195355b1fd0fad1c11e8d7ee3d4f90323bf980
      https://github.com/keith-packard/snek/commit/e0195355b1fd0fad1c11e8d7ee3d4f90323bf980
  Author: Keith Packard <keithp at keithp.com>
  Date:   2019-05-01 (Wed, 01 May 2019)

  Changed paths:
    M snek-mega/Makefile
    A snek-mega/ef_acosh.c
    A snek-mega/ef_atanh.c
    A snek-mega/ef_remainder.c
    A snek-mega/erf_gamma.c
    A snek-mega/erf_lgamma.c
    A snek-mega/exp2.c
    A snek-mega/fdlibm.h
    A snek-mega/kf_cos.c
    A snek-mega/kf_sin.c
    A snek-mega/machine/ieeefp.h
    A snek-mega/math_config.h
    A snek-mega/sf_asinh.c
    A snek-mega/sf_erf.c
    A snek-mega/sf_exp.c
    A snek-mega/sf_exp2.c
    A snek-mega/sf_log1p.c
    A snek-mega/sf_log2.c
    A snek-mega/sf_log2_data.c
    M snek-mega/snek-mega-math.c
    A snek-mega/snek-mega-math.h
    M snek-mega/snek-mega.builtin
    A snek-mega/wf_tgamma.c

  Log Message:
  -----------
  snek-mega: Add back missing math functions

The AVR libm is missing a few math functions; get the missing ones
from newlib. This doesn't fix the low precision of the provided AVR
functions.

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


  Commit: 08ee5919e4fad062ec4af58e2228d99ea372ee91
      https://github.com/keith-packard/snek/commit/08ee5919e4fad062ec4af58e2228d99ea372ee91
  Author: Keith Packard <keithp at keithp.com>
  Date:   2019-05-01 (Wed, 01 May 2019)

  Changed paths:
    M snek-builtin.py
    M snek-name.c

  Log Message:
  -----------
  Remove 'id' value from builtin names

As the builtin names are listed in-order, the id can be
computed by keeping a counter as the builtin array is
walked. This shrinks the builtin array while also
allowing more than 128 builtin names (which snek-mega
violates).

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


  Commit: 770a7ec59ca802ce8270b7e8890c241ac5e96b42
      https://github.com/keith-packard/snek/commit/770a7ec59ca802ce8270b7e8890c241ac5e96b42
  Author: Keith Packard <keithp at keithp.com>
  Date:   2019-05-01 (Wed, 01 May 2019)

  Changed paths:
    M snek-mega/snek-mega.builtin

  Log Message:
  -----------
  snek-mega: Missed D52 and D53

These got left out of the .builtin file somehow.

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


Compare: https://github.com/keith-packard/snek/compare/752291780a0d...770a7ec59ca8


More information about the Snek mailing list