[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Nano-devel] [PATCH] Optimize the order of struct members
From: |
Eitan Adler |
Subject: |
Re: [Nano-devel] [PATCH] Optimize the order of struct members |
Date: |
Thu, 23 Aug 2018 18:27:54 -0700 |
On Thu, 23 Aug 2018 at 16:20, Brand Huntsman <address@hidden> wrote:
> int is arch word size (32bits on 32bit archs and 64bits on 64bit archs).
> Apparently rex_flags is only used for case and could be stored in 8bits on
> all archs.
This is not guaranteed by the C standard. POSIX does not mandate any
larger size either. The minimum range is -(2^15 - 1) to 2^15-1. It
might be the case that int is commonly larger, but this can not be
relied on in portable software.
--
Eitan Adler