cgccc-preprocessorplaystation3

Make a cosine table with the gcc preprocessor


I wish to make a cosine table at compile time. Is there a way to do this without hard coding anything?


Solution

  • Why not hardcode it? I am not aware of any changes in the result of the cosine function that they are planning, well not for another 100 years or so.