Permalink
Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
13 lines (9 sloc) 322 Bytes
#include <algorithm>
#include <vector>
#include <cstdint>
void transform_neg_epi8(std::vector<int8_t>& v) {
std::transform(v.begin(), v.end(), v.begin(), [](int8_t x){return -x;});
}
void transform_neg_epi32(std::vector<int32_t>& v) {
std::transform(v.begin(), v.end(), v.begin(), [](int32_t x){return -x;});
}