#programming #operations #traits #found #clear #concise #branchless

linearity

Library providing various operations commonly found in branchless programming

3 stable releases

1.2.0 Oct 1, 2024
1.1.1 Aug 1, 2024
1.0.0 Jul 5, 2024

#269 in Hardware support

Download history 107/week @ 2024-07-05 2/week @ 2024-07-12 122/week @ 2024-07-26 86/week @ 2024-08-02 26/week @ 2024-09-13 33/week @ 2024-09-20 125/week @ 2024-09-27 31/week @ 2024-10-04 7/week @ 2024-10-11

197 downloads per month

AGPL-3.0

37KB
739 lines

Introduction

linearity is a crate for various operations commonly found in branchless programming.

The primary trait is Linearity, it provides facilities for clear and concise branchless programming.

See the totality of the crate documentation for more information.

Usage

To use linearity in your project, add the following lines to your Cargo.toml file:

[dependencies]
linearity = "1"

Then, in your Rust code, you can import and use the crate as follows:

use linearity::Linearity;

For detailed usage examples and API documentation, please refer to the crate documentation.

Contributing

Contributions are welcome! If you find any bugs or have suggestions for improvements, please open an issue or submit a pull request on the GitHub repository.

License

This crate is distributed under the terms of the AGPLV3 license. See LICENSE for more information.

Dependencies