About 5,980,000 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 …

  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. .net - How can you nibble (nybble) bytes in C#? - Stack Overflow

    Nov 6, 2022 · I am looking to learn how to get two nibbles (high and low) from a byte using C# and how to assemble two nibbles back to a byte. I am using C# and .NET 4.0 if that helps with …

  5. C - Copying nibbles from one byte to another to generate a …

    Dec 23, 2018 · Note that in C char may be signed (e.g. maybe a signed octet with range -128 to +127); and this makes it messy to modify due to uncertainty (e.g. behaviour of "right shift of …

  6. 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.

  7. 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 …

  8. Is "half-byte" ever actually used as a term? - Stack Overflow

    Sep 28, 2013 · But: as already stated in the comments, when you cut a byte in half, dividing the upper and the lower 4 bits, each half is usually referred to as nibble. This thing probably has a …

  9. Is there any way that i can perform bit manipulation with pointers

    Jan 21, 2023 · Write a function that swaps the highest bits in each nibble of the byte pointed to by the pointer b. (i.e. 0bAxxxBxxx -> 0bBxxxAxxx). I have a predefined function with this …

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

    Dec 23, 2016 · A lot depends on how your flexible you are in accepting the "nibble list" index[4] in your case. You mentioned that you can replace anywhere from 0 to 8 nibbles. If you take your …