polylane/lib.rs
1// Copyright 2025 Gabriel Bjørnager Jensen.
2//
3// This Source Code Form is subject to the terms of
4// the Mozilla Public License, v. 2.0. If a copy of
5// the MPL was not distributed with this file, you
6// can obtain one at:
7// <https://mozilla.org/MPL/2.0/>.
8
9//! Portable and versatile SIMD.
10//!
11//! This crate defines SIMD facilities thay may be used on any given platform in any way that ordinary arithmetic primitives are used.
12
13#![no_std]
14
15#![cfg_attr(feature = "f16", feature(f16))]
16#![cfg_attr(feature = "f128", feature(f128))]
17#![cfg_attr(feature = "freeze", feature(freeze))]
18#![cfg_attr(feature = "ptr", feature(ptr_metadata))]
19
20extern crate self as polylane;
21
22#[cfg(any(feature = "alloc", doc))]
23extern crate alloc;
24
25#[cfg(feature = "std")]
26extern crate std;
27
28pub mod cmp;
29pub mod mask;
30pub mod prelude;
31pub mod simd;
32
33#[cfg(doc)]
34use prelude::*;