side_field_enum_bitmap("bit_31", &myenum_bitmap, side_elem(side_type_u32(side_attr_list()))),
side_field_enum_bitmap("bit_63", &myenum_bitmap, side_elem(side_type_u64(side_attr_list()))),
side_field_enum_bitmap("bits_1+63", &myenum_bitmap, side_elem(side_type_u64(side_attr_list()))),
+ side_field_enum_bitmap("byte_bit_2", &myenum_bitmap, side_elem(side_type_byte(side_attr_list()))),
side_field_enum_bitmap("bit_159", &myenum_bitmap,
side_elem(side_type_array(side_elem(side_type_u32(side_attr_list())), 5, side_attr_list()))),
side_field_enum_bitmap("bit_159", &myenum_bitmap,
side_arg_u32(1 << 31),
side_arg_u64(1ULL << 63),
side_arg_u64((1ULL << 1) | (1ULL << 63)),
+ side_arg_byte(1 << 2),
side_arg_array(&myarray),
side_arg_vla(&myarray),
)
uint32_t stride_bit;
switch (elem_type->type) {
- case SIDE_TYPE_U8:
+ case SIDE_TYPE_U8: /* Fall-through */
+ case SIDE_TYPE_BYTE:
stride_bit = 8;
break;
case SIDE_TYPE_U16:
switch (elem_type->type) {
case SIDE_TYPE_U8: /* Fall-through */
+ case SIDE_TYPE_BYTE: /* Fall-through */
case SIDE_TYPE_U16: /* Fall-through */
case SIDE_TYPE_U32: /* Fall-through */
- case SIDE_TYPE_U64: /* Fall-through */
+ case SIDE_TYPE_U64:
stride_bit = enum_elem_type_to_stride(elem_type);
array_item = item;
nr_items = 1;
case SIDE_TYPE_ENUM_BITMAP:
switch (item->type) {
case SIDE_TYPE_U8:
+ case SIDE_TYPE_BYTE:
case SIDE_TYPE_U16:
case SIDE_TYPE_U32:
case SIDE_TYPE_U64: