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
clamped_math_impl.h File Reference

(08e24b2ba6847221abd35e9b994206b764d6b322)

#include <stddef.h>
#include <stdint.h>
#include <climits>
#include <cmath>
#include <cstdlib>
#include <limits>
#include <type_traits>
#include "core/fxcrt/numerics/checked_math.h"
#include "core/fxcrt/numerics/safe_conversions.h"
#include "core/fxcrt/numerics/safe_math_shared_impl.h"
Include dependency graph for clamped_math_impl.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  pdfium::internal::ClampedAddOp< T, U, Enable >
struct  pdfium::internal::ClampedAddOp< T, U, typename std::enable_if< std::is_integral< T >::value &&std::is_integral< U >::value >::type >
struct  pdfium::internal::ClampedSubOp< T, U, Enable >
struct  pdfium::internal::ClampedSubOp< T, U, typename std::enable_if< std::is_integral< T >::value &&std::is_integral< U >::value >::type >
struct  pdfium::internal::ClampedMulOp< T, U, Enable >
struct  pdfium::internal::ClampedMulOp< T, U, typename std::enable_if< std::is_integral< T >::value &&std::is_integral< U >::value >::type >
struct  pdfium::internal::ClampedDivOp< T, U, Enable >
struct  pdfium::internal::ClampedDivOp< T, U, typename std::enable_if< std::is_integral< T >::value &&std::is_integral< U >::value >::type >
struct  pdfium::internal::ClampedModOp< T, U, Enable >
struct  pdfium::internal::ClampedModOp< T, U, typename std::enable_if< std::is_integral< T >::value &&std::is_integral< U >::value >::type >
struct  pdfium::internal::ClampedLshOp< T, U, Enable >
struct  pdfium::internal::ClampedLshOp< T, U, typename std::enable_if< std::is_integral< T >::value &&std::is_integral< U >::value >::type >
struct  pdfium::internal::ClampedRshOp< T, U, Enable >
struct  pdfium::internal::ClampedRshOp< T, U, typename std::enable_if< std::is_integral< T >::value &&std::is_integral< U >::value >::type >
struct  pdfium::internal::ClampedAndOp< T, U, Enable >
struct  pdfium::internal::ClampedAndOp< T, U, typename std::enable_if< std::is_integral< T >::value &&std::is_integral< U >::value >::type >
struct  pdfium::internal::ClampedOrOp< T, U, Enable >
struct  pdfium::internal::ClampedOrOp< T, U, typename std::enable_if< std::is_integral< T >::value &&std::is_integral< U >::value >::type >
struct  pdfium::internal::ClampedXorOp< T, U, Enable >
struct  pdfium::internal::ClampedXorOp< T, U, typename std::enable_if< std::is_integral< T >::value &&std::is_integral< U >::value >::type >
struct  pdfium::internal::ClampedMaxOp< T, U, Enable >
struct  pdfium::internal::ClampedMaxOp< T, U, typename std::enable_if< std::is_arithmetic< T >::value &&std::is_arithmetic< U >::value >::type >
struct  pdfium::internal::ClampedMinOp< T, U, Enable >
struct  pdfium::internal::ClampedMinOp< T, U, typename std::enable_if< std::is_arithmetic< T >::value &&std::is_arithmetic< U >::value >::type >

Namespaces

namespace  pdfium
namespace  pdfium::internal

Macros

#define BASE_FLOAT_ARITHMETIC_OPS(NAME, OP)

Functions

template<typename T, typename std::enable_if< std::is_integral< T >::value &&std::is_signed< T >::value >::type * = nullptr>
constexpr T pdfium::internal::SaturatedNegWrapper (T value)
template<typename T, typename std::enable_if< std::is_integral< T >::value >::type * = nullptr>
constexpr T pdfium::internal::SaturatedAbsWrapper (T value)

Macro Definition Documentation

◆ BASE_FLOAT_ARITHMETIC_OPS

#define BASE_FLOAT_ARITHMETIC_OPS ( NAME,
OP )
Value:
template <typename T, typename U> \
struct Clamped##NAME##Op< \
T, U, \
typename std::enable_if<std::is_floating_point<T>::value || \
std::is_floating_point<U>::value>::type> { \
using result_type = typename MaxExponentPromotion<T, U>::type; \
template <typename V = result_type> \
static constexpr V Do(T x, U y) { \
return saturated_cast<V>(x OP y); \
} \
};
#define OP(a, b)
GLint GLint GLint GLint GLint x
GLenum type
GLint y

Definition at line 317 of file clamped_math_impl.h.