Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
tsoc
openmm
Commits
454f9c52
Commit
454f9c52
authored
Jun 07, 2010
by
Peter Eastman
Browse files
Minor optimization to evaluating custom expressions
parent
c799ea08
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
platforms/opencl/src/OpenCLExpressionUtilities.cpp
platforms/opencl/src/OpenCLExpressionUtilities.cpp
+1
-1
No files found.
platforms/opencl/src/OpenCLExpressionUtilities.cpp
View file @
454f9c52
...
...
@@ -216,7 +216,7 @@ void OpenCLExpressionUtilities::processExpression(stringstream& out, const Expre
break
;
}
case
Operation
::
RECIPROCAL
:
out
<<
"
1.0f/
"
<<
getTempName
(
node
.
getChildren
()[
0
],
temps
);
out
<<
"
RECIP(
"
<<
getTempName
(
node
.
getChildren
()[
0
],
temps
)
<<
")"
;
break
;
case
Operation
::
ADD_CONSTANT
:
out
<<
doubleToString
(
dynamic_cast
<
const
Operation
::
AddConstant
*>
(
&
node
.
getOperation
())
->
getValue
())
<<
"+"
<<
getTempName
(
node
.
getChildren
()[
0
],
temps
);
...
...
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