unsigned long long -> long double on hdf5-1.8.4

I presume it is a rounding issue

···

-------------------------------------------------------
Testing soft unsigned long long -> long double conversions *FAILED*
    elmt 126:
        src = ff ff ff ff ff ff ff ff 18446744073709551615
        dst = 00 00 40 3e ff ff ff ff ff ff ff ff 18446744073709551615.000000
        ans = 00 00 40 3f 80 00 00 00 00 00 00 00 18446744073709551616.000000
    elmt 127:
        src = ff ff ff ff ff ff ff fe 18446744073709551614
        dst = 00 00 40 3e ff ff ff ff ff ff ff fe 18446744073709551614.000000
        ans = 00 00 40 3f 80 00 00 00 00 00 00 00 18446744073709551616.000000
    elmt 128:
        src = ff ff ff ff ff ff ff fc 18446744073709551612
        dst = 00 00 40 3e ff ff ff ff ff ff ff fc 18446744073709551612.000000
        ans = 00 00 40 3f 80 00 00 00 00 00 00 00 18446744073709551616.000000
    elmt 129:
        src = ff ff ff ff ff ff ff f8 18446744073709551608
        dst = 00 00 40 3e ff ff ff ff ff ff ff f8 18446744073709551608.000000
        ans = 00 00 40 3f 80 00 00 00 00 00 00 00 18446744073709551616.000000
    elmt 130:
        src = ff ff ff ff ff ff ff f0 18446744073709551600
        dst = 00 00 40 3e ff ff ff ff ff ff ff f0 18446744073709551600.000000
        ans = 00 00 40 3f 80 00 00 00 00 00 00 00 18446744073709551616.000000
    elmt 131:
        src = ff ff ff ff ff ff ff e0 18446744073709551584
        dst = 00 00 40 3e ff ff ff ff ff ff ff e0 18446744073709551584.000000
        ans = 00 00 40 3f 80 00 00 00 00 00 00 00 18446744073709551616.000000
    elmt 132:
        src = ff ff ff ff ff ff ff c0 18446744073709551552
        dst = 00 00 40 3e ff ff ff ff ff ff ff c0 18446744073709551552.000000
        ans = 00 00 40 3f 80 00 00 00 00 00 00 00 18446744073709551616.000000
    elmt 133:
        src = ff ff ff ff ff ff ff 80 18446744073709551488
        dst = 00 00 40 3e ff ff ff ff ff ff ff 80 18446744073709551488.000000
        ans = 00 00 40 3f 80 00 00 00 00 00 00 00 18446744073709551616.000000
    elmt 134:
        src = ff ff ff ff ff ff ff 00 18446744073709551360
        dst = 00 00 40 3e ff ff ff ff ff ff ff 00 18446744073709551360.000000
        ans = 00 00 40 3f 80 00 00 00 00 00 00 00 18446744073709551616.000000
    elmt 135:
        src = ff ff ff ff ff ff fe 00 18446744073709551104
        dst = 00 00 40 3e ff ff ff ff ff ff fe 00 18446744073709551104.000000
        ans = 00 00 40 3f 80 00 00 00 00 00 00 00 18446744073709551616.000000
    elmt 136:
        src = ff ff ff ff ff ff fc 00 18446744073709550592
        dst = 00 00 40 3e ff ff ff ff ff ff fc 00 18446744073709550592.000000
        ans = 00 00 40 3f 80 00 00 00 00 00 00 00 18446744073709551616.000000
***** 12 FAILURES! *****
Command exited with non-zero status 1
----------------------------------------------------

other platforms where this happen ?

Regards
Marco

Marco,

You're probably right. It's a rounding issue. What system and compiler were you using? I'll need the output from the configure and the src/H5Tinit.c file from your build directory to look at it. Thanks.

Ray

Marco Atzeri wrote:

···

I presume it is a rounding issue

-------------------------------------------------------
Testing soft unsigned long long -> long double conversions *FAILED*
    elmt 126:
        src = ff ff ff ff ff ff ff ff 18446744073709551615
        dst = 00 00 40 3e ff ff ff ff ff ff ff ff 18446744073709551615.000000
        ans = 00 00 40 3f 80 00 00 00 00 00 00 00 18446744073709551616.000000
    elmt 127:
        src = ff ff ff ff ff ff ff fe 18446744073709551614
        dst = 00 00 40 3e ff ff ff ff ff ff ff fe 18446744073709551614.000000
        ans = 00 00 40 3f 80 00 00 00 00 00 00 00 18446744073709551616.000000
    elmt 128:
        src = ff ff ff ff ff ff ff fc 18446744073709551612
        dst = 00 00 40 3e ff ff ff ff ff ff ff fc 18446744073709551612.000000
        ans = 00 00 40 3f 80 00 00 00 00 00 00 00 18446744073709551616.000000
    elmt 129:
        src = ff ff ff ff ff ff ff f8 18446744073709551608
        dst = 00 00 40 3e ff ff ff ff ff ff ff f8 18446744073709551608.000000
        ans = 00 00 40 3f 80 00 00 00 00 00 00 00 18446744073709551616.000000
    elmt 130:
        src = ff ff ff ff ff ff ff f0 18446744073709551600
        dst = 00 00 40 3e ff ff ff ff ff ff ff f0 18446744073709551600.000000
        ans = 00 00 40 3f 80 00 00 00 00 00 00 00 18446744073709551616.000000
    elmt 131:
        src = ff ff ff ff ff ff ff e0 18446744073709551584
        dst = 00 00 40 3e ff ff ff ff ff ff ff e0 18446744073709551584.000000
        ans = 00 00 40 3f 80 00 00 00 00 00 00 00 18446744073709551616.000000
    elmt 132:
        src = ff ff ff ff ff ff ff c0 18446744073709551552
        dst = 00 00 40 3e ff ff ff ff ff ff ff c0 18446744073709551552.000000
        ans = 00 00 40 3f 80 00 00 00 00 00 00 00 18446744073709551616.000000
    elmt 133:
        src = ff ff ff ff ff ff ff 80 18446744073709551488
        dst = 00 00 40 3e ff ff ff ff ff ff ff 80 18446744073709551488.000000
        ans = 00 00 40 3f 80 00 00 00 00 00 00 00 18446744073709551616.000000
    elmt 134:
        src = ff ff ff ff ff ff ff 00 18446744073709551360
        dst = 00 00 40 3e ff ff ff ff ff ff ff 00 18446744073709551360.000000
        ans = 00 00 40 3f 80 00 00 00 00 00 00 00 18446744073709551616.000000
    elmt 135:
        src = ff ff ff ff ff ff fe 00 18446744073709551104
        dst = 00 00 40 3e ff ff ff ff ff ff fe 00 18446744073709551104.000000
        ans = 00 00 40 3f 80 00 00 00 00 00 00 00 18446744073709551616.000000
    elmt 136:
        src = ff ff ff ff ff ff fc 00 18446744073709550592
        dst = 00 00 40 3e ff ff ff ff ff ff fc 00 18446744073709550592.000000
        ans = 00 00 40 3f 80 00 00 00 00 00 00 00 18446744073709551616.000000
***** 12 FAILURES! *****
Command exited with non-zero status 1
----------------------------------------------------

other platforms where this happen ?

Regards
Marco

_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@hdfgroup.org
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org