Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tnl-dev
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
TNL
tnl-dev
Commits
e0f339aa
There was an error fetching the commit references. Please try again later.
Commit
e0f339aa
authored
7 years ago
by
Jakub Klinkovský
Browse files
Options
Downloads
Patches
Plain Diff
Fixed comment in Math.h
parent
ea07a8d9
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/TNL/Math.h
+2
-3
2 additions, 3 deletions
src/TNL/Math.h
with
2 additions
and
3 deletions
src/TNL/Math.h
+
2
−
3
View file @
e0f339aa
...
...
@@ -30,9 +30,8 @@ using both_integral_or_floating = typename std::conditional<
// 1. If both types are integral or floating-point, the larger type is selected.
// 2. If one type is integral and the other floating-point, the floating-point type is selected.
// This is necessary only due to the limitations of nvcc. Note that clang and gcc
// can handle automatic promotion using a single-type template, exactly like
// std::min and std::max are implemented in STL.
// Casting both arguments to the same type is necessary because std::min and std::max
// are implemented as a single-type template.
template
<
typename
T1
,
typename
T2
>
using
larger_type
=
typename
std
::
conditional
<
(
both_integral_or_floating
<
T1
,
T2
>::
value
&&
sizeof
(
T1
)
>=
sizeof
(
T2
)
)
||
...
...
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