2121/* tslint:disable:max-line-length */
2222/* tslint:disable:max-file-line-count */
2323
24+ import ABS_MASK = require( '@stdlib/constants/float32/abs-mask' ) ;
2425import CBRT_EPS = require( '@stdlib/constants/float32/cbrt-eps' ) ;
2526import EPS = require( '@stdlib/constants/float32/eps' ) ;
2627import EXPONENT_BIAS = require( '@stdlib/constants/float32/exponent-bias' ) ;
28+ import EXPONENT_MASK = require( '@stdlib/constants/float32/exponent-mask' ) ;
2729import MAX = require( '@stdlib/constants/float32/max' ) ;
2830import MAX_SAFE_INTEGER = require( '@stdlib/constants/float32/max-safe-integer' ) ;
2931import MIN_SAFE_INTEGER = require( '@stdlib/constants/float32/min-safe-integer' ) ;
3032import NINF = require( '@stdlib/constants/float32/ninf' ) ;
3133import NUM_BYTES = require( '@stdlib/constants/float32/num-bytes' ) ;
3234import PINF = require( '@stdlib/constants/float32/pinf' ) ;
3335import PRECISION = require( '@stdlib/constants/float32/precision' ) ;
36+ import SIGN_MASK = require( '@stdlib/constants/float32/sign-mask' ) ;
37+ import SIGNIFICAND_MASK = require( '@stdlib/constants/float32/significand-mask' ) ;
3438import SMALLEST_NORMAL = require( '@stdlib/constants/float32/smallest-normal' ) ;
3539import SMALLEST_SUBNORMAL = require( '@stdlib/constants/float32/smallest-subnormal' ) ;
3640import SQRT_EPS = require( '@stdlib/constants/float32/sqrt-eps' ) ;
@@ -39,6 +43,15 @@ import SQRT_EPS = require( '@stdlib/constants/float32/sqrt-eps' );
3943* Interface describing the `float32` namespace.
4044*/
4145interface Namespace {
46+ /**
47+ * Mask for excluding the sign bit of a single-precision floating-point number.
48+ *
49+ * @example
50+ * var mask = ns.ABS_MASK;
51+ * // returns 2147483647
52+ */
53+ ABS_MASK : typeof ABS_MASK ;
54+
4255 /**
4356 * Cube root of single-precision floating-point epsilon.
4457 *
@@ -66,6 +79,15 @@ interface Namespace {
6679 */
6780 EXPONENT_BIAS : typeof EXPONENT_BIAS ;
6881
82+ /**
83+ * Mask for the exponent of a single-precision floating-point number.
84+ *
85+ * @example
86+ * var mask = ns.EXPONENT_MASK;
87+ * // returns 2139095040
88+ */
89+ EXPONENT_MASK : typeof EXPONENT_MASK ;
90+
6991 /**
7092 * Maximum single-precision floating-point number.
7193 *
@@ -129,6 +151,24 @@ interface Namespace {
129151 */
130152 PRECISION : typeof PRECISION ;
131153
154+ /**
155+ * Mask for the sign bit of a single-precision floating-point number.
156+ *
157+ * @example
158+ * var mask = ns.SIGN_MASK;
159+ * // returns 2147483648
160+ */
161+ SIGN_MASK : typeof SIGN_MASK ;
162+
163+ /**
164+ * Mask for the significand of a single-precision floating-point number.
165+ *
166+ * @example
167+ * var mask = ns.SIGNIFICAND_MASK;
168+ * // returns 8388607
169+ */
170+ SIGNIFICAND_MASK : typeof SIGNIFICAND_MASK ;
171+
132172 /**
133173 * Smallest positive single-precision floating-point normal number.
134174 *
0 commit comments