[U-Boot] [PATCH 04/10] Use uint64_t for time types

Simon Glass sjg at chromium.org
Mon Dec 15 19:38:37 CET 2014


Hi Masahiro,

On 15 December 2014 at 09:55, Masahiro YAMADA <yamada.m at jp.panasonic.com> wrote:
> Hi Simon,
>
>
> 2014-10-15 19:38 GMT+09:00 Simon Glass <sjg at chromium.org>:
>> Unfortunately 'unsigned long long' and 'uint64_t' are not necessarily
>> compatible on 64-bit machines. Use the correct typedef instead of
>> writing the supposed type out in full.
>
> I doubt this statement.
>
> I think "unsigned long long" always has 64bit width.
>
> (C specification guarantees that the width of "unsigned long long"
> is greater or equal to 64 bit)
>
> Could you tell me which toolchain violates it?

Some compilers use 'unsigned long' and some use 'unsigned long long'.
I think that is the core of the problem.

We don't have a problem with unsigned long long not being at least
64-bit. I wonder whether some toolchains use 128-bit for this?

Regards,
Simon


More information about the U-Boot mailing list