Board.KolibriOS.org
http://board.kolibrios.org/

Bug in e_exp.s in menuetlibc
http://board.kolibrios.org/viewtopic.php?f=2&t=4232
Page 1 of 1

Author:  Bughunter [ Wed May 20, 2020 5:28 am ]
Post subject:  Bug in e_exp.s in menuetlibc

Code:
#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.

Author:  Bughunter [ Wed May 20, 2020 5:31 am ]
Post subject:  Re: Bug in e_exp.s in menuetlibc

When calculating exp(1),Original version does't get 2.71828...

Author:  Leency [ Wed May 20, 2020 11:54 am ]
Post subject:  Re: Bug in e_exp.s in menuetlibc

Bughunter
Hi, I've uploaded the fix rev.7958
http://websvn.kolibrios.org/revision.ph ... 1&rev=7958

Page 1 of 1 All times are UTC+03:00
Powered by phpBB® Forum Software © phpBB Limited
https://www.phpbb.com/