top | item 39634307

(no title)

deepthaw | 2 years ago

Ignorant question:

Given the ridiculous number of transistors and so on we can use in CPUs and GPUs nowadays how feasible is a relatively huge trig lookup table burned into rom?

discuss

order

zokier|2 years ago

There is huge number of 64bit floats and huge portion of those are between 0..pi/2.

aidenn0|2 years ago

A lookup table (for any function) that covered all values between 0 and 1 in single precision, would be ~4GB; there are approximately 1B values between 0 and 1, and the result of each value is 4 bytes.

Such a table for double-precision would be much, much larger.

bigbillheck|2 years ago

Seems like a terrible idea on latency grounds alone.