space-wizards / CannyFastMath

Faster implementations of various common math operations, and harmless placeholders for math operations that just forward to the originals.
MIT License
1 stars 1 forks source link

Provide an env var to disable the library and fall back to System.Math functions #5

Open PJB3005 opened 4 years ago

PJB3005 commented 4 years ago

May make it easier to debug stuff in case of worst-case bugs like #3. The env var can be read in a static constructor so the JIT can inline the bool check during optimization.