Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
SWIFTsim
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
70
Issues
70
List
Boards
Labels
Milestones
Merge Requests
13
Merge Requests
13
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
SWIFT
SWIFTsim
Commits
0cb47d49
Commit
0cb47d49
authored
Apr 22, 2018
by
Matthieu Schaller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Code formatting.
parent
c08467a4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
src/debug.c
src/debug.c
+3
-1
src/vector.h
src/vector.h
+2
-1
No files found.
src/debug.c
View file @
0cb47d49
...
@@ -326,7 +326,9 @@ static void dumpCells_map(struct cell *c, void *data) {
...
@@ -326,7 +326,9 @@ static void dumpCells_map(struct cell *c, void *data) {
/* So output local super cells that are active and have MPI
/* So output local super cells that are active and have MPI
* tasks as requested. */
* tasks as requested. */
if
(
c
->
nodeID
==
e
->
nodeID
&&
(
!
super
||
((
super
&&
c
->
super
==
c
)
||
(
c
->
parent
==
NULL
)))
&&
active
&&
mpiactive
)
{
if
(
c
->
nodeID
==
e
->
nodeID
&&
(
!
super
||
((
super
&&
c
->
super
==
c
)
||
(
c
->
parent
==
NULL
)))
&&
active
&&
mpiactive
)
{
/* If requested we work out how many particles are active in this cell. */
/* If requested we work out how many particles are active in this cell. */
int
pactcount
=
0
;
int
pactcount
=
0
;
...
...
src/vector.h
View file @
0cb47d49
...
@@ -360,7 +360,8 @@
...
@@ -360,7 +360,8 @@
#ifdef HAVE_SSE4_1
#ifdef HAVE_SSE4_1
#define vec_blend(mask, a, b) _mm_blendv_ps(a, b, mask.v)
#define vec_blend(mask, a, b) _mm_blendv_ps(a, b, mask.v)
#else
#else
#define vec_blend(mask, a, b) _mm_or_ps(_mm_and_ps(mask.v,b), _mm_andnot_ps(mask.v,a))
#define vec_blend(mask, a, b) \
_mm_or_ps(_mm_and_ps(mask.v, b), _mm_andnot_ps(mask.v, a))
#endif
#endif
#define vec_todbl_lo(a) _mm_cvtps_pd(a)
#define vec_todbl_lo(a) _mm_cvtps_pd(a)
#define vec_todbl_hi(a) _mm_cvtps_pd(_mm_movehl_ps(a, a))
#define vec_todbl_hi(a) _mm_cvtps_pd(_mm_movehl_ps(a, a))
...
...
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