Skip to content

File fpm_adapter.hpp

FileList > fpm_adapter.hpp

Go to the source code of this file

An adapter for the fpm fixed-point math library. More...

  • #include <compare>
  • #include <concepts>
  • #include <iostream>
  • #include <limits>
  • #include <stdexcept>
  • #include <type_traits>
  • #include "fpm/fixed.hpp"
  • #include "fpm/ios.hpp"
  • #include "fpm/math.hpp"

Namespaces

Type Name
namespace detail
namespace fpm
Overloads and specializations for the fpm library.
namespace std
Overloads for standard library functions to support fixed-point types.

Classes

Type Name
class FixedAdapter <typename B, typename I, F, E>
A wrapper class for fpm::fixed to provide enhanced functionality.
struct HashBase <FixedType>
struct NumericLimitsBase <FixedType>
struct is_fixed< FixedAdapter< BaseType, intermediate_type, FractionBits, EnableRounding > > <typename BaseType, typename intermediate_type, FractionBits, EnableRounding>
Specialization of fpm::is_fixed for the FixedAdapter type.

Public Types

Type Name
typedef FixedAdapter< std::int32_t, std::int64_t, 16 > fixed_16_16
typedef FixedAdapter< std::int32_t, std::int64_t, 8 > fixed_24_8
typedef FixedAdapter< std::int32_t, std::int64_t, 24 > fixed_8_24

Detailed Description

This file provides a wrapper around the fpm::fixed class to enhance its interoperability with standard numeric types. It includes operator overloads and helper functions to make fixed-point arithmetic more seamless.

Public Types Documentation

typedef fixed_16_16

using fixed_16_16 =  FixedAdapter<std::int32_t, std::int64_t, 16>;

typedef fixed_24_8

using fixed_24_8 =  FixedAdapter<std::int32_t, std::int64_t, 8>;

typedef fixed_8_24

using fixed_8_24 =  FixedAdapter<std::int32_t, std::int64_t, 24>;


The documentation for this class was generated from the following file fpm_adapter.hpp