Follow @Openwall on Twitter for new release announcements and other news
[<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

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.