Skip to content

Commit b02ebbb

Browse files
authored
Apply suggestions from code review
Signed-off-by: Athan <kgryte@gmail.com>
1 parent 348b06b commit b02ebbb

File tree

1 file changed

+2
-2
lines changed
  • lib/node_modules/@stdlib/number/float16/base/from-word/lib

1 file changed

+2
-2
lines changed

lib/node_modules/@stdlib/number/float16/base/from-word/lib/main.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ var FLOAT16_EXPONENT_BIAS = require( '@stdlib/constants/float16/exponent-bias' )
2727
var FLOAT16_SIGN_MASK = require( '@stdlib/constants/float16/sign-mask' );
2828
var FLOAT16_EXPONENT_MASK = require( '@stdlib/constants/float16/exponent-mask' );
2929
var FLOAT16_SIGNIFICAND_MASK = require( '@stdlib/constants/float16/significand-mask' );
30-
var FLOAT16_NUM_SIGNIFICAND_BITS = require( '@stdlib/constants/float16/num-significand-bits' );
30+
var FLOAT16_NUM_SIGNIFICAND_BITS = require( '@stdlib/constants/float16/num-significand-bits' ); // eslint-disable-line id-length
3131
var FLOAT16_NUM_EXPONENT_BITS = require( '@stdlib/constants/float16/num-exponent-bits' );
3232

3333

@@ -61,7 +61,7 @@ function fromWord( word ) {
6161
sign = ( word & FLOAT16_SIGN_MASK ) >>> 15;
6262

6363
// Extract exponent (bits 14-10):
64-
exponent = ( word & FLOAT16_EXPONENT_MASK ) >>> FLOAT16_NUM_SIGNIFICAND_BITS;
64+
exponent = ( word & FLOAT16_EXPONENT_MASK ) >>> FLOAT16_NUM_SIGNIFICAND_BITS; // eslint-disable-line max-len
6565

6666
// Extract mantissa (bits 9-0):
6767
mantissa = word & FLOAT16_SIGNIFICAND_MASK;

0 commit comments

Comments
 (0)