Advertisement · 728 × 90
#
Hashtag
#BitFields
Advertisement · 728 × 90
Bitfield Pitfalls | OS/2 Museum

“Bitfield Pitfalls”, Michal Necasek, OS/2 Museum (www.os2museum.com/wp/bitfield-...).

Via HN: news.ycombinator.com/item?id=4746...

On Lobsters: lobste.rs/s/xtue97/bit...

#C #Programming #BitFields #Gotchas #C89 #C11 #Bits #SystemsProgramming #Compilers

0 0 0 0
Preview
Bit Masking Made Easy with .NET Enum Flags C# enums in conjunction with FlagsAttribute can be a powerful tool when working with bitfields, helping to reduce cognitive load while also making it clear what bits in the mask are being changed.

#csharp enums in conjunction with the Flags attribute can be a powerful tool when working with #bitfields.

Discover two examples of how I used them to make my 6502 microprocessor #emulator code easier to reason about:

markjames.dev/blog/bit-mas...

#dotnet

1 0 0 0
A screenshot of Pattern Explorer showing a mathematical expression rendered as a pattern, with different shades of gray assigned to each pixel depending of the value at each coordinate

A screenshot of Pattern Explorer showing a mathematical expression rendered as a pattern, with different shades of gray assigned to each pixel depending of the value at each coordinate

Pattern Explorer by reventlov - plork.net - a toy for drawing and exploring integer arithmetic patterns

#math #bitfields

1 0 1 0