Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
pdfium::internal::ClampedSubFastAsmOp< T, U > Struct Template Reference

#include <safe_math_arm_impl.h>

Collaboration diagram for pdfium::internal::ClampedSubFastAsmOp< T, U >:

Public Member Functions

template<typename V>
 __attribute__ ((always_inline)) static V Do(T x
 asm ("qsub %[result], %[first], %[second]" :[result] "=r"(result) :[first] "r"(x_i32), [second] "r"(y_i32))
return saturated_cast (result)

Static Public Member Functions

template<typename V>
static constexpr V Do (T, U)

Public Attributes

y
int32_t result
int32_t x_i32 = checked_cast<int32_t>(x)
int32_t y_i32 = checked_cast<int32_t>(y)

Static Public Attributes

static const bool is_supported

Detailed Description

template<typename T, typename U>
struct pdfium::internal::ClampedSubFastAsmOp< T, U >

Definition at line 73 of file safe_math_arm_impl.h.

Member Function Documentation

◆ __attribute__()

template<typename T, typename U>
template<typename V>
pdfium::internal::ClampedSubFastAsmOp< T, U >::__attribute__ ( (always_inline) )

References y.

◆ asm()

template<typename T, typename U>
pdfium::internal::ClampedSubFastAsmOp< T, U >::asm ( "qsub % [result],
% [first] )

References result, x_i32, and y_i32.

◆ Do()

template<typename T, typename U>
template<typename V>
constexpr V pdfium::internal::ClampedSubFastAsmOp< T, U >::Do ( T ,
U  )
inlinestaticconstexpr

Definition at line 51 of file safe_math_clang_gcc_impl.h.

◆ saturated_cast()

template<typename T, typename U>
return pdfium::internal::ClampedSubFastAsmOp< T, U >::saturated_cast ( result )

Member Data Documentation

◆ is_supported

template<typename T, typename U>
const bool pdfium::internal::ClampedSubFastAsmOp< T, U >::is_supported
static

◆ result

template<typename T, typename U>
int32_t pdfium::internal::ClampedSubFastAsmOp< T, U >::result

Definition at line 87 of file safe_math_arm_impl.h.

Referenced by asm().

◆ x_i32

template<typename T, typename U>
int32_t pdfium::internal::ClampedSubFastAsmOp< T, U >::x_i32 = checked_cast<int32_t>(x)

Definition at line 88 of file safe_math_arm_impl.h.

Referenced by asm().

◆ y

template<typename T, typename U>
U pdfium::internal::ClampedSubFastAsmOp< T, U >::y
Initial value:

Definition at line 81 of file safe_math_arm_impl.h.

Referenced by __attribute__().

◆ y_i32

template<typename T, typename U>
int32_t pdfium::internal::ClampedSubFastAsmOp< T, U >::y_i32 = checked_cast<int32_t>(y)

Definition at line 89 of file safe_math_arm_impl.h.

Referenced by asm().


The documentation for this struct was generated from the following files: