Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
ogs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Dmitri Naumov
ogs
Commits
08cc4cff
Commit
08cc4cff
authored
8 years ago
by
Christoph Lehmann
Browse files
Options
Downloads
Patches
Plain Diff
[MaL] removed custom pow() implementation
parent
47db5dd1
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
MathLib/MathTools.h
+0
-24
0 additions, 24 deletions
MathLib/MathTools.h
with
0 additions
and
24 deletions
MathLib/MathTools.h
+
0
−
24
View file @
08cc4cff
...
...
@@ -121,30 +121,6 @@ double sqrDist(const double* p0, const double* p1)
*/
double
getAngle
(
const
double
p0
[
3
],
const
double
p1
[
3
],
const
double
p2
[
3
]);
/**
* Template metaprogramming, compile-time version of pow() for integral
* exponents.
*/
#ifdef WIN32
template
<
typename
T
,
T
B
,
unsigned
E
>
struct
POW
{
static
T
const
value
=
B
*
POW
<
T
,
B
,
E
-
1
>::
value
;
};
template
<
typename
T
,
T
B
>
struct
POW
<
T
,
B
,
0
>
{
static
T
const
value
=
1
;
};
#else // WIN32
template
<
typename
T
>
inline
constexpr
T
pow
(
T
const
x
,
unsigned
const
y
)
{
return
(
y
==
0
)
?
1
:
x
*
pow
(
x
,
y
-
1
);
}
#endif // WIN32
}
// namespace
#endif
/* MATHTOOLS_H_ */
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment