Re: Modifying LJ to add a few math functions

  • From: Mike Pall <mike-1308@xxxxxxxxxx>
  • To: luajit@xxxxxxxxxxxxx
  • Date: Fri, 16 Aug 2013 22:23:21 +0200

Emil Dotchevski wrote:
> Can you please list all the generated files in which the new functions
> should appear?

Here's a complete diff for the original vs. two functions added:

*** src/lj_ffdef.h
55a56,57
> FFDEF(math_nmod)
> FFDEF(math_ndiv)

*** src/lj_libdef.h
75a76,77
>   lj_cf_math_nmod,
>   lj_cf_math_ndiv,
83c85
< 37,16,30,67,97,98,115,133,102,108,111,111,114,132,99,101,105,108,68,115,113,
---
> 37,16,32,67,97,98,115,133,102,108,111,111,114,132,99,101,105,108,68,115,113,
87,92c89,94
<> [...] Many changes due to the insertion of the two definitions [...]

*** src/lj_recdef.h
58a59,60
> 0,
> 0,

Note that buildvm.exe includes these, so it's indirectly changed.

--Mike

Other related posts: