Skip to content

Commit

Permalink
Update artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
stdlib-bot committed Nov 12, 2024
1 parent 06311b0 commit 66bdba3
Show file tree
Hide file tree
Showing 5 changed files with 89 additions and 73 deletions.
1 change: 1 addition & 0 deletions math/base/special/ldexpf/coverage.ndjson
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
[271,274,98.9051,17,18,94.4444,2,2,100,271,274,98.9051,"71c43cf5165749e2ce2647cb52d92f6c97f16959","2024-08-24 16:10:41 +0200"]
[279,279,100,19,19,100,2,2,100,279,279,100,"d88cd86622b7a4ebffcb4b57aa60d5b7292fee73","2024-11-11 21:48:37 -0500"]
30 changes: 15 additions & 15 deletions math/base/special/ldexpf/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,16 @@ <h1><a href="../../../../../index.html">All files</a> math/base/special/ldexpf/l
<div class='clearfix'>

<div class='fl pad1y space-right2'>
<span class="strong">98.9% </span>
<span class="strong">100% </span>
<span class="quiet">Statements</span>
<span class='fraction'>271/274</span>
<span class='fraction'>279/279</span>
</div>


<div class='fl pad1y space-right2'>
<span class="strong">94.44% </span>
<span class="strong">100% </span>
<span class="quiet">Branches</span>
<span class='fraction'>17/18</span>
<span class='fraction'>19/19</span>
</div>


Expand All @@ -44,9 +44,9 @@ <h1><a href="../../../../../index.html">All files</a> math/base/special/ldexpf/l


<div class='fl pad1y space-right2'>
<span class="strong">98.9% </span>
<span class="strong">100% </span>
<span class="quiet">Lines</span>
<span class='fraction'>271/274</span>
<span class='fraction'>279/279</span>
</div>


Expand Down Expand Up @@ -95,17 +95,17 @@ <h1><a href="../../../../../index.html">All files</a> math/base/special/ldexpf/l

<tr>
<td class="file high" data-value="main.js"><a href="main.js.html">main.js</a></td>
<td data-value="97.93" class="pic high">
<div class="chart"><div class="cover-fill" style="width: 97%"></div><div class="cover-empty" style="width: 3%"></div></div>
<td data-value="100" class="pic high">
<div class="chart"><div class="cover-fill cover-full" style="width: 100%"></div><div class="cover-empty" style="width: 0%"></div></div>
</td>
<td data-value="97.93" class="pct high">97.93%</td>
<td data-value="145" class="abs high">142/145</td>
<td data-value="93.33" class="pct high">93.33%</td>
<td data-value="15" class="abs high">14/15</td>
<td data-value="100" class="pct high">100%</td>
<td data-value="150" class="abs high">150/150</td>
<td data-value="100" class="pct high">100%</td>
<td data-value="16" class="abs high">16/16</td>
<td data-value="100" class="pct high">100%</td>
<td data-value="1" class="abs high">1/1</td>
<td data-value="97.93" class="pct high">97.93%</td>
<td data-value="145" class="abs high">142/145</td>
<td data-value="100" class="pct high">100%</td>
<td data-value="150" class="abs high">150/150</td>
</tr>

<tr>
Expand All @@ -131,7 +131,7 @@ <h1><a href="../../../../../index.html">All files</a> math/base/special/ldexpf/l
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2024-08-24T14:12:36.465Z
at 2024-11-12T02:50:33.896Z
</div>
<script src="../../../../../prettify.js"></script>
<script>
Expand Down
2 changes: 1 addition & 1 deletion math/base/special/ldexpf/index.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ <h1><a href="../../../../../index.html">All files</a> / <a href="index.html">mat
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2024-08-24T14:12:36.465Z
at 2024-11-12T02:50:33.896Z
</div>
<script src="../../../../../prettify.js"></script>
<script>
Expand Down
121 changes: 68 additions & 53 deletions math/base/special/ldexpf/main.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,16 @@ <h1><a href="../../../../../index.html">All files</a> / <a href="index.html">mat
<div class='clearfix'>

<div class='fl pad1y space-right2'>
<span class="strong">97.93% </span>
<span class="strong">100% </span>
<span class="quiet">Statements</span>
<span class='fraction'>142/145</span>
<span class='fraction'>150/150</span>
</div>


<div class='fl pad1y space-right2'>
<span class="strong">93.33% </span>
<span class="strong">100% </span>
<span class="quiet">Branches</span>
<span class='fraction'>14/15</span>
<span class='fraction'>16/16</span>
</div>


Expand All @@ -44,9 +44,9 @@ <h1><a href="../../../../../index.html">All files</a> / <a href="index.html">mat


<div class='fl pad1y space-right2'>
<span class="strong">97.93% </span>
<span class="strong">100% </span>
<span class="quiet">Lines</span>
<span class='fraction'>142/145</span>
<span class='fraction'>150/150</span>
</div>


Expand Down Expand Up @@ -208,7 +208,16 @@ <h1><a href="../../../../../index.html">All files</a> / <a href="index.html">mat
<a name='L143'></a><a href='#L143'>143</a>
<a name='L144'></a><a href='#L144'>144</a>
<a name='L145'></a><a href='#L145'>145</a>
<a name='L146'></a><a href='#L146'>146</a></td><td class="line-coverage quiet"><span class="cline-any cline-yes">1x</span>
<a name='L146'></a><a href='#L146'>146</a>
<a name='L147'></a><a href='#L147'>147</a>
<a name='L148'></a><a href='#L148'>148</a>
<a name='L149'></a><a href='#L149'>149</a>
<a name='L150'></a><a href='#L150'>150</a>
<a name='L151'></a><a href='#L151'>151</a></td><td class="line-coverage quiet"><span class="cline-any cline-yes">1x</span>
<span class="cline-any cline-yes">1x</span>
<span class="cline-any cline-yes">1x</span>
<span class="cline-any cline-yes">1x</span>
<span class="cline-any cline-yes">1x</span>
<span class="cline-any cline-yes">1x</span>
<span class="cline-any cline-yes">1x</span>
<span class="cline-any cline-yes">1x</span>
Expand Down Expand Up @@ -294,18 +303,19 @@ <h1><a href="../../../../../index.html">All files</a> / <a href="index.html">mat
<span class="cline-any cline-yes">1x</span>
<span class="cline-any cline-yes">1x</span>
<span class="cline-any cline-yes">1x</span>
<span class="cline-any cline-yes">4039x</span>
<span class="cline-any cline-yes">4039x</span>
<span class="cline-any cline-yes">4039x</span>
<span class="cline-any cline-yes">4039x</span>
<span class="cline-any cline-yes">4039x</span>
<span class="cline-any cline-yes">4039x</span>
<span class="cline-any cline-yes">4039x</span>
<span class="cline-any cline-yes">4039x</span>
<span class="cline-any cline-yes">4039x</span>
<span class="cline-any cline-yes">4039x</span>
<span class="cline-any cline-yes">4039x</span>
<span class="cline-any cline-yes">4039x</span>
<span class="cline-any cline-yes">1x</span>
<span class="cline-any cline-yes">4040x</span>
<span class="cline-any cline-yes">4040x</span>
<span class="cline-any cline-yes">4040x</span>
<span class="cline-any cline-yes">4040x</span>
<span class="cline-any cline-yes">4040x</span>
<span class="cline-any cline-yes">4040x</span>
<span class="cline-any cline-yes">4040x</span>
<span class="cline-any cline-yes">4040x</span>
<span class="cline-any cline-yes">4040x</span>
<span class="cline-any cline-yes">4040x</span>
<span class="cline-any cline-yes">4040x</span>
<span class="cline-any cline-yes">4040x</span>
<span class="cline-any cline-yes">4x</span>
<span class="cline-any cline-yes">3x</span>
<span class="cline-any cline-yes">3x</span>
Expand All @@ -318,26 +328,26 @@ <h1><a href="../../../../../index.html">All files</a> / <a href="index.html">mat
<span class="cline-any cline-yes">1x</span>
<span class="cline-any cline-yes">1x</span>
<span class="cline-any cline-yes">4x</span>
<span class="cline-any cline-yes">4035x</span>
<span class="cline-any cline-yes">4035x</span>
<span class="cline-any cline-yes">4039x</span>
<span class="cline-any cline-yes">4036x</span>
<span class="cline-any cline-yes">4036x</span>
<span class="cline-any cline-yes">4040x</span>
<span class="cline-any cline-yes">3x</span>
<span class="cline-any cline-yes">3x</span>
<span class="cline-any cline-yes">4032x</span>
<span class="cline-any cline-yes">4039x</span>
<span class="cline-any cline-yes">4033x</span>
<span class="cline-any cline-yes">4040x</span>
<span class="cline-any cline-yes">2x</span>
<span class="cline-any cline-yes">2x</span>
<span class="cline-any cline-yes">2x</span>
<span class="cline-any cline-yes">4039x</span>
<span class="cline-any cline-yes">4040x</span>
<span class="cline-any cline-yes">3020x</span>
<span class="cline-any cline-yes">3020x</span>
<span class="cline-any cline-yes">3020x</span>
<span class="cline-any cline-yes">3020x</span>
<span class="cline-any cline-yes">4039x</span>
<span class="cline-any cline-yes">2x</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-yes">4040x</span>
<span class="cline-any cline-yes">3x</span>
<span class="cline-any cline-yes">1x</span>
<span class="cline-any cline-yes">1x</span>
<span class="cline-any cline-yes">1x</span>
<span class="cline-any cline-yes">2x</span>
<span class="cline-any cline-yes">2x</span>
<span class="cline-any cline-yes">2x</span>
Expand All @@ -347,7 +357,7 @@ <h1><a href="../../../../../index.html">All files</a> / <a href="index.html">mat
<span class="cline-any cline-yes">1008x</span>
<span class="cline-any cline-yes">1008x</span>
<span class="cline-any cline-yes">1008x</span>
<span class="cline-any cline-yes">4039x</span>
<span class="cline-any cline-yes">4040x</span>
<span class="cline-any cline-yes">1x</span>
<span class="cline-any cline-yes">1x</span>
<span class="cline-any cline-yes">1x</span>
Expand Down Expand Up @@ -394,12 +404,17 @@ <h1><a href="../../../../../index.html">All files</a> / <a href="index.html">mat
var toWord = require( '@stdlib/number/float32/base/to-word' );
var fromWord = require( '@stdlib/number/float32/base/from-word' );
var float64ToFloat32 = require( '@stdlib/number/float64/base/to-float32' );
var FLOAT32_EXPONENT_MASK = require( '@stdlib/constants/float32/exponent-mask' );
var FLOAT32_PRECISION = require( '@stdlib/constants/float32/precision' );
var FLOAT32_ABS_MASK = require( '@stdlib/constants/float32/abs-mask' );
&nbsp;
&nbsp;
// VARIABLES //
&nbsp;
var TWO25 = 33554432.0; // 0x4c000000
var TWOM25 = 2.9802322387695312e-8; // 0x33000000
var FLOAT32_SIGNIFICAND_MASK_WITH_SIGN = 0x807fffff; // 1 00000000 11111111111111111111111
var ALL_ONES = 0xff; // 0xff = 255 =&gt; 11111111
&nbsp;
&nbsp;
// MAIN //
Expand Down Expand Up @@ -446,51 +461,51 @@ <h1><a href="../../../../../index.html">All files</a> / <a href="index.html">mat
frac = float64ToFloat32( frac );
ix = toWord( frac );
&nbsp;
// Extract exponent
k = ( ix &amp; 0x7f800000 ) &gt;&gt; 23;
// Extract exponent:
k = ( ix &amp; FLOAT32_EXPONENT_MASK ) &gt;&gt; ( FLOAT32_PRECISION - 1 );
&nbsp;
// 0 or subnormal frac
// 0 or subnormal frac:
if ( k === 0 ) {
if ( ( ix &amp; 0x7fffffff ) === 0 ) {
// +-0
if ( ( ix &amp; FLOAT32_ABS_MASK ) === 0 ) {
// +-0:
return frac;
}
frac = float64ToFloat32( frac * TWO25 );
ix = toWord( frac );
k = ( ( ix &amp; 0x7f800000 ) &gt;&gt; 23 ) - 25;
k = ( ( ix &amp; FLOAT32_EXPONENT_MASK ) &gt;&gt; ( FLOAT32_PRECISION - 1 ) ) - 25;
if ( exp &lt; -50000 ) {
// Underflow
// Underflow:
return 0.0;
}
}
&nbsp;
// NaN or Inf
if ( k === 0xff ) {
// NaN or Inf:
if ( k === ALL_ONES ) {
return float64ToFloat32( frac + frac );
}
k += exp;
if ( k &gt; 0xfe ) {
// Overflow
k = ( k + exp ) | 0;
if ( k &gt; ALL_ONES - 1 ) {
// Overflow:
return copysignf( PINF, frac );
}
if ( k &gt; 0 ) {
// Normal result
frac = fromWord( ( ix &amp; 0x807fffff ) | ( k &lt;&lt; 23 ) );
// Normal result:
frac = fromWord( ( ix &amp; FLOAT32_SIGNIFICAND_MASK_WITH_SIGN ) | ( k &lt;&lt; ( FLOAT32_PRECISION - 1 ) ) );
return frac;
}
if ( k &lt;= -25 ) {
if ( exp &gt; 50000 ) <span class="branch-0 cbranch-no" title="branch not covered" >{</span>
<span class="cstat-no" title="statement not covered" > // In case of integer overflow in n + k</span>
<span class="cstat-no" title="statement not covered" > return copysignf( PINF, frac );</span>
<span class="cstat-no" title="statement not covered" > }</span>
if ( exp &gt; 50000 ) {
// In case of integer overflow in n + k:
return copysignf( PINF, frac );
}
&nbsp;
// Underflow
// Underflow:
return copysignf( 0.0, frac );
}
&nbsp;
// Subnormal result
// Subnormal result:
k += 25;
frac = fromWord( ( ix &amp; 0x807fffff ) | ( k &lt;&lt; 23 ) );
frac = fromWord( ( ix &amp; FLOAT32_SIGNIFICAND_MASK_WITH_SIGN ) | ( k &lt;&lt; ( FLOAT32_PRECISION - 1 ) ) );
return float64ToFloat32( frac * TWOM25 );
}
&nbsp;
Expand All @@ -505,7 +520,7 @@ <h1><a href="../../../../../index.html">All files</a> / <a href="index.html">mat
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2024-08-24T14:12:36.465Z
at 2024-11-12T02:50:33.896Z
</div>
<script src="../../../../../prettify.js"></script>
<script>
Expand Down
8 changes: 4 additions & 4 deletions math/base/special/ldexpf/native.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -197,9 +197,9 @@ <h1><a href="../../../../../index.html">All files</a> / <a href="index.html">mat
<span class="cline-any cline-yes">1x</span>
<span class="cline-any cline-yes">1x</span>
<span class="cline-any cline-yes">1x</span>
<span class="cline-any cline-yes">4039x</span>
<span class="cline-any cline-yes">4039x</span>
<span class="cline-any cline-yes">4039x</span>
<span class="cline-any cline-yes">4040x</span>
<span class="cline-any cline-yes">4040x</span>
<span class="cline-any cline-yes">4040x</span>
<span class="cline-any cline-yes">1x</span>
<span class="cline-any cline-yes">1x</span>
<span class="cline-any cline-yes">1x</span>
Expand Down Expand Up @@ -283,7 +283,7 @@ <h1><a href="../../../../../index.html">All files</a> / <a href="index.html">mat
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2024-08-24T14:12:36.465Z
at 2024-11-12T02:50:33.896Z
</div>
<script src="../../../../../prettify.js"></script>
<script>
Expand Down

0 comments on commit 66bdba3

Please sign in to comment.