#std #simd #intrinsics

nightly stdsimd

SIMD support in Rust’s standard library

5 releases

0.1.0 Aug 15, 2018
0.0.4 Jan 14, 2018
0.0.3 Oct 30, 2017
0.0.2 Sep 17, 2017
0.0.1 Sep 17, 2017

#34 in Hardware support

Download history 19/week @ 2018-05-26 28/week @ 2018-06-02 15/week @ 2018-06-09 25/week @ 2018-06-16 29/week @ 2018-06-23 86/week @ 2018-06-30 21/week @ 2018-07-07 13/week @ 2018-07-14 20/week @ 2018-07-21 19/week @ 2018-07-28 57/week @ 2018-08-04 28/week @ 2018-08-11 22/week @ 2018-08-18

127 downloads per month
Used in 5 crates (1 directly)

MIT/Apache

1.5MB
32K SLoC

stdsimd - Rust's standard library SIMD components

Travis-CI Status Appveyor Status Latest Version docs

Usage

stdsimd is now shipped with Rust's std library - its is part of libcore and libstd.

The easiest way to use it is just to import it via use std::arch.

The std::arch component for x86 is available in stable Rust. The std::arch components for other architectures and the std::simd component require nightly Rust.

Using stdsimd master branch is not recommended. It requires nightly Rust, it only works with particular Rust nightly versions, and it can (and does) break often. If you need to use stdsimd master branch, you can add it to your Cargo.toml as follows:

#[dependencies]
stdsimd = { git = "https://github.com/rust-lang-nursery/stdsimd.git" }

Documentation

Approach

The main goal is to expose APIs defined by vendors with the least amount of abstraction possible. On x86, for example, the API should correspond to that provided by emmintrin.h.

License

stdsimd is primarily distributed under the terms of both the MIT license and the Apache License (Version 2.0), with portions covered by various BSD-like licenses.

See LICENSE-APACHE, and LICENSE-MIT for details.

Dependencies