Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SWIFT
SWIFTsim
Commits
2c149eb6
Commit
2c149eb6
authored
Jun 12, 2013
by
Pedro Gonnet
Browse files
better density self-interaction.
Former-commit-id: c5fa53714af80cac2803940a719eb73fc5120e18
parent
2468664e
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
src/cell.c
View file @
2c149eb6
...
...
@@ -167,7 +167,7 @@ void cell_unlocktree( struct cell *c ) {
void
cell_split
(
struct
cell
*
c
)
{
int
i
,
j
,
k
,
kk
;
int
i
,
j
,
k
;
struct
part
temp
,
*
parts
=
c
->
parts
;
int
left
[
8
],
right
[
8
];
double
pivot
[
3
];
...
...
src/runner_doiact.h
View file @
2c149eb6
This diff is collapsed.
Click to expand it.
src/space.h
View file @
2c149eb6
...
...
@@ -26,7 +26,7 @@
#define space_splitratio 0.875f
#define space_splitsize_default 400
#define space_subsize_default 5000
#define space_dosub
1
#define space_dosub
0
#define space_stretch 1.05f
#define space_maxtaskspercell 31
#define space_maxreldx 0.2f
...
...
src/vector.h
View file @
2c149eb6
...
...
@@ -27,7 +27,7 @@
#define VEC_MACRO(elcount, type) __attribute__((vector_size((elcount)*sizeof(type)))) type
/* So what will the vector size be? */
#ifdef
NO
__AVX__
#ifdef __AVX__
#define VECTORIZE
#define VEC_SIZE 8
#define VEC_FLOAT __m256
...
...
@@ -54,7 +54,7 @@
#define vec_dbl_ftoi(a) _mm256_cvttpd_epi32(a)
#define vec_dbl_fmin(a,b) _mm256_min_pd(a,b)
#define vec_dbl_fmax(a,b) _mm256_max_pd(a,b)
#elif defined(
NO
__SSE2__ )
#elif defined( __SSE2__ )
#define VECTORIZE
#define VEC_SIZE 4
#define VEC_FLOAT __m128
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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