mirror of
https://github.com/reactos/CMake.git
synced 2025-05-15 11:05:56 +00:00

Run the `clang-format.bash` script to update our C and C++ code to a new include order `.clang-format`. Use `clang-format` version 6.0.
20 lines
231 B
C++
20 lines
231 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
|
|
}
|
|
}
|