Debian Codegraph @

src/core_arch/x86/ssse3.rs

raw symbols SCIP
1 // Copyright 2024 the Fearless_SIMD Authors
2 // SPDX-License-Identifier: Apache-2.0 OR MIT
3
4 //! Access to SSSE3 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 SSSE3 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 Ssse3rust-analyzer cargo fearless_simd 0.4.1 core_arch/x86/ssse3/Ssse3# {
17 _privaterust-analyzer cargo fearless_simd 0.4.1 core_arch/x86/ssse3/Ssse3#_private.: (),
18 }
19
20 impl Ssse3rust-analyzer cargo fearless_simd 0.4.1 core_arch/x86/ssse3/Ssse3# {
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/ssse3/impl#[Ssse3]new_unchecked().() -> Selfrust-analyzer cargo fearless_simd 0.4.1 core_arch/x86/ssse3/impl#[Ssse3] {
28 Selfrust-analyzer cargo fearless_simd 0.4.1 core_arch/x86/ssse3/impl#[Ssse3] { _privaterust-analyzer cargo fearless_simd 0.4.1 core_arch/x86/ssse3/Ssse3#_private.: () }
29 }
30
31 delegaterust-analyzer cargo fearless_simd 0.4.1 impl_macros/delegate!! { arch:
32 fn _mm_abs_epi8rust-analyzer cargo fearless_simd 0.4.1 core_arch/x86/ssse3/impl#[Ssse3]_mm_abs_epi8().(a: __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_abs_epi16rust-analyzer cargo fearless_simd 0.4.1 core_arch/x86/ssse3/impl#[Ssse3]_mm_abs_epi16().(a: __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#;
34 fn _mm_abs_epi32rust-analyzer cargo fearless_simd 0.4.1 core_arch/x86/ssse3/impl#[Ssse3]_mm_abs_epi32().(a: __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#;
35 fn _mm_shuffle_epi8rust-analyzer cargo fearless_simd 0.4.1 core_arch/x86/ssse3/impl#[Ssse3]_mm_shuffle_epi8().(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#;
36 fn _mm_alignr_epi8rust-analyzer cargo fearless_simd 0.4.1 core_arch/x86/ssse3/impl#[Ssse3]_mm_alignr_epi8().<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#;
37 fn _mm_hadd_epi16rust-analyzer cargo fearless_simd 0.4.1 core_arch/x86/ssse3/impl#[Ssse3]_mm_hadd_epi16().(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#;
38 fn _mm_hadds_epi16rust-analyzer cargo fearless_simd 0.4.1 core_arch/x86/ssse3/impl#[Ssse3]_mm_hadds_epi16().(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#;
39 fn _mm_hadd_epi32rust-analyzer cargo fearless_simd 0.4.1 core_arch/x86/ssse3/impl#[Ssse3]_mm_hadd_epi32().(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#;
40 fn _mm_hsub_epi16rust-analyzer cargo fearless_simd 0.4.1 core_arch/x86/ssse3/impl#[Ssse3]_mm_hsub_epi16().(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#;
41 fn _mm_hsubs_epi16rust-analyzer cargo fearless_simd 0.4.1 core_arch/x86/ssse3/impl#[Ssse3]_mm_hsubs_epi16().(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#;
42 fn _mm_hsub_epi32rust-analyzer cargo fearless_simd 0.4.1 core_arch/x86/ssse3/impl#[Ssse3]_mm_hsub_epi32().(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#;
43 fn _mm_maddubs_epi16rust-analyzer cargo fearless_simd 0.4.1 core_arch/x86/ssse3/impl#[Ssse3]_mm_maddubs_epi16().(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#;
44 fn _mm_mulhrs_epi16rust-analyzer cargo fearless_simd 0.4.1 core_arch/x86/ssse3/impl#[Ssse3]_mm_mulhrs_epi16().(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#;
45 fn _mm_sign_epi8rust-analyzer cargo fearless_simd 0.4.1 core_arch/x86/ssse3/impl#[Ssse3]_mm_sign_epi8().(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#;
46 fn _mm_sign_epi16rust-analyzer cargo fearless_simd 0.4.1 core_arch/x86/ssse3/impl#[Ssse3]_mm_sign_epi16().(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#;
47 fn _mm_sign_epi32rust-analyzer cargo fearless_simd 0.4.1 core_arch/x86/ssse3/impl#[Ssse3]_mm_sign_epi32().(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#;
48 }
49 }