Giter Site home page Giter Site logo

x86intrin's Introduction

x86intrin

x86 intrinsics for rust

Crates.io Status Build Status

This crate implements C-like x86 intrinsics. The function and type names are the same as what Intel uses (removing prefix underscore; e.g. __m128i -> m128i, _mm_set_epi32 -> mm_set_epi32).

I actually need various integer SIMD arithmetics, so such functions will be implemeneted with priority.

Current Status

Currently most of SSE, SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, AVX, and AVX2 are implemented. Some of the functions cannot be implemented since rust is not exposing necessary functions.

After all done, I'd like to contribute to rust libraries to support missing functions.

Note

You need nightly channel, since this crate uses unstable features.

To build with cargo, you need to set target-cpu or target-feature in RUSTFLAGS.

For example:

$ RUSTFLAGS="-C target-cpu=native" cargo build
$ RUSTFLAGS="-C target-feature=+sse3" cargo build

x86intrin's People

Contributors

mayah avatar quininer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

keijiyoshida

x86intrin's Issues

question about mm_shuffle_ps

Hi,

I've got a small problem with mm_shuffle_ps.
When I run the example shuffle.rs, whatever value i use for the control, I never get any value from the second vector.
mm_shuffle_ps seems to always use only one vector.
Maybe I've misunderstood something, but it seems shufps can shuffle the two vectors.

I used last nightly.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.