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
2a97d8c9
"platforms/cpu/vscode:/vscode.git/clone" did not exist on "896413aa41c49e60fe68620757488650f5d9368e"
Commit
2a97d8c9
authored
Jul 16, 2020
by
peastman
Browse files
Workaround for bug in GCC 8 on PPC
parent
fd667c74
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
5 deletions
+11
-5
openmmapi/include/openmm/internal/vectorize_ppc.h
openmmapi/include/openmm/internal/vectorize_ppc.h
+11
-5
No files found.
openmmapi/include/openmm/internal/vectorize_ppc.h
View file @
2a97d8c9
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
* Biological Structures at Stanford, funded under the NIH Roadmap for *
* Biological Structures at Stanford, funded under the NIH Roadmap for *
* Medical Research, grant U54 GM072970. See https://simtk.org. *
* Medical Research, grant U54 GM072970. See https://simtk.org. *
* *
* *
* Portions copyright (c) 2013-20
18
Stanford University and the Authors. *
* Portions copyright (c) 2013-20
20
Stanford University and the Authors. *
* Authors: Peter Eastman, Heng Ma *
* Authors: Peter Eastman, Heng Ma *
* Contributors: *
* Contributors: *
* *
* *
...
@@ -66,7 +66,7 @@ public:
...
@@ -66,7 +66,7 @@ public:
}
}
fvec4
(
__m128
v
)
:
val
(
v
)
{}
fvec4
(
__m128
v
)
:
val
(
v
)
{}
fvec4
(
const
float
*
v
)
{
fvec4
(
const
float
*
v
)
{
val
=
*
(
(
__m128
*
)
v
)
;
val
=
(
__m128
)
{
v
[
0
],
v
[
1
],
v
[
2
],
v
[
3
]}
;
}
}
/**
/**
...
@@ -85,7 +85,10 @@ public:
...
@@ -85,7 +85,10 @@ public:
return
val
[
i
];
return
val
[
i
];
}
}
void
store
(
float
*
v
)
const
{
void
store
(
float
*
v
)
const
{
*
((
__m128
*
)
v
)
=
val
;
v
[
0
]
=
val
[
0
];
v
[
1
]
=
val
[
1
];
v
[
2
]
=
val
[
2
];
v
[
3
]
=
val
[
3
];
}
}
/**
/**
...
@@ -162,7 +165,7 @@ public:
...
@@ -162,7 +165,7 @@ public:
}
}
ivec4
(
__m128i
v
)
:
val
(
v
)
{}
ivec4
(
__m128i
v
)
:
val
(
v
)
{}
ivec4
(
const
int
*
v
)
{
ivec4
(
const
int
*
v
)
{
val
=
*
(
(
__m128i
*
)
v
)
;
val
=
(
__m128i
)
{
v
[
0
],
v
[
1
],
v
[
2
],
v
[
3
]}
;
}
}
operator
__m128i
()
const
{
operator
__m128i
()
const
{
return
val
;
return
val
;
...
@@ -171,7 +174,10 @@ public:
...
@@ -171,7 +174,10 @@ public:
return
val
[
i
];
return
val
[
i
];
}
}
void
store
(
int
*
v
)
const
{
void
store
(
int
*
v
)
const
{
*
((
__m128i
*
)
v
)
=
val
;
v
[
0
]
=
val
[
0
];
v
[
1
]
=
val
[
1
];
v
[
2
]
=
val
[
2
];
v
[
3
]
=
val
[
3
];
}
}
ivec4
operator
+
(
ivec4
other
)
const
{
ivec4
operator
+
(
ivec4
other
)
const
{
return
vec_add
(
val
,
other
.
val
);
return
vec_add
(
val
,
other
.
val
);
...
...
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