diff --git a/labs/memory_bound/data_packing/solution.h b/labs/memory_bound/data_packing/solution.h index 15297e6a..75cc7ebe 100644 --- a/labs/memory_bound/data_packing/solution.h +++ b/labs/memory_bound/data_packing/solution.h @@ -11,15 +11,20 @@ constexpr int maxRandom = 100; // FIXME: this data structure can be reduced in size struct S { - long long l; - double d; - int i; - short s; - bool b; + float d; + long long l:16; + int i:8; + short s:7; + bool b:1; bool operator<(const S &s) const { return this->i < s.i; } }; +template +class TD; + +//TD td; + void init(std::array &arr); S create_entry(int first_value, int second_value); void solution(std::array &arr);