Oh, does managed code not support absolute? Didn't know, haven't done much
managed so far...
Anyway, this is still more performant than using a string:
Result:=
(Value and $000000FF shl 24) or
(Value and $0000FF00 shl 8) or
(Value and $00FF0000 shr 8) or
(Value and $FF000000 shr 24);
On Wed, Jul 9, 2008 at 10:44 AM, Lukas Gebauer <[EMAIL PROTECTED]> wrote:
> > I had a look at the SwapBytes function in synautil,
> > and I think this alternative compiles into less instructions:
>
> Wel, and what about managed code? Anyway, swapbytes is not used in
> time-critical code - a few additional instructions are not any
> problem.
>
> --
> Lukas Gebauer.
>
> E-mail: [EMAIL PROTECTED]
> http://synapse.ararat.cz/ - Ararat Synapse - TCP/IP Lib.
>
>
> -------------------------------------------------------------------------
> Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
> Studies have shown that voting for your favorite open source project,
> along with a healthy diet, reduces your potential for chronic lameness
> and boredom. Vote Now at http://www.sourceforge.net/community/cca08
> _______________________________________________
> synalist-public mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/synalist-public
>
>
-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
synalist-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synalist-public