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" <>
To: <>
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:


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

Powered by blists - more mailing lists

Your e-mail address:

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