Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Fri, 01 Mar 2013 00:03:27 -0300
From: Claudio André <>
Subject: Re: sizeof(unsigned long)

Em 28-02-2013 23:37, magnum escreveu:
> Claudio,
> In both opencl_sha256.h and opencl_sha512.h, you define uint64_t like this:
> #define uint64_t unsigned long  //Tip: unsigned long long int failed on compile (AMD).
> Unsigned long will fail on most 32-bit builds and even some 64-bit ones, because it will be just 32-bits. If you need a workaround, this is not sufficient. OTOH if uint32_t is enough, you should obviously use that instead.
> Apparently some people are very fond of 32-bit builds so this must be fixed. Are you sure using long longs caused failures? Sounds weird to me.
Well (it should be C99 compliant):
Build log: "/tmp/", line 37: error: the type "long long" is 

I care about it only inside OpenCL code. I will try to think about it 


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.