Skip to content

Instantly share code, notes, and snippets.

View bave's full-sized avatar

inoue.tomoya bave

View GitHub Profile
// +avx, +popcnt, +bmi2
unsafe fn mm256_compressstroeu_ps(array: *mut f32, mask: u8, src: __m256)
{
let convert = _pext_u64(0x0706050403020100, _pdep_u64(mask as u64, 0x0101010101010101)*0xFF);
let permute = _mm256_cvtepu8_epi32(_mm_cvtsi64_si128(convert as i64));
let compress = _mm256_permutevar8x32_ps(src, permute);
let imm8 = _popcnt64(mask as i64);
let ret = match imm8 {
0 => { _mm256_blend_ps(_mm256_loadu_ps(array), compress, 0x00) },
@bave
bave / hoge.yaml
Created April 5, 2022 06:59
hoge
diagram:
fill: "white"
columns: 20
rows: 20
gridLines: true
title:
author: bebebe
company: nict
color: black
text: rd.enobed 172.19.0.0/16