mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-09 07:39:47 -05:00
f2ddedfa58
Latest material from data.kitware.com -> Collections -> Courses -> CMake.
19 lines
230 B
C++
19 lines
230 B
C++
|
|
#include "MathFunctions.h"
|
|
#include <cmath>
|
|
|
|
#ifdef USE_MYMATH
|
|
# include "mysqrt.h"
|
|
#endif
|
|
|
|
namespace mathfunctions {
|
|
double sqrt(double x)
|
|
{
|
|
#ifdef USE_MYMATH
|
|
return detail::mysqrt(x);
|
|
#else
|
|
return std::sqrt(x);
|
|
#endif
|
|
}
|
|
}
|