C
Carl Rosenberger
Hi all,
I need the above two methods to convert double to long and back
on the CompactFramework, preferrably with good performance.
I really like the idea of using a StructLayout with two members
at the same position that I found here:
Apparently the FieldOffset attribute does not seem to be available
on CF. I find that quite strange, since the documentation states
that LayoutKind.Explicit is supported.
Any ideas, options, hints?
Fast bitshifting code to convert a double to long and back would
be a great help also.
Thanks in advance.
Kind regards,
Carl
I need the above two methods to convert double to long and back
on the CompactFramework, preferrably with good performance.
I really like the idea of using a StructLayout with two members
at the same position that I found here:
Apparently the FieldOffset attribute does not seem to be available
on CF. I find that quite strange, since the documentation states
that LayoutKind.Explicit is supported.
Any ideas, options, hints?
Fast bitshifting code to convert a double to long and back would
be a great help also.
Thanks in advance.
Kind regards,
Carl