[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug in frexp() on m68k?


Could someone confirm a bug in frexp() function. Using Debian sid in
Aranym I run the following program:

#include <math.h>
#include <stdio.h>

main() {
        double v;
        int e;
        v = frexp(1.1, &e);
        printf("%g, %d\n", v, e);
        v = frexp(0.1, &e);
        printf("%g, %d\n", v, e);

and get the output
0.55, 1
0.05, -2147483647

which should be
0.55, 1
0.8, -3

(The result is incorrect iff the argument is less than 1 in absolute
value). Could it be a bug in Aranym? Where to report it better?

Sergei Golovan

Reply to: