Skip to content

Commit

Permalink
proofread the pull request
Browse files Browse the repository at this point in the history
  • Loading branch information
Jean-Baptiste Rouquier committed Dec 17, 2024
1 parent 33ca3fe commit 02044b9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions include/hpcombi/epu8.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ epu8 stands for *Extended Packed Unsigned, grouped by 8 bits*;
this is the low level type chosen by Intel for their API to intrinsics,
ie a SIMD vector of 16 unsigned bytes (16×8 = 128bits).
Functions using this type use semantically equivalent types,
eg a _m128 which is 2 vect of 64bits.
a flag tells the compiler to silently consider those types equivalent.
*/
eg a _m128 which is a vector containing 2 signed 64 bits integers.
A flag tells the compiler to silently consider those types equivalent.
*/
using epu8 = uint8_t __attribute__((vector_size(16)));

static_assert(alignof(epu8) == 16,
Expand Down
6 changes: 3 additions & 3 deletions include/hpcombi/hpcombi.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@ applying a permutation on a vector only takes a few CPU cycles.
Further ideas are:
- Vectorization (MMX, SSE, AVX instructions sets) and careful memory alignment,
- Careful memory management: avoiding all dynamic allocation during the computation,
- Avoid all unnecessary copies (often needed to rewrite the containers),
- Due to combinatorial explosion, sets often don’t fit in the computer’s memory or disks and are enumerated on the fly.
- Careful memory management: avoid all dynamic allocation during the computation,
- Avoid all unnecessary copies (it is often needed to rewrite the containers),
- Due to combinatorial explosion, sets often don’t fit in memory or disk and are enumerated on the fly.
Here are some examples,
the speedup is in comparison to an implementation without vector instructions:
Expand Down

0 comments on commit 02044b9

Please sign in to comment.