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?
Re:Implementing Cosine in C from Scratch (2020)
by chrisseaton on Tuesday March 29, 2022 @05:07PM
(#30848375)
You're selectively quoting me - I said it's 'legacy emulated'. It's emulated using very long-form microcode, so basically emulated in software. I didn't say it was simply 'legacy'.
Re:Implementing Cosine in C from Scratch (2020)
by eyelidlessness on Tuesday March 29, 2022 @08:14PM
(#30850036)
I’m completely out of my depth reading through these comments so I don’t have much of value to contribute, but I do think I can gently say I think the selective quoting was harmless, but deliberate to fit the shape of a harmless joke’s setup. I don’t think there was any intent to misrepresent your more salient information.
you'll pry my long doubles from my cold, dead hands!