This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use std::path::PathBuf; | |
use std::ffi::CString; | |
use std::os::raw::c_char; | |
mod libnx { | |
use std::os::raw::c_char; | |
#[derive(Default)] | |
pub struct FsFileSystem; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use std::arch::x86_64::*; | |
use std::mem::transmute; | |
#[target_feature(enable = "avx2")] | |
#[target_feature(enable = "avx")] | |
pub unsafe fn alpha_mask(a: __m256i, b: __m256i) -> __m256i { | |
let mask = _mm256_set_epi8( | |
0, 0, 0, -1, | |
0, 0, 0, -1, | |
0, 0, 0, -1, |