HPCombi
High Performance Combinatorics in C++ using vector instructions v1.0.1
Loading...
Searching...
No Matches
common_horiz_sum Class Reference

Horizontal sum of a HPCombi::epu8. More...

#include <epu8.hpp>

Detailed Description

Horizontal sum of a HPCombi::epu8.

Returns
the horizontal sum of the input
Example:
horiz_sum(epu8 { 5, 5, 2, 5, 1, 6,12, 4, 0, 3, 2,11,12,13,14,15});
Returns 110
Warning
The result is supposed to fit in a uint8_t

The documentation for this class was generated from the following file: