About 50 results
Open links in new tab
  1. binary - How many bits are there in a nibble? - Stack Overflow

    Sep 20, 2016 · A nibble (often, nybble) is the computing term for a four-bit aggregation, or half an octet (an octet being an 8-bit byte).

  2. Using nibbles (4 bits variables) in windows C/C++

    May 14, 2009 · I'm programming network headers and a lot of protocols use 4 bits fields. Is there a convenient type I can use to represent this information? The smallest type I've found is a BYTE. I …

  3. Reading/Writing Nibbles (without bit fields) in C/C++

    Jun 24, 2010 · Is there an easy way to read/write a nibble in a byte without using bit fields? I'll always need to read both nibbles, but will need to write each nibble individually. Thanks!

  4. php - High nibble and low nibble what are they? - Stack Overflow

    May 27, 2012 · 19 Nibble is half a byte (0-15, or one hex digit). Low nibble are the bits 0-3; high nibble are bits 4-7.

  5. How to swap first and last nibbles in given integer [32 bits]

    Jan 25, 2023 · Some would consider the first nibble as the least significant nibble. Whatever is first or last makes little difference here as they are swapped.

  6. c++ - Nibble shifting - Stack Overflow

    Sep 22, 2011 · I was working on an encryption algorithm and I wonder how I can change the following code into something simpler and how to reverse this code. typedef struct { unsigned low : 4; unsigned ...

  7. bit manipulation - How to swap nibbles in C? - Stack Overflow

    Feb 11, 2020 · How to swap the nibble bit positions of a number? For example: 534, convert it into binary, the rightmost 4 bits has to be interchanged with the leftmost 4 bits and then make a new …

  8. c - Cast variable to nibble in struct - Stack Overflow

    Dec 20, 2023 · nibble_struct.nibble_1 = nibble_to_assign & 0xFu; But please note that neither structs nor bit-fields are particularly suitable or recommended for modelling hardware or data protocols.

  9. c - how to replace given nibbles with another set of nibbles in an ...

    Dec 23, 2016 · Nibble has 4 bits, and according to your indexing scheme, the zeroth nibble is represented by least significant bits at positions 0-3, the first nibble is represented by least significant …

  10. python - Convert a 4 bit binary nibble as a string into its hex ...

    Dec 14, 2022 · Write a function that takes as an argument, a 4 bit binary nibble represented as a string, and returns its hex equivalent value as a String Use that function to write a program that accepts an …