repo.or.cz
/
gromacs
/
AngularHB.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Add section to user guide for managing simulations
[gromacs/AngularHB.git]
/
cmake
/
TestAVXMaskload.c
blob
e8438a1cc731df37ba70aaa3976fcd385bdfcde3
1
#include<immintrin.h>
2
int
main
()
3
{
4
__m256d a
;
5
__m256i mask
;
6
double
d
[
4
]={
1
,
2
,
3
,
4
};
7
8
a
=
_mm256_setzero_pd
();
9
mask
=
_mm256_castpd_si256
(
a
);
10
11
#if GMX_SIMD_X86_AVX_GCC_MASKLOAD_BUG
12
a
=
_mm256_maskload_pd
(
d
,
_mm256_castsi256_pd
(
mask
));
13
#else
14
a
=
_mm256_maskload_pd
(
d
,
mask
);
15
#endif
16
return
0
;
17
}
18