Page 1 of 1

Bug in e_exp.s in menuetlibc

Posted: Wed May 20, 2020 5:28 am
by Bughunter

Code: Select all

#include<libc/asm.h>
 
MK_C_SYM(__ieee754_exp)
        fldl    4(%esp)
        fldl2e
        fmulp                          
        fstl    %st(1)
        frndint                        
        fstl    %st(2)
        fsubrp      ; Should be fsubp‼
        f2xm1                            
        fld1
        faddp                          
        fscale                         
        ret
        
The ef_exp.s file also has the same issue.

Re: Bug in e_exp.s in menuetlibc

Posted: Wed May 20, 2020 5:31 am
by Bughunter
When calculating exp(1),Original version does't get 2.71828...

Re: Bug in e_exp.s in menuetlibc

Posted: Wed May 20, 2020 11:54 am
by Leency
Bughunter
Hi, I've uploaded the fix rev.7958
http://websvn.kolibrios.org/revision.ph ... 1&rev=7958