projects
/
platform
/
upstream
/
cmake.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
01453006297b89b3933988e755bf9bc90537915e
[platform/upstream/cmake.git]
/
Help
/
guide
/
tutorial
/
Step9
/
MathFunctions
/
MathFunctions.cxx
1
2
#include "MathFunctions.h"
3
4
#include <cmath>
5
6
#ifdef USE_MYMATH
7
# include "mysqrt.h"
8
#endif
9
10
namespace mathfunctions {
11
double sqrt(double x)
12
{
13
#ifdef USE_MYMATH
14
return detail::mysqrt(x);
15
#else
16
return std::sqrt(x);
17
#endif
18
}
19
}