Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
MIGraphX
Commits
883d4903
Commit
883d4903
authored
Jan 12, 2023
by
charlie
Browse files
simplify opt check
parent
54ccaead
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
src/shape.cpp
src/shape.cpp
+4
-1
No files found.
src/shape.cpp
View file @
883d4903
...
@@ -508,7 +508,10 @@ shape::dynamic_dimension& shape::dynamic_dimension::operator+=(const std::size_t
...
@@ -508,7 +508,10 @@ shape::dynamic_dimension& shape::dynamic_dimension::operator+=(const std::size_t
{
{
this
->
min
+=
x
;
this
->
min
+=
x
;
this
->
max
+=
x
;
this
->
max
+=
x
;
this
->
opt
==
0
?
this
->
opt
=
0
:
this
->
opt
+=
x
;
if
(
this
->
opt
!=
0
)
{
this
->
opt
+=
x
;
};
return
*
this
;
return
*
this
;
}
}
...
...
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