Developer Guide

Contents

Additional
hls_float
Functions

The
hls_float
data type also provides the following additional functions:
Additional
hls_float
Functions
Function
Description
Getters and Setters
hls_float::get_exponent
hls_float::set_exponent
Gets/sets the exponent value of the
hls_float
variable.
hls_float::get_mantissa
hls_float::set_mantissa
Gets/sets the mantissa value of the
hls_float
variable.
hls_float::get_sign
hls_float::set_sign
Gets/sets the sign bit of the
hls_float
variable.
Special Constants
hls_float<
e,m
>::nan()
Assigns the
hls_float
variable a value of
NaN
.
hls_float<
e,m
>::pos_inf()
Assigns the
hls_float
variable a value of
+∞
.
hls_float<
e,m
>::neg_inf()
Assigns the
hls_float
variable a value of
−∞
.
Value Queries
hls_float::is_nan()
Returns
true
if the value of the
hls_float
variable is
NaN
.
hls_float::is_inf()
Returns
true
if the value of the
hls_float
variable is
±∞
.
hls_float::is_zero()
Returns
true
if the value of the
hls_float
variable is zero.
Special Functions
hls_float::next_after(
next_val
)
Returns the next representable value towards
next_val
.

Product and Performance Information

1

Performance varies by use, configuration and other factors. Learn more at www.Intel.com/PerformanceIndex.