- Added constants.h
- Finished Exponential Tests - Fixed HTML labeling
This commit is contained in:
@@ -49,7 +49,6 @@
|
||||
/// <table width="100%" class="fieldtable" id="table_fennec_math_common_sign_functions">
|
||||
/// <tr><th style="vertical-align: top">Syntax
|
||||
/// <th style="vertical-align: top">Description
|
||||
///
|
||||
/// <tr><td width="50%" style="vertical-align: top"> <br>
|
||||
/// \ref fennec::abs(fennec::genType) "genIType abs(genIType x)" <br>
|
||||
/// \ref fennec::abs(fennec::genType) "genFType abs(genFType x)" <br>
|
||||
@@ -73,7 +72,6 @@
|
||||
/// <table width="100%" class="fieldtable" id="table_fennec_math_common_rounding_functions">
|
||||
/// <tr><th style="vertical-align: top">Syntax
|
||||
/// <th style="vertical-align: top">Description
|
||||
///
|
||||
/// <tr><td width="50%" style="vertical-align: top"> <br>
|
||||
/// \ref fennec::floor(fennec::genType) "genFType floor(genFType x)" <br>
|
||||
/// \ref fennec::floor(fennec::genType) "genDType floor(genDType x)"
|
||||
@@ -116,7 +114,6 @@
|
||||
/// <table width="100%" class="fieldtable" id="table_fennec_math_common_decimal_functions">
|
||||
/// <tr><th style="vertical-align: top">Syntax
|
||||
/// <th style="vertical-align: top">Description
|
||||
///
|
||||
/// <tr><td width="50%" style="vertical-align: top"> <br>
|
||||
/// \ref fennec::fract(fennec::genType) "genFType fract(genFType x)" <br>
|
||||
/// \ref fennec::fract(fennec::genType) "genDType fract(genDType x)"
|
||||
@@ -169,7 +166,6 @@
|
||||
/// <table width="100%" class="fieldtable" id="table_fennec_math_common_bit_conversions">
|
||||
/// <tr><th style="vertical-align: top">Syntax
|
||||
/// <th style="vertical-align: top">Description
|
||||
///
|
||||
/// <tr><td width="50%" style="vertical-align: top"> <br>
|
||||
/// \ref fennec::floatBitsToInt(fennec::genType) "genIType floatBitsToInt(genType value)" <br>
|
||||
/// \ref fennec::floatBitsToUint(fennec::genType) "genUType floatBitsToUint(genType value)"
|
||||
@@ -235,7 +231,6 @@
|
||||
/// <table width="100%" class="fieldtable" id="table_fennec_math_curve_functions">
|
||||
/// <tr><th style="vertical-align: top">Syntax
|
||||
/// <th style="vertical-align: top">Description
|
||||
///
|
||||
/// <tr><td width="50%" style="vertical-align: top"> <br>
|
||||
/// \ref fennec::step "step(float edge, genFType x)" <br>
|
||||
/// \ref fennec::step "step(genFType edge, genFType x)" <br>
|
||||
@@ -324,7 +319,7 @@ constexpr vector<genType, i...> abs(const vector<genType, i...>& x)
|
||||
/// \param x input value
|
||||
template<typename genType>
|
||||
constexpr genType sign(genType x)
|
||||
{ return (x < 0 ? -1 : 1) * static_cast<genType>(x != 0); }
|
||||
{ return (x < genType(0) ? genType(-1) : genType(1)) * static_cast<genType>(x != 0); } // reduces to cmove
|
||||
|
||||
|
||||
// Vector Specializations ----------------------------------------------------------------------------------------------
|
||||
@@ -869,7 +864,7 @@ constexpr vector<genType, i...> clamp(const vector<genType, i...>& x, const vect
|
||||
/// \param x The coordinate of the sample location
|
||||
template<typename genType> requires(is_floating_point_v<genType>)
|
||||
constexpr genType step(genType edge, genType x)
|
||||
{ return x < edge ? 0.0 : 1.0; }
|
||||
{ return static_cast<genType>(not(x < edge)); }
|
||||
|
||||
|
||||
// Vector Specializations ----------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user