Openwall GNU/*/Linux - a small security-enhanced Linux distro for servers
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Sun, 6 May 2012 10:43:00 -0500
From: "jfoug" <jfoug@....net>
To: <john-dev@...ts.openwall.com>
Subject: RE: OpenCL SWAP64 on 7970

If n already is a ulong, then the proper casting would be:

 ((n & ((ulong)0xff00UL)) << 24)


Another option may be:

((n<<24)&0xff00000000UL)

>-----Original Message-----
>
>Yes. I have even tried (ulong)((n) & 0xff00UL) << 24), the result is
>also 0.
>
>myrice

Powered by blists - more mailing lists

Your e-mail address:

Powered by Openwall GNU/*/Linux - Powered by OpenVZ