Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
amdis
amdis-core
Commits
fcc6632d
Commit
fcc6632d
authored
Jul 27, 2020
by
Praetorius, Simon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cleanup max and min in Math
parent
991acbfc
Pipeline
#4509
failed with stage
in 14 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
amdis/common/Math.hpp
amdis/common/Math.hpp
+4
-4
No files found.
amdis/common/Math.hpp
View file @
fcc6632d
...
...
@@ -43,8 +43,8 @@ namespace AMDiS
template
<
class
T0
,
class
T1
>
constexpr
auto
min
(
T0
a
,
T1
b
)
{
using
T
=
std
::
co
nditional_t
<
(
sizeof
(
T0
)
>
sizeof
(
T1
)),
T0
,
T1
>
;
return
a
<
b
?
T
(
a
)
:
T
(
b
)
;
using
T
=
std
::
co
mmon_type_t
<
T0
,
T1
>
;
return
T
(
a
)
<
T
(
b
)
?
a
:
b
;
}
template
<
class
T0
>
...
...
@@ -69,8 +69,8 @@ namespace AMDiS
template
<
class
T0
,
class
T1
>
constexpr
auto
max
(
T0
a
,
T1
b
)
{
using
T
=
std
::
co
nditional_t
<
(
sizeof
(
T0
)
>
sizeof
(
T1
)),
T0
,
T1
>
;
return
a
<
b
?
T
(
b
)
:
T
(
a
)
;
using
T
=
std
::
co
mmon_type_t
<
T0
,
T1
>
;
return
T
(
a
)
<
T
(
b
)
?
b
:
a
;
}
template
<
class
T0
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment