Debian Codegraph @

src/core_arch/x86/sse4_2.rs

raw symbols SCIP
1 // Copyright 2024 the Fearless_SIMD Authors
2 // SPDX-License-Identifier: Apache-2.0 OR MIT
3
4 //! Access to SSE4.2 intrinsics.
5
6 use craterust-analyzer cargo fearless_simd 0.4.1 crate/::impl_macrosrust-analyzer cargo fearless_simd 0.4.1 impl_macros/::delegaterust-analyzer cargo fearless_simd 0.4.1 impl_macros/delegate!;
7 #[cfg(target_arch = "x86")]
8 use corerust-analyzer cargo core https://github.com/rust-lang/rust/library/core crate/::archrust-analyzer cargo core https://github.com/rust-lang/rust/library/core arch/::x86 as arch;
9 #[cfg(target_arch = "x86_64")]
10 use corerust-analyzer cargo core https://github.com/rust-lang/rust/library/core crate/::archrust-analyzer cargo core https://github.com/rust-lang/rust/library/core arch/::x86_64rust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/arch/x86_64/ as archrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/arch/x86_64/;
11
12 use archrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/arch/x86_64/::*;
13
14 /// A token for SSE4.2 intrinsics on `x86` and `x86_64`.
15 #[deriverust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/derive:(Clonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core clone/Clone:, Copyrust-analyzer cargo core https://github.com/rust-lang/rust/library/core marker/Copy:, Debugrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/macros/Debug:)]
16 pub struct Sse4_2rust-analyzer cargo fearless_simd 0.4.1 core_arch/x86/sse4_2/Sse4_2# {
17 _privaterust-analyzer cargo fearless_simd 0.4.1 core_arch/x86/sse4_2/Sse4_2#_private.: (),
18 }
19
20 impl Sse4_2rust-analyzer cargo fearless_simd 0.4.1 core_arch/x86/sse4_2/Sse4_2# {
21 /// Create a SIMD token.
22 ///
23 /// # Safety
24 ///
25 /// The required CPU features must be available.
26 #[inline]
27 pub const unsafe fn new_uncheckedrust-analyzer cargo fearless_simd 0.4.1 core_arch/x86/sse4_2/impl#[Sse4_2]new_unchecked().() -> Selfrust-analyzer cargo fearless_simd 0.4.1 core_arch/x86/sse4_2/impl#[Sse4_2] {
28 Selfrust-analyzer cargo fearless_simd 0.4.1 core_arch/x86/sse4_2/impl#[Sse4_2] { _privaterust-analyzer cargo fearless_simd 0.4.1 core_arch/x86/sse4_2/Sse4_2#_private.: () }
29 }
30
31 delegaterust-analyzer cargo fearless_simd 0.4.1 impl_macros/delegate!! { arch:
32 fn _mm_cmpistrmrust-analyzer cargo fearless_simd 0.4.1 core_arch/x86/sse4_2/impl#[Sse4_2]_mm_cmpistrm().<const IMM8: i32>(a: __m128irust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/__m128i#, b: __m128irust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/__m128i#) -> __m128irust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/__m128i#;
33 fn _mm_cmpistrirust-analyzer cargo fearless_simd 0.4.1 core_arch/x86/sse4_2/impl#[Sse4_2]_mm_cmpistri().<const IMM8: i32>(a: __m128irust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/__m128i#, b: __m128irust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/__m128i#) -> i32;
34 fn _mm_cmpistrzrust-analyzer cargo fearless_simd 0.4.1 core_arch/x86/sse4_2/impl#[Sse4_2]_mm_cmpistrz().<const IMM8: i32>(a: __m128irust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/__m128i#, b: __m128irust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/__m128i#) -> i32;
35 fn _mm_cmpistrcrust-analyzer cargo fearless_simd 0.4.1 core_arch/x86/sse4_2/impl#[Sse4_2]_mm_cmpistrc().<const IMM8: i32>(a: __m128irust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/__m128i#, b: __m128irust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/__m128i#) -> i32;
36 fn _mm_cmpistrsrust-analyzer cargo fearless_simd 0.4.1 core_arch/x86/sse4_2/impl#[Sse4_2]_mm_cmpistrs().<const IMM8: i32>(a: __m128irust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/__m128i#, b: __m128irust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/__m128i#) -> i32;
37 fn _mm_cmpistrorust-analyzer cargo fearless_simd 0.4.1 core_arch/x86/sse4_2/impl#[Sse4_2]_mm_cmpistro().<const IMM8: i32>(a: __m128irust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/__m128i#, b: __m128irust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/__m128i#) -> i32;
38 fn _mm_cmpistrarust-analyzer cargo fearless_simd 0.4.1 core_arch/x86/sse4_2/impl#[Sse4_2]_mm_cmpistra().<const IMM8: i32>(a: __m128irust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/__m128i#, b: __m128irust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/__m128i#) -> i32;
39 fn _mm_cmpestrmrust-analyzer cargo fearless_simd 0.4.1 core_arch/x86/sse4_2/impl#[Sse4_2]_mm_cmpestrm().<const IMM8: i32>(a: __m128irust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/__m128i#, la: i32, b: __m128irust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/__m128i#, lb: i32) -> __m128irust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/__m128i#;
40 fn _mm_cmpestrirust-analyzer cargo fearless_simd 0.4.1 core_arch/x86/sse4_2/impl#[Sse4_2]_mm_cmpestri().<const IMM8: i32>(a: __m128irust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/__m128i#, la: i32, b: __m128irust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/__m128i#, lb: i32) -> i32;
41 fn _mm_cmpestrzrust-analyzer cargo fearless_simd 0.4.1 core_arch/x86/sse4_2/impl#[Sse4_2]_mm_cmpestrz().<const IMM8: i32>(a: __m128irust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/__m128i#, la: i32, b: __m128irust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/__m128i#, lb: i32) -> i32;
42 fn _mm_cmpestrcrust-analyzer cargo fearless_simd 0.4.1 core_arch/x86/sse4_2/impl#[Sse4_2]_mm_cmpestrc().<const IMM8: i32>(a: __m128irust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/__m128i#, la: i32, b: __m128irust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/__m128i#, lb: i32) -> i32;
43 fn _mm_cmpestrsrust-analyzer cargo fearless_simd 0.4.1 core_arch/x86/sse4_2/impl#[Sse4_2]_mm_cmpestrs().<const IMM8: i32>(a: __m128irust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/__m128i#, la: i32, b: __m128irust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/__m128i#, lb: i32) -> i32;
44 fn _mm_cmpestrorust-analyzer cargo fearless_simd 0.4.1 core_arch/x86/sse4_2/impl#[Sse4_2]_mm_cmpestro().<const IMM8: i32>(a: __m128irust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/__m128i#, la: i32, b: __m128irust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/__m128i#, lb: i32) -> i32;
45 fn _mm_cmpestrarust-analyzer cargo fearless_simd 0.4.1 core_arch/x86/sse4_2/impl#[Sse4_2]_mm_cmpestra().<const IMM8: i32>(a: __m128irust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/__m128i#, la: i32, b: __m128irust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/__m128i#, lb: i32) -> i32;
46 fn _mm_crc32_u8rust-analyzer cargo fearless_simd 0.4.1 core_arch/x86/sse4_2/impl#[Sse4_2]_mm_crc32_u8().(crc: u32, v: u8) -> u32;
47 fn _mm_crc32_u16rust-analyzer cargo fearless_simd 0.4.1 core_arch/x86/sse4_2/impl#[Sse4_2]_mm_crc32_u16().(crc: u32, v: u16) -> u32;
48 fn _mm_crc32_u32rust-analyzer cargo fearless_simd 0.4.1 core_arch/x86/sse4_2/impl#[Sse4_2]_mm_crc32_u32().(crc: u32, v: u32) -> u32;
49 fn _mm_cmpgt_epi64rust-analyzer cargo fearless_simd 0.4.1 core_arch/x86/sse4_2/impl#[Sse4_2]_mm_cmpgt_epi64().(a: __m128irust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/__m128i#, b: __m128irust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/__m128i#) -> __m128irust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/__m128i#;
50 }
51 }