RawSpeed
fast raw decoding library
Loading...
Searching...
No Matches
rawspeed::ieee_754_2008::BinaryN< StorageWidth_, FractionWidth_, ExponentWidth_ > Struct Template Reference

#include "common/FloatingPoint.h"

Inheritance diagram for rawspeed::ieee_754_2008::BinaryN< StorageWidth_, FractionWidth_, ExponentWidth_ >:
[legend]
Collaboration diagram for rawspeed::ieee_754_2008::BinaryN< StorageWidth_, FractionWidth_, ExponentWidth_ >:
[legend]

Static Public Attributes

static constexpr uint32_t StorageWidth = StorageWidth_
static constexpr uint32_t FractionWidth = FractionWidth_
static constexpr uint32_t ExponentWidth = ExponentWidth_
static constexpr uint32_t Precision = FractionWidth + 1
static constexpr uint32_t ExponentMax = (1 << (ExponentWidth - 1)) - 1
static constexpr int32_t Bias = ExponentMax
static constexpr uint32_t ExponentPos = FractionWidth
static constexpr uint32_t SignBitPos = StorageWidth - 1

Detailed Description

template<int StorageWidth_, int FractionWidth_, int ExponentWidth_>
struct rawspeed::ieee_754_2008::BinaryN< StorageWidth_, FractionWidth_, ExponentWidth_ >

Definition at line 37 of file FloatingPoint.h.

Member Data Documentation

◆ Bias

template<int StorageWidth_, int FractionWidth_, int ExponentWidth_>
int32_t rawspeed::ieee_754_2008::BinaryN< StorageWidth_, FractionWidth_, ExponentWidth_ >::Bias = ExponentMax
staticconstexpr

Definition at line 51 of file FloatingPoint.h.

◆ ExponentMax

template<int StorageWidth_, int FractionWidth_, int ExponentWidth_>
uint32_t rawspeed::ieee_754_2008::BinaryN< StorageWidth_, FractionWidth_, ExponentWidth_ >::ExponentMax = (1 << (ExponentWidth - 1)) - 1
staticconstexpr

Definition at line 49 of file FloatingPoint.h.

◆ ExponentPos

template<int StorageWidth_, int FractionWidth_, int ExponentWidth_>
uint32_t rawspeed::ieee_754_2008::BinaryN< StorageWidth_, FractionWidth_, ExponentWidth_ >::ExponentPos = FractionWidth
staticconstexpr

Definition at line 54 of file FloatingPoint.h.

◆ ExponentWidth

template<int StorageWidth_, int FractionWidth_, int ExponentWidth_>
uint32_t rawspeed::ieee_754_2008::BinaryN< StorageWidth_, FractionWidth_, ExponentWidth_ >::ExponentWidth = ExponentWidth_
staticconstexpr

Definition at line 43 of file FloatingPoint.h.

◆ FractionWidth

template<int StorageWidth_, int FractionWidth_, int ExponentWidth_>
uint32_t rawspeed::ieee_754_2008::BinaryN< StorageWidth_, FractionWidth_, ExponentWidth_ >::FractionWidth = FractionWidth_
staticconstexpr

Definition at line 42 of file FloatingPoint.h.

◆ Precision

template<int StorageWidth_, int FractionWidth_, int ExponentWidth_>
uint32_t rawspeed::ieee_754_2008::BinaryN< StorageWidth_, FractionWidth_, ExponentWidth_ >::Precision = FractionWidth + 1
staticconstexpr

Definition at line 47 of file FloatingPoint.h.

◆ SignBitPos

template<int StorageWidth_, int FractionWidth_, int ExponentWidth_>
uint32_t rawspeed::ieee_754_2008::BinaryN< StorageWidth_, FractionWidth_, ExponentWidth_ >::SignBitPos = StorageWidth - 1
staticconstexpr

Definition at line 55 of file FloatingPoint.h.

◆ StorageWidth

template<int StorageWidth_, int FractionWidth_, int ExponentWidth_>
uint32_t rawspeed::ieee_754_2008::BinaryN< StorageWidth_, FractionWidth_, ExponentWidth_ >::StorageWidth = StorageWidth_
staticconstexpr

Definition at line 38 of file FloatingPoint.h.


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