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
2f2357f6
Commit
2f2357f6
authored
Sep 18, 2014
by
peastman
Browse files
Fixed an illegal memory access
parent
96b61389
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
370 additions
and
368 deletions
+370
-368
libraries/lepton/src/CompiledExpression.cpp
libraries/lepton/src/CompiledExpression.cpp
+370
-368
No files found.
libraries/lepton/src/CompiledExpression.cpp
View file @
2f2357f6
...
...
@@ -226,12 +226,14 @@ void CompiledExpression::generateJitCode() {
// Load constants into variables.
vector
<
X86XmmVar
>
constantVar
(
constants
.
size
());
if
(
constants
.
size
()
>
0
)
{
X86GpVar
constantsPointer
(
c
);
c
.
mov
(
constantsPointer
,
imm_ptr
(
&
constants
[
0
]));
for
(
int
i
=
0
;
i
<
(
constants
.
size
()
)
;
i
++
)
{
for
(
int
i
=
0
;
i
<
(
int
)
constants
.
size
();
i
++
)
{
constantVar
[
i
]
=
c
.
newXmmVar
(
kX86VarTypeXmmSd
);
c
.
movsd
(
constantVar
[
i
],
x86
::
ptr
(
constantsPointer
,
8
*
i
,
0
));
}
}
// Evaluate the operations.
...
...
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