this post was submitted on 21 Jan 2024
787 points (93.4% liked)

Programmer Humor

32472 readers
564 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[โ€“] [email protected] 30 points 9 months ago (11 children)

But what if I want a union struct to quickly interpret floats as ints and vice versa! I need my C hacks!

[โ€“] [email protected] 1 points 9 months ago

Or if your pulling 4 byte data from an AtoD converter and it's ordered 2, 3, 0, 1 for a fixed point value that you need to convert to a standard float at an extremely high rate or else the ring buffer will fill and you'll start losing data.

That code review was a good time.

load more comments (10 replies)