Searched hist:203343 (Results 1 - 2 of 2) sorted by relevance

/freebsd-9.3-release/sys/netinet/
H A Dip.hdiff 203343 Mon Feb 01 12:20:40 MST 2010 luigi use u_char instead of u_int for short bitfields.

For our compiler the two constructs are completely equivalent, but
some compilers (including MSC and tcc) use the base type for alignment,
which in the cases touched here result in aligning the bitfields
to 32 bit instead of the 8 bit that is meant here.

Note that almost all other headers where small bitfields
are used have u_int8_t instead of u_int.

MFC after: 3 days
H A Dtcp.hdiff 203343 Mon Feb 01 12:20:40 MST 2010 luigi use u_char instead of u_int for short bitfields.

For our compiler the two constructs are completely equivalent, but
some compilers (including MSC and tcc) use the base type for alignment,
which in the cases touched here result in aligning the bitfields
to 32 bit instead of the 8 bit that is meant here.

Note that almost all other headers where small bitfields
are used have u_int8_t instead of u_int.

MFC after: 3 days

Completed in 112 milliseconds