fuzzypixelz / absolut Goto Github PK
View Code? Open in Web Editor NEWAutogenerated Bytewise SIMD-Optimized Look-Up Tables
License: MIT License
Autogenerated Bytewise SIMD-Optimized Look-Up Tables
License: MIT License
The SimdTable
trait provides a lookup table in the form of two raw byte arrays: SimdTable::LO
and SimdTable::HI
without any convenient way to use them.
Ideally, lookup function implementations would be provided for SSE, AVX, AVX-512, NEON and SIMD128.
However, the user should be left with the freedom to either (1) not use any of the provided lookup functions or (2) use a lookup function for a specific ISA or (4) use a statically-dispatched lookup function or (5) use a dynamically dispatched lookup function.
Thus the SimdTable
trait might look like the following:
trait SimdTable<const N: usize> {
const LO: [usize; N];
const HI: [usize; N];
unsafe fn lookup_sse(output: &mut [u8; N]);
unsafe fn lookup_avx(output: &mut [u8; N]);
unsafe fn lookup_avx512(output: &mut [u8; N]);
unsafe fn lookup_neon(output: &mut [u8; N]);
unsafe fn lookup_sve3(output: &mut [u8; N]);
unsafe fn lookup_simd128(output: &mut [u8; N]);
fn lookup(output: &mut [u8; N]);
fn lookup_dyn(output: &mut [u8; N]);
fn lookup_fallback(output: &mut [u8; N]);
}
Version 0.1 of absolut depends on Z3 to solve for byte tables.
When using the z3 crate (and by extension the z3-sys crate) the Z3 library will have to be system-installed (thus the user will need to fiddle with package managers) or vendored (resulting in long compile times) as a git submodule; neither option is ideal for a procedural macro.
Aside from dependency management, using an SMT solver makes it quite hard to reason about failure to solve for a table.
Currently there is neither Rust documentation for the public items nor a README file to explain the design and utility of absolut.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.