ae2f_docs
Float.h File Reference

Here, float will be treated as bit vector with four attributes: More...

#include "./Float.auto.h"

Go to the source code of this file.

Typedefs

typedef ae2f_float ae2f_float_t

Detailed Description

Here, float will be treated as bit vector with four attributes:

sign:

> Whether it has sign or not.
exp:
> Exponent. It will be considered as unsigned integer,
> Which is the exponent of the [frac]

expbiasp:
> Exponent bias in order to be considered as zero.
> For handling possibly negative values of [exp] (such as 0.5)
> Here, the value of exponent bias is limited with following rules:

  • It must be (2^([expbiasp]) - 1), and you are actually setting [expbiasp].
  • [expbiasp] must be between 1 and [exp].

frac:
> The actual "value" for floating point.


Following is the expected structure as bit vector:
[frac | exp | sign]

Size of this will be calculated as:
[sign] + [exp] + [frac]

Author
ae2f
Date
2025-02-01

Definition in file Float.h.

Typedef Documentation

◆ ae2f_float_t

Definition at line 38 of file Float.h.