News for hackers. Stuff that matters.
Re:C-style: My favorite C programming practices by sdk77 on Monday May 20, 2024 @06:39AM (#40414081)
There are popular embedded platforms like STM32 that don't have hardware double support, but do have hardware float support. Using double will cause software double support to be linked and slow down your firmware significantly.
Re:C-style: My favorite C programming practices by AnimalMuppet on Monday May 20, 2024 @08:46AM (#40414880)
OK, but if you're writing for that kind of platform, you know it. Don't use double there? Sure. "Don't use double on non-embedded code just because such platforms exist" doesn't make sense to me.

Sure, my code could maybe run on an embedded platform someday. But the person importing it probably has an editor that can do a search and replace...