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
1b2cc528
Commit
1b2cc528
authored
Jun 29, 2017
by
James Willis
Browse files
Fixed bugs in AVX-512 instructions.
Conflicts: src/vector.h
parent
3fa4ebdb
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/vector.h
View file @
1b2cc528
...
@@ -116,10 +116,13 @@
...
@@ -116,10 +116,13 @@
for (int i = 0; i < VEC_SIZE; i++) b += a.f[i]; \
for (int i = 0; i < VEC_SIZE; i++) b += a.f[i]; \
}
}
#endif
#endif
/* Calculates the number of set bits in the mask and adds the result to an int.
*/
/* Do nothing in the case of AVX-512 as there are already
#define VEC_FORM_PACKED_MASK(mask, v_mask, pack) \
* instructions for left-packing.*/
pack += __builtin_popcount(mask);
#define VEC_FORM_PACKED_MASK(mask, packed_mask) packed_mask = mask
/* Finds the horizontal maximum of vector b and returns a float. */
#define VEC_HMAX(a, b) b = _mm512_reduce_max_ps(a.v)
/* Performs a left-pack on a vector based upon a mask and returns the result. */
/* Performs a left-pack on a vector based upon a mask and returns the result. */
#define VEC_LEFT_PACK(a, mask, result) \
#define VEC_LEFT_PACK(a, mask, result) \
...
...
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