Audacity 3.2.0
Functions | Variables
simd_complex_conversions::details Namespace Reference

Functions

template<class To , class From >
std::enable_if_t< sizeof(To)==sizeof(From) &&std::is_trivially_copyable_v< From > &&std::is_trivially_copyable_v< To >, To > bit_cast (const From &src) noexcept
 

Variables

constexpr float PIF = 3.141592653589793238f
 
constexpr float PIO2F = 1.5707963267948966192f
 
constexpr float cephes_PIF = 3.141592653589793238f
 
constexpr float cephes_PIO2F = 1.5707963267948966192f
 
constexpr float cephes_PIO4F = 0.7853981633974483096f
 
constexpr float cephes_FOPI = 1.27323954473516f
 
constexpr float minus_cephes_DP1 = -0.78515625f
 
constexpr float minus_cephes_DP2 = -2.4187564849853515625e-4f
 
constexpr float minus_cephes_DP3 = -3.77489497744594108e-8f
 
constexpr float sincof_p0 = -1.9515295891e-4f
 
constexpr float sincof_p1 = 8.3321608736e-3f
 
constexpr float sincof_p2 = -1.6666654611e-1f
 
constexpr float coscof_p0 = 2.443315711809948e-005f
 
constexpr float coscof_p1 = -1.388731625493765e-003f
 
constexpr float coscof_p2 = 4.166664568298827e-002f
 
constexpr float atancof_p0 = 8.05374449538e-2f
 
constexpr float atancof_p1 = 1.38776856032e-1f
 
constexpr float atancof_p2 = 1.99777106478e-1f
 
constexpr float atancof_p3 = 3.33329491539e-1f
 
static const float sign_mask = bit_cast<float>(0x80000000)
 
static const float inv_sign_mask = bit_cast<float>(~0x80000000)
 

Function Documentation

◆ bit_cast()

template<class To , class From >
std::enable_if_t< sizeof(To)==sizeof(From) &&std::is_trivially_copyable_v< From > && std::is_trivially_copyable_v< To >, To > simd_complex_conversions::details::bit_cast ( const From &  src)
noexcept

Definition at line 30 of file SimdComplexConversions_sse2.h.

31{
32 static_assert(
33 std::is_trivially_constructible_v<To>,
34 "This implementation additionally requires "
35 "destination type to be trivially constructible");
36
37 To dst;
38 std::memcpy(&dst, &src, sizeof(To));
39 return dst;
40}

Variable Documentation

◆ atancof_p0

constexpr float simd_complex_conversions::details::atancof_p0 = 8.05374449538e-2f
constexpr

Definition at line 59 of file SimdComplexConversions_sse2.h.

Referenced by simd_complex_conversions::atan_ps().

◆ atancof_p1

constexpr float simd_complex_conversions::details::atancof_p1 = 1.38776856032e-1f
constexpr

Definition at line 60 of file SimdComplexConversions_sse2.h.

Referenced by simd_complex_conversions::atan_ps().

◆ atancof_p2

constexpr float simd_complex_conversions::details::atancof_p2 = 1.99777106478e-1f
constexpr

Definition at line 61 of file SimdComplexConversions_sse2.h.

Referenced by simd_complex_conversions::atan_ps().

◆ atancof_p3

constexpr float simd_complex_conversions::details::atancof_p3 = 3.33329491539e-1f
constexpr

Definition at line 62 of file SimdComplexConversions_sse2.h.

Referenced by simd_complex_conversions::atan_ps().

◆ cephes_FOPI

constexpr float simd_complex_conversions::details::cephes_FOPI = 1.27323954473516f
constexpr

Definition at line 48 of file SimdComplexConversions_sse2.h.

Referenced by simd_complex_conversions::sincos_ps().

◆ cephes_PIF

constexpr float simd_complex_conversions::details::cephes_PIF = 3.141592653589793238f
constexpr

Definition at line 45 of file SimdComplexConversions_sse2.h.

Referenced by simd_complex_conversions::atan2_ps().

◆ cephes_PIO2F

constexpr float simd_complex_conversions::details::cephes_PIO2F = 1.5707963267948966192f
constexpr

◆ cephes_PIO4F

constexpr float simd_complex_conversions::details::cephes_PIO4F = 0.7853981633974483096f
constexpr

Definition at line 47 of file SimdComplexConversions_sse2.h.

Referenced by simd_complex_conversions::atan_ps().

◆ coscof_p0

constexpr float simd_complex_conversions::details::coscof_p0 = 2.443315711809948e-005f
constexpr

Definition at line 55 of file SimdComplexConversions_sse2.h.

Referenced by simd_complex_conversions::sincos_ps().

◆ coscof_p1

constexpr float simd_complex_conversions::details::coscof_p1 = -1.388731625493765e-003f
constexpr

Definition at line 56 of file SimdComplexConversions_sse2.h.

Referenced by simd_complex_conversions::sincos_ps().

◆ coscof_p2

constexpr float simd_complex_conversions::details::coscof_p2 = 4.166664568298827e-002f
constexpr

Definition at line 57 of file SimdComplexConversions_sse2.h.

Referenced by simd_complex_conversions::sincos_ps().

◆ inv_sign_mask

const float simd_complex_conversions::details::inv_sign_mask = bit_cast<float>(~0x80000000)
static

◆ minus_cephes_DP1

constexpr float simd_complex_conversions::details::minus_cephes_DP1 = -0.78515625f
constexpr

Definition at line 49 of file SimdComplexConversions_sse2.h.

Referenced by simd_complex_conversions::sincos_ps().

◆ minus_cephes_DP2

constexpr float simd_complex_conversions::details::minus_cephes_DP2 = -2.4187564849853515625e-4f
constexpr

Definition at line 50 of file SimdComplexConversions_sse2.h.

Referenced by simd_complex_conversions::sincos_ps().

◆ minus_cephes_DP3

constexpr float simd_complex_conversions::details::minus_cephes_DP3 = -3.77489497744594108e-8f
constexpr

Definition at line 51 of file SimdComplexConversions_sse2.h.

Referenced by simd_complex_conversions::sincos_ps().

◆ PIF

constexpr float simd_complex_conversions::details::PIF = 3.141592653589793238f
constexpr

Definition at line 42 of file SimdComplexConversions_sse2.h.

◆ PIO2F

constexpr float simd_complex_conversions::details::PIO2F = 1.5707963267948966192f
constexpr

Definition at line 43 of file SimdComplexConversions_sse2.h.

◆ sign_mask

const float simd_complex_conversions::details::sign_mask = bit_cast<float>(0x80000000)
static

◆ sincof_p0

constexpr float simd_complex_conversions::details::sincof_p0 = -1.9515295891e-4f
constexpr

Definition at line 52 of file SimdComplexConversions_sse2.h.

Referenced by simd_complex_conversions::sincos_ps().

◆ sincof_p1

constexpr float simd_complex_conversions::details::sincof_p1 = 8.3321608736e-3f
constexpr

Definition at line 53 of file SimdComplexConversions_sse2.h.

Referenced by simd_complex_conversions::sincos_ps().

◆ sincof_p2

constexpr float simd_complex_conversions::details::sincof_p2 = -1.6666654611e-1f
constexpr

Definition at line 54 of file SimdComplexConversions_sse2.h.

Referenced by simd_complex_conversions::sincos_ps().