diff --git a/test/gtx/gtx_fast_trigonometry.cpp b/test/gtx/gtx_fast_trigonometry.cpp index 0856dfc2..7b27cbf4 100644 --- a/test/gtx/gtx_fast_trigonometry.cpp +++ b/test/gtx/gtx_fast_trigonometry.cpp @@ -96,6 +96,27 @@ namespace fastAcos{ } } +namespace fastAsin{ + int perf() + { + const float begin = -glm::pi(); + const float end = glm::pi(); + float result = 0.f; + const std::clock_t timestamp1 = std::clock(); + for (float i = begin; i(time_fast)); + std::printf("asin Time %d clocks\n", static_cast(time_default)); + return time_fast < time_default ? 0 : 1; + } +} + int main() { @@ -105,6 +126,7 @@ int main() Error += ::fastSin::perf(); Error += ::fastTan::perf(); Error += ::fastAcos::perf(); + Error += ::fastAsin::perf(); return Error; }