[[PATCH RFC 2] 02/63] Y2038: add function __difftime64
Albert ARIBAUD
albert.aribaud@3adev.fr
Wed May 2 11:26:00 GMT 2018
Hi Florian,
On Wed, 2 May 2018 09:46:19 +0200, Florian Weimer <fweimer@redhat.com>
wrote :
> On 05/02/2018 09:22 AM, Albert ARIBAUD wrote:
> > IOW: does the set of 32-bit architectures on which we will use
> > 64-bit with 32-bit time need all the complexities of current difftime?
> > I'm thinking for instance about padding bits.
>
> Yes, you can simplify the code if you want, assuming that time_t doesn't
> have padding bits, and even hard-code the matching unsigned type.
Watch out __time64_t is signed, not unsigned (if it were unsigned, that
would really simplify things, and we could just use subtraction).
> Thanks,
> Florian
Cordialement,
Albert ARIBAUD
3ADEV
More information about the Libc-alpha
mailing list