G
Gernot Frisch
I have a platform that does not store IEEE doubles, but swaps
upper/lower 4 bytes in comparison to x86. Anyway, I solved the problem
by converting my double to 32.32 fixed point like this:
inline sll dbl2sll(double dbl)
{
return (sll)(dbl * (double)(1LL<<32LL));
}
which, however is quite expensive, since the platform has no floating
point processor. Is there any faster way of doing this?
upper/lower 4 bytes in comparison to x86. Anyway, I solved the problem
by converting my double to 32.32 fixed point like this:
inline sll dbl2sll(double dbl)
{
return (sll)(dbl * (double)(1LL<<32LL));
}
which, however is quite expensive, since the platform has no floating
point processor. Is there any faster way of doing this?