I put them just after math_randomseed. Is that correct? It did cure the X360 crash. Thanks! Emil On Fri, Aug 16, 2013 at 3:55 PM, Mike Pall <mike-1308@xxxxxxxxxx> wrote: > Emil Dotchevski wrote: >> Is it possible that where in >> lib_math.c these functions get inserted is important somehow? > > Oops, now I see what you mean: you must not insert it directly > above any LJLIB_ASM_() (with a trailing underscore). Because that > one reuses the previous LJLIB_ASM() fallback handler. The safest > place is after the last library function definition, right before > the separator line. > > --Mike >