Skip to content

Latest commit

 

History

History
80 lines (67 loc) · 2.62 KB

extended-floating-point.md

File metadata and controls

80 lines (67 loc) · 2.62 KB

EXTENDED Floating Point

Go Back

TO-DO List

Implementation of different functions, methods, constructors, and operators that is constexper'able should be constexpr and should follow the guidelines when implementing with the constexpr specifier.

  • Constructors

    • no argument constructor
    • initializer list constructor
    • unsigned integral constructor
    • string/char* constructor
    • copy constructor
    • copy assignment
  • Arithmetic Operators

    • &operator+=(own_type const&);
    • &operator-=(own_type const&);
    • &operator*=(own_type const&);
    • &operator/=(own_type const&);
    • &operator%=(own_type const&);
    • operator+(own_type const&) const;
    • operator-(own_type const&) const;
    • operator*(own_type const&) const;
    • operator/(own_type const&) const;
    • operator%(own_type const&) const;
  • Pre-Fix Increment/Decrement

    • &operator++();
    • &operator--();
  • Post-Fix Increment/Decrement

    • operator++(int);
    • operator--(int);
  • Relational Operators

    • bool operator<(own_type const&) const;
    • bool operator>(own_type const&) const;
    • bool operator==(own_type const&) const;
    • bool operator!=(own_type const&) const;
    • bool operator<=(own_type const&) const;
    • bool operator>=(own_type const&) const;
  • Logical Operators

    • explicit operator bool() const noexcept;
  • Bit-Wise Logical Operators

    • &operator&=(own_type const&);
    • &operator|=(own_type const&);
    • &operator^=(own_type const&);
    • operator&(own_type const&) const;
    • operator|(own_type const&) const;
    • operator^(own_type const&) const;
    • &operator&=(limb_t);
    • &operator|=(limb_t);
    • &operator^=(limb_t);
    • operator&(limb_t) const;
    • operator|(limb_t) const;
    • operator^(limb_t) const;
    • operator~() const;
  • Shift Operators

    • &operator<<=(size_t bits);
    • &operator>>=(size_t bits);
    • operator<<(size_t bits) const;
    • operator>>(size_t bits) const;
    • &operator<<=(own_type bits);
    • &operator>>=(own_type bits);
    • operator<<(own_type bits) const;
    • operator>>(own_type bits) const;
  • Output Stream Operator

    • ostream operator (HEX)
    • ostream operator (OCT)
    • ostream operator (DEC)

Go Back