[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [fpu] conversion
--- Damjan Lampret <damjanlampret@yahoo.com> wrote:
> Hi,
>
> I have two questions:
>
> - how hard is to add conversion from singleword
> (32bit) 2's complement
> integer to IEEE754 FP?
I do not think this will be problematic, but you are
going to loose some digits if integer uses the 32-bit
(32-bit int to 23 bit FP fraction)
it will be as a normalization procedure.
> - how hard is to add conversion from FP to integer
> (opposite direction
> than above)?
>
I am not sure about this but may be we can use the
same rounding core
> In case it is too hard this can also be generated by
> GCC (I really
> wonder what is conversion insns vs FPcalc insns
> ratio (of course
> depends upon application but still...).
>
> regards,
> Damjan
>
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Mail – Free email you can access from
> anywhere!
> http://mail.yahoo.com/
__________________________________________________
Do You Yahoo!?
Yahoo! Mail – Free email you can access from anywhere!
http://mail.yahoo.com/