bearophile wrote:
Walter Bright:
I agree. The only reason to use float or double is to save on storage.

A little D1 program, that I compile with LDC:

Here's the only point in the code where there's difference:

FP = double:
        fstpl   16(%esp)
        movsd   24(%esp), %xmm0
        mulsd   16(%esp), %xmm0
        movsd   %xmm0, 4(%esp)

FP = real:
        fldt    16(%esp)
        fmulp   %st(1)
        fstpt   4(%esp)


If you use the real type you are forced to use X86 FPU, that is very 
inefficient if used by LDC.

It looks OK to me in this example.

Reply via email to