ATLAS Offline Software
|
#include <ap_fixed.h>
Public Member Functions | |
ap_fixed ()=default | |
ap_fixed (const double d) requires(std | |
ap_fixed (const double d) requires(std | |
operator double () const | |
const ap_fixed | operator+ (const ap_fixed &f) const |
const ap_fixed & | operator+= (const ap_fixed &f) |
ap_fixed | operator- (const ap_fixed &f) const |
const ap_fixed & | operator-= (const ap_fixed &f) |
ap_fixed | operator* (const ap_fixed &f) const |
const ap_fixed & | operator*= (const ap_fixed &f) |
ap_fixed | operator/ (const ap_fixed &f) const |
const ap_fixed & | operator/= (const ap_fixed &f) |
ap_fixed | operator- () const |
void | test_overflow () |
Static Public Member Functions | |
static ap_fixed | form (T v) |
Public Attributes | |
T | m_value = T{0} |
bool | m_ovflw {false} |
Static Public Attributes | |
static constexpr T | m_overflow_mask = max_to_overflow<width, T>() |
static bool | s_check_overflow {false} |
static bool | s_print_value {false} |
static bool | s_debug {s_check_overflow or s_print_value} |
Friends | |
std::ostream & | operator<< (std::ostream &os, const ap_fixed< width, dp, S, T, WS > ap) |
Definition at line 47 of file ap_fixed.h.
|
default |
|
inline |
Definition at line 65 of file ap_fixed.h.
|
inline |
Definition at line 70 of file ap_fixed.h.
|
inlinestatic |
|
inline |
|
inline |
Definition at line 111 of file ap_fixed.h.
|
inline |
Definition at line 85 of file ap_fixed.h.
|
inline |
Definition at line 90 of file ap_fixed.h.
|
inline |
Definition at line 129 of file ap_fixed.h.
|
inline |
Definition at line 96 of file ap_fixed.h.
|
inline |
Definition at line 101 of file ap_fixed.h.
|
inline |
Definition at line 122 of file ap_fixed.h.
|
inline |
Definition at line 133 of file ap_fixed.h.
|
staticconstexpr |
Definition at line 50 of file ap_fixed.h.
bool GlobalSim::ap_fixed< width, dp, S, T, WS >::m_ovflw {false} |
Definition at line 56 of file ap_fixed.h.
T GlobalSim::ap_fixed< width, dp, S, T, WS >::m_value = T{0} |
Definition at line 49 of file ap_fixed.h.
|
inlinestatic |
Definition at line 52 of file ap_fixed.h.
|
inlinestatic |
Definition at line 54 of file ap_fixed.h.
|
inlinestatic |
Definition at line 53 of file ap_fixed.h.