# Bit-shift left

**URL:** <https://ziggit.dev/t/bit-shift-left/3467>\
**Category:** Help\
**Tags:** language\
**Created:** [March 5, 2024, 7:08am UTC](https://ziggit.dev/t/bit-shift-left/3467 "2024-03-05T07:08:03Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![dee0xeed](https://ziggit.dev/letter_avatar_proxy/v4/letter/d/3ab097/32.png) [@dee0xeed](https://ziggit.dev/u/dee0xeed)\
**Post date:** [March 5, 2024, 6:39pm UTC](https://ziggit.dev/t/bit-shift-left/3467/7 "2024-03-05T18:39:17Z")

</div>

> [@jmcaine](#):
>
> “…have a type with log2 number of bits as `a`”

When I run into this for the very first time, I also did not understand at all what the compiler wants with me 🙂 Btw, see also [this comment](https://ziggit.dev/t/understanding-arbitrary-bit-width-integers/2028/3) and the entire topic for the arbitrary width integers, it’s a really cool feature of Zig.

---

_[View the full topic](https://ziggit.dev/t/bit-shift-left/3467)._
