News for hackers. Stuff that matters.
Re:Implementing Cosine in C from Scratch (2020) by jhgb on Tuesday March 29, 2022 @04:31PM (#30847979)
The question is if you wouldn't be better served with double-doubles today. You get ~100 bits of mantissa AND you can still vectorize your computations.
Re:Implementing Cosine in C from Scratch (2020) by enriquto on Tuesday March 29, 2022 @04:37PM (#30848037)
Sure. There should be a gcc flag to make "long double" become quadruple precision.

The thing is, my first programming language was x86 assembler and the fpu was the funniest part. Spent weeks as a teenager writing almost pure 8087 code. I have a lot of emotional investment in that tiny rolling stack of extended precision floats.

Re:Implementing Cosine in C from Scratch (2020) by colejohnson66 on Tuesday March 29, 2022 @05:00PM (#30848297)
How is "quad floating point" implemented on x86? Is it software emulation?