[ovs-dev] [PATCH] lib/flow.h: Improve struct miniflow comment and definition.
jrajahalme at nicira.com
Tue Aug 26 23:04:09 UTC 2014
On Aug 26, 2014, at 3:53 PM, Ben Pfaff <blp at nicira.com> wrote:
> On Tue, Aug 26, 2014 at 03:42:33PM -0700, Jarno Rajahalme wrote:
>> Finally, use change the storage type of 'values_inline' to uint8_t, as
>> uint64_t looks kind of wide for a boolean, even though we intend the
>> bit be carved out from the uint64_t where 'map' resides.
> It can't be type "bool"?
Declare bit-fields to be type "unsigned int" or "signed int". Do
*not* declare bit-fields of type "int": C89 allows these to be either
signed or unsigned according to the compiler's whim. (A 1-bit
bit-field of type "int" may have a range of -1...0!) Do not declare
bit-fields of type _Bool or enum or any other type, because these are
More information about the dev