| 8508 | |
| 8509 | |
| 8510 | static size_t bitCeil(size_t x) |
| 8511 | { |
| 8512 | if (x <= 1) |
| 8513 | return 1; |
| 8514 | --x; |
| 8515 | x |= x >> 1; |
| 8516 | x |= x >> 2; |
| 8517 | x |= x >> 4; |
| 8518 | x |= x >> 8; |
| 8519 | x |= x >> 16; |
| 8520 | x |= x >> 32; |
| 8521 | return x + 1; |
| 8522 | } |
| 8523 | |
| 8524 | static size_t getAlignOf(const ValueType& vt, const Settings& settings, ValueType::Accuracy accuracy, ValueType::SizeOf sizeOf, int maxRecursion = 0) |
| 8525 | { |