home.social

#bitfields — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #bitfields, aggregated by home.social.

  1. Bit Fields trong C: Giúp tiết kiệm bộ nhớ bằng cách đóng gói bit trong struct, nhưng bố cục phụ thuộc trình biên dịch → Không đảm bảo tính di động.
    Tuyệt đối không dùng cho thanh ghi phần cứng! Ưu tiên:
    • Bit Fields: cờ nội bộ, state machine (dễ đọc, nhóm cờ)
    • Bit Mask: phần cứng/giao thức (kiểm soát bit chính xác)
    #LậpTrìnhC #BitFields #EmbeddedSystems #Programming #ViMạch #C

    dev.to/amanprasad/bit-fields-i

  2. @bug a u2; or an s2, if it's signed.

    A byte is a u8, a nibble :blobcatcookienom: is a u4.

    A a dword is a u32 and a qword is a u64... and so on.

    Simple, unambiguous, and it even tells you whether it's signed or unsigned... but it's not cute :blobfoxboopcute:, I grant you.

    I think it's unlikely to be confused with the high-altitude plane ✈️ or the rock band :blobcatcool:, given context 😁

  3. @bug a u2; or an s2, if it's signed.

    A byte is a u8, a nibble :blobcatcookienom: is a u4.

    A a dword is a u32 and a qword is a u64... and so on.

    Simple, unambiguous, and it even tells you whether it's signed or unsigned... but it's not cute :blobfoxboopcute:, I grant you.

    I think it's unlikely to be confused with the high-altitude plane ✈️ or the rock band :blobcatcool:, given context 😁

    #Types #BitFields

  4. @bug a u2; or an s2, if it's signed.

    A byte is a u8, a nibble :blobcatcookienom: is a u4.

    A a dword is a u32 and a qword is a u64... and so on.

    Simple, unambiguous, and it even tells you whether it's signed or unsigned... but it's not cute :blobfoxboopcute:, I grant you.

    I think it's unlikely to be confused with the high-altitude plane ✈️ or the rock band :blobcatcool:, given context 😁

    #Types #BitFields

  5. @bug a u2; or an s2, if it's signed.

    A byte is a u8, a nibble :blobcatcookienom: is a u4.

    A a dword is a u32 and a qword is a u64... and so on.

    Simple, unambiguous, and it even tells you whether it's signed or unsigned... but it's not cute :blobfoxboopcute:, I grant you.

    I think it's unlikely to be confused with the high-altitude plane ✈️ or the rock band :blobcatcool:, given context 😁

    #Types #BitFields

  6. @bug a u2; or an s2, if it's signed.

    A byte is a u8, a nibble :blobcatcookienom: is a u4.

    A a dword is a u32 and a qword is a u64... and so on.

    Simple, unambiguous, and it even tells you whether it's signed or unsigned... but it's not cute :blobfoxboopcute:, I grant you.

    I think it's unlikely to be confused with the high-altitude plane ✈️ or the rock band :blobcatcool:, given context 😁

    #Types #BitFields