Universal Numbers Library C++ API
sw::universal -- header-only custom arithmetic types (posit, cfloat, lns, fixpnt, dd/qd, and more)
Loading...
Searching...
No Matches
alu.hpp File Reference
#include <iostream>
#include <string>
#include <universal/number/shared/specific_value_encoding.hpp>

Namespaces

namespace  sw
 required std libraries
namespace  sw::universal

Enumerations

enum class  sw::universal::ALU_OPS {
  sw::universal::NOP , sw::universal::ADD , sw::universal::SUB , sw::universal::MUL ,
  sw::universal::DIV , sw::universal::SQRT
}

Functions

template<typename NumberSystemType>
NumberSystemType sw::universal::ArithmeticLogicUnit (ALU_OPS op, const NumberSystemType &a, const NumberSystemType &b)
template<typename Real>
void sw::universal::ExecuteOp (const std::string &op, float fa, float fb)
template<typename NumberType>
void sw::universal::GenerateUnaryOpTestVectors (std::ostream &ostr, const std::string &op)
template<typename NumberType>
void sw::universal::GenerateBinaryOpTestVectors (std::ostream &ostr, const std::string &op)