Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 50b1145

Browse files
committedNov 17, 2024·
Update artifacts
1 parent 28ffb36 commit 50b1145

File tree

7 files changed

+61
-30
lines changed

7 files changed

+61
-30
lines changed
 

‎math/base/special/gcdf/binary_gcd.js.html

Lines changed: 24 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ <h1><a href="../../../../../index.html">All files</a> / <a href="index.html">mat
2525
<div class='fl pad1y space-right2'>
2626
<span class="strong">100% </span>
2727
<span class="quiet">Statements</span>
28-
<span class='fraction'>81/81</span>
28+
<span class='fraction'>86/86</span>
2929
</div>
3030

3131

@@ -46,7 +46,7 @@ <h1><a href="../../../../../index.html">All files</a> / <a href="index.html">mat
4646
<div class='fl pad1y space-right2'>
4747
<span class="strong">100% </span>
4848
<span class="quiet">Lines</span>
49-
<span class='fraction'>81/81</span>
49+
<span class='fraction'>86/86</span>
5050
</div>
5151

5252

@@ -144,7 +144,12 @@ <h1><a href="../../../../../index.html">All files</a> / <a href="index.html">mat
144144
<a name='L79'></a><a href='#L79'>79</a>
145145
<a name='L80'></a><a href='#L80'>80</a>
146146
<a name='L81'></a><a href='#L81'>81</a>
147-
<a name='L82'></a><a href='#L82'>82</a></td><td class="line-coverage quiet"><span class="cline-any cline-yes">1x</span>
147+
<a name='L82'></a><a href='#L82'>82</a>
148+
<a name='L83'></a><a href='#L83'>83</a>
149+
<a name='L84'></a><a href='#L84'>84</a>
150+
<a name='L85'></a><a href='#L85'>85</a>
151+
<a name='L86'></a><a href='#L86'>86</a>
152+
<a name='L87'></a><a href='#L87'>87</a></td><td class="line-coverage quiet"><span class="cline-any cline-yes">1x</span>
148153
<span class="cline-any cline-yes">1x</span>
149154
<span class="cline-any cline-yes">1x</span>
150155
<span class="cline-any cline-yes">1x</span>
@@ -194,23 +199,27 @@ <h1><a href="../../../../../index.html">All files</a> / <a href="index.html">mat
194199
<span class="cline-any cline-yes">1x</span>
195200
<span class="cline-any cline-yes">1x</span>
196201
<span class="cline-any cline-yes">4x</span>
202+
<span class="cline-any cline-yes">4x</span>
197203
<span class="cline-any cline-yes">6x</span>
198204
<span class="cline-any cline-yes">59x</span>
199205
<span class="cline-any cline-yes">59x</span>
200206
<span class="cline-any cline-yes">59x</span>
201207
<span class="cline-any cline-yes">59x</span>
202208
<span class="cline-any cline-yes">4x</span>
209+
<span class="cline-any cline-yes">4x</span>
203210
<span class="cline-any cline-yes">6x</span>
204211
<span class="cline-any cline-yes">244x</span>
205212
<span class="cline-any cline-yes">244x</span>
206213
<span class="cline-any cline-yes">4x</span>
214+
<span class="cline-any cline-yes">4x</span>
207215
<span class="cline-any cline-yes">6x</span>
208216
<span class="cline-any cline-yes">38x</span>
209217
<span class="cline-any cline-yes">38x</span>
210218
<span class="cline-any cline-yes">149x</span>
211219
<span class="cline-any cline-yes">149x</span>
212220
<span class="cline-any cline-yes">38x</span>
213221
<span class="cline-any cline-yes">38x</span>
222+
<span class="cline-any cline-yes">38x</span>
214223
<span class="cline-any cline-yes">1x</span>
215224
<span class="cline-any cline-yes">1x</span>
216225
<span class="cline-any cline-yes">1x</span>
@@ -219,6 +228,7 @@ <h1><a href="../../../../../index.html">All files</a> / <a href="index.html">mat
219228
<span class="cline-any cline-yes">38x</span>
220229
<span class="cline-any cline-yes">4x</span>
221230
<span class="cline-any cline-yes">4x</span>
231+
<span class="cline-any cline-yes">4x</span>
222232
<span class="cline-any cline-yes">6x</span>
223233
<span class="cline-any cline-yes">1x</span>
224234
<span class="cline-any cline-yes">1x</span>
@@ -246,7 +256,7 @@ <h1><a href="../../../../../index.html">All files</a> / <a href="index.html">mat
246256
'use strict';
247257
&nbsp;
248258
/**
249-
* Computes the greatest common divisor (gcd) of two single-precision floating point numbers using the binary GCD algorithm.
259+
* Computes the greatest common divisor (gcd) of two single-precision floating-point numbers using the binary GCD algorithm.
250260
*
251261
* ## References
252262
*
@@ -260,7 +270,7 @@ <h1><a href="../../../../../index.html">All files</a> / <a href="index.html">mat
260270
* @returns {integer} greatest common divisor
261271
*
262272
* @example
263-
* var v = gcdf( 16777216.0, 65536.0 );
273+
* var v = gcdf( 16777216, 65536 );
264274
* // returns 65536
265275
*/
266276
function gcdf( a, b ) {
@@ -274,22 +284,26 @@ <h1><a href="../../../../../index.html">All files</a> / <a href="index.html">mat
274284
if ( b === 0 ) {
275285
return a;
276286
}
287+
&nbsp;
277288
// Reduce `a` and/or `b` to odd numbers and keep track of the greatest power of 2 dividing both `a` and `b`...
278-
while ( a%2 === 0 &amp;&amp; b%2 === 0 ) {
289+
while ( a % 2 === 0 &amp;&amp; b % 2 === 0 ) {
279290
a /= 2; // right shift
280291
b /= 2; // right shift
281292
k *= 2; // left shift
282293
}
294+
&nbsp;
283295
// Reduce `a` to an odd number...
284-
while ( a%2 === 0 ) {
296+
while ( a % 2 === 0 ) {
285297
a /= 2; // right shift
286298
}
299+
&nbsp;
287300
// Henceforth, `a` is always odd...
288301
while ( b ) {
289302
// Remove all factors of 2 in `b`, as they are not common...
290-
while ( b%2 === 0 ) {
303+
while ( b % 2 === 0 ) {
291304
b /= 2; // right shift
292305
}
306+
&nbsp;
293307
// `a` and `b` are both odd. Swap values such that `b` is the larger of the two values, and then set `b` to the difference (which is even)...
294308
if ( a &gt; b ) {
295309
t = b;
@@ -298,6 +312,7 @@ <h1><a href="../../../../../index.html">All files</a> / <a href="index.html">mat
298312
}
299313
b -= a; // b=0 iff b=a
300314
}
315+
&nbsp;
301316
// Restore common factors of 2...
302317
return k * a;
303318
}
@@ -313,7 +328,7 @@ <h1><a href="../../../../../index.html">All files</a> / <a href="index.html">mat
313328
<div class='footer quiet pad2 space-top1 center small'>
314329
Code coverage generated by
315330
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
316-
at 2024-11-11T15:20:25.784Z
331+
at 2024-11-17T09:32:57.284Z
317332
</div>
318333
<script src="../../../../../prettify.js"></script>
319334
<script>

‎math/base/special/gcdf/bitwise_binary_gcd.js.html

Lines changed: 23 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ <h1><a href="../../../../../index.html">All files</a> / <a href="index.html">mat
2525
<div class='fl pad1y space-right2'>
2626
<span class="strong">100% </span>
2727
<span class="quiet">Statements</span>
28-
<span class='fraction'>81/81</span>
28+
<span class='fraction'>86/86</span>
2929
</div>
3030

3131

@@ -46,7 +46,7 @@ <h1><a href="../../../../../index.html">All files</a> / <a href="index.html">mat
4646
<div class='fl pad1y space-right2'>
4747
<span class="strong">100% </span>
4848
<span class="quiet">Lines</span>
49-
<span class='fraction'>81/81</span>
49+
<span class='fraction'>86/86</span>
5050
</div>
5151

5252

@@ -144,7 +144,12 @@ <h1><a href="../../../../../index.html">All files</a> / <a href="index.html">mat
144144
<a name='L79'></a><a href='#L79'>79</a>
145145
<a name='L80'></a><a href='#L80'>80</a>
146146
<a name='L81'></a><a href='#L81'>81</a>
147-
<a name='L82'></a><a href='#L82'>82</a></td><td class="line-coverage quiet"><span class="cline-any cline-yes">1x</span>
147+
<a name='L82'></a><a href='#L82'>82</a>
148+
<a name='L83'></a><a href='#L83'>83</a>
149+
<a name='L84'></a><a href='#L84'>84</a>
150+
<a name='L85'></a><a href='#L85'>85</a>
151+
<a name='L86'></a><a href='#L86'>86</a>
152+
<a name='L87'></a><a href='#L87'>87</a></td><td class="line-coverage quiet"><span class="cline-any cline-yes">1x</span>
148153
<span class="cline-any cline-yes">1x</span>
149154
<span class="cline-any cline-yes">1x</span>
150155
<span class="cline-any cline-yes">1x</span>
@@ -194,23 +199,27 @@ <h1><a href="../../../../../index.html">All files</a> / <a href="index.html">mat
194199
<span class="cline-any cline-yes">1x</span>
195200
<span class="cline-any cline-yes">1x</span>
196201
<span class="cline-any cline-yes">7x</span>
202+
<span class="cline-any cline-yes">7x</span>
197203
<span class="cline-any cline-yes">10x</span>
198204
<span class="cline-any cline-yes">4x</span>
199205
<span class="cline-any cline-yes">4x</span>
200206
<span class="cline-any cline-yes">4x</span>
201207
<span class="cline-any cline-yes">4x</span>
202208
<span class="cline-any cline-yes">7x</span>
209+
<span class="cline-any cline-yes">7x</span>
203210
<span class="cline-any cline-yes">10x</span>
204211
<span class="cline-any cline-yes">5x</span>
205212
<span class="cline-any cline-yes">5x</span>
206213
<span class="cline-any cline-yes">7x</span>
214+
<span class="cline-any cline-yes">7x</span>
207215
<span class="cline-any cline-yes">10x</span>
208216
<span class="cline-any cline-yes">15x</span>
209217
<span class="cline-any cline-yes">15x</span>
210218
<span class="cline-any cline-yes">13x</span>
211219
<span class="cline-any cline-yes">13x</span>
212220
<span class="cline-any cline-yes">15x</span>
213221
<span class="cline-any cline-yes">15x</span>
222+
<span class="cline-any cline-yes">15x</span>
214223
<span class="cline-any cline-yes">6x</span>
215224
<span class="cline-any cline-yes">6x</span>
216225
<span class="cline-any cline-yes">6x</span>
@@ -219,6 +228,7 @@ <h1><a href="../../../../../index.html">All files</a> / <a href="index.html">mat
219228
<span class="cline-any cline-yes">15x</span>
220229
<span class="cline-any cline-yes">7x</span>
221230
<span class="cline-any cline-yes">7x</span>
231+
<span class="cline-any cline-yes">7x</span>
222232
<span class="cline-any cline-yes">10x</span>
223233
<span class="cline-any cline-yes">1x</span>
224234
<span class="cline-any cline-yes">1x</span>
@@ -246,7 +256,7 @@ <h1><a href="../../../../../index.html">All files</a> / <a href="index.html">mat
246256
'use strict';
247257
&nbsp;
248258
/**
249-
* Computes the greatest common divisor (gcd) of two single-precision floating point numbers using the binary GCD algorithm and bitwise operations.
259+
* Computes the greatest common divisor (gcd) of two single-precision floating-point numbers using the binary GCD algorithm and bitwise operations.
250260
*
251261
* ## References
252262
*
@@ -274,22 +284,26 @@ <h1><a href="../../../../../index.html">All files</a> / <a href="index.html">mat
274284
if ( b === 0 ) {
275285
return a;
276286
}
287+
&nbsp;
277288
// Reduce `a` and/or `b` to odd numbers and keep track of the greatest power of 2 dividing both `a` and `b`...
278-
while ( (a &amp; 1) === 0 &amp;&amp; (b &amp; 1) === 0 ) {
289+
while ( ( a &amp; 1 ) === 0 &amp;&amp; ( b &amp; 1 ) === 0 ) {
279290
a &gt;&gt;&gt;= 1; // right shift
280291
b &gt;&gt;&gt;= 1; // right shift
281292
k += 1;
282293
}
294+
&nbsp;
283295
// Reduce `a` to an odd number...
284-
while ( (a &amp; 1) === 0 ) {
296+
while ( ( a &amp; 1 ) === 0 ) {
285297
a &gt;&gt;&gt;= 1; // right shift
286298
}
299+
&nbsp;
287300
// Henceforth, `a` is always odd...
288301
while ( b ) {
289302
// Remove all factors of 2 in `b`, as they are not common...
290-
while ( (b &amp; 1) === 0 ) {
303+
while ( ( b &amp; 1 ) === 0 ) {
291304
b &gt;&gt;&gt;= 1; // right shift
292305
}
306+
&nbsp;
293307
// `a` and `b` are both odd. Swap values such that `b` is the larger of the two values, and then set `b` to the difference (which is even)...
294308
if ( a &gt; b ) {
295309
t = b;
@@ -298,6 +312,7 @@ <h1><a href="../../../../../index.html">All files</a> / <a href="index.html">mat
298312
}
299313
b -= a; // b=0 iff b=a
300314
}
315+
&nbsp;
301316
// Restore common factors of 2...
302317
return a &lt;&lt; k;
303318
}
@@ -313,7 +328,7 @@ <h1><a href="../../../../../index.html">All files</a> / <a href="index.html">mat
313328
<div class='footer quiet pad2 space-top1 center small'>
314329
Code coverage generated by
315330
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
316-
at 2024-11-11T15:20:25.784Z
331+
at 2024-11-17T09:32:57.284Z
317332
</div>
318333
<script src="../../../../../prettify.js"></script>
319334
<script>
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
[336,336,100,53,53,100,4,4,100,336,336,100,"f8bcfd832483d46068c710b6854d5f97bcb778fd","2024-11-11 10:18:16 -0500"]
2+
[346,346,100,53,53,100,4,4,100,346,346,100,"163a3e7fa2c7429f88b2dd69df42572f9ff0af9d","2024-11-17 01:29:47 -0800"]

‎math/base/special/gcdf/index.html

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ <h1><a href="../../../../../index.html">All files</a> math/base/special/gcdf/lib
2525
<div class='fl pad1y space-right2'>
2626
<span class="strong">100% </span>
2727
<span class="quiet">Statements</span>
28-
<span class='fraction'>336/336</span>
28+
<span class='fraction'>346/346</span>
2929
</div>
3030

3131

@@ -46,7 +46,7 @@ <h1><a href="../../../../../index.html">All files</a> math/base/special/gcdf/lib
4646
<div class='fl pad1y space-right2'>
4747
<span class="strong">100% </span>
4848
<span class="quiet">Lines</span>
49-
<span class='fraction'>336/336</span>
49+
<span class='fraction'>346/346</span>
5050
</div>
5151

5252

@@ -84,13 +84,13 @@ <h1><a href="../../../../../index.html">All files</a> math/base/special/gcdf/lib
8484
<div class="chart"><div class="cover-fill cover-full" style="width: 100%"></div><div class="cover-empty" style="width: 0%"></div></div>
8585
</td>
8686
<td data-value="100" class="pct high">100%</td>
87-
<td data-value="81" class="abs high">81/81</td>
87+
<td data-value="86" class="abs high">86/86</td>
8888
<td data-value="100" class="pct high">100%</td>
8989
<td data-value="15" class="abs high">15/15</td>
9090
<td data-value="100" class="pct high">100%</td>
9191
<td data-value="1" class="abs high">1/1</td>
9292
<td data-value="100" class="pct high">100%</td>
93-
<td data-value="81" class="abs high">81/81</td>
93+
<td data-value="86" class="abs high">86/86</td>
9494
</tr>
9595

9696
<tr>
@@ -99,13 +99,13 @@ <h1><a href="../../../../../index.html">All files</a> math/base/special/gcdf/lib
9999
<div class="chart"><div class="cover-fill cover-full" style="width: 100%"></div><div class="cover-empty" style="width: 0%"></div></div>
100100
</td>
101101
<td data-value="100" class="pct high">100%</td>
102-
<td data-value="81" class="abs high">81/81</td>
102+
<td data-value="86" class="abs high">86/86</td>
103103
<td data-value="100" class="pct high">100%</td>
104104
<td data-value="15" class="abs high">15/15</td>
105105
<td data-value="100" class="pct high">100%</td>
106106
<td data-value="1" class="abs high">1/1</td>
107107
<td data-value="100" class="pct high">100%</td>
108-
<td data-value="81" class="abs high">81/81</td>
108+
<td data-value="86" class="abs high">86/86</td>
109109
</tr>
110110

111111
<tr>
@@ -161,7 +161,7 @@ <h1><a href="../../../../../index.html">All files</a> math/base/special/gcdf/lib
161161
<div class='footer quiet pad2 space-top1 center small'>
162162
Code coverage generated by
163163
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
164-
at 2024-11-11T15:20:25.784Z
164+
at 2024-11-17T09:32:57.284Z
165165
</div>
166166
<script src="../../../../../prettify.js"></script>
167167
<script>

‎math/base/special/gcdf/index.js.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ <h1><a href="../../../../../index.html">All files</a> / <a href="index.html">mat
164164
'use strict';
165165
&nbsp;
166166
/**
167-
* Compute the greatest common divisor (gcd) of two single-precision floating point numbers.
167+
* Compute the greatest common divisor (gcd) of two single-precision floating-point numbers.
168168
*
169169
* @module @stdlib/math/base/special/gcdf
170170
*
@@ -190,7 +190,7 @@ <h1><a href="../../../../../index.html">All files</a> / <a href="index.html">mat
190190
<div class='footer quiet pad2 space-top1 center small'>
191191
Code coverage generated by
192192
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
193-
at 2024-11-11T15:20:25.784Z
193+
at 2024-11-17T09:32:57.284Z
194194
</div>
195195
<script src="../../../../../prettify.js"></script>
196196
<script>

‎math/base/special/gcdf/main.js.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ <h1><a href="../../../../../index.html">All files</a> / <a href="index.html">mat
263263
// MAIN //
264264
&nbsp;
265265
/**
266-
* Computes the greatest common divisor (gcd) of two single-precision floating point numbers.
266+
* Computes the greatest common divisor (gcd) of two single-precision floating-point numbers.
267267
*
268268
* @param {integer} a - first number
269269
* @param {integer} b - second number
@@ -319,7 +319,7 @@ <h1><a href="../../../../../index.html">All files</a> / <a href="index.html">mat
319319
<div class='footer quiet pad2 space-top1 center small'>
320320
Code coverage generated by
321321
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
322-
at 2024-11-11T15:20:25.784Z
322+
at 2024-11-17T09:32:57.284Z
323323
</div>
324324
<script src="../../../../../prettify.js"></script>
325325
<script>

‎math/base/special/gcdf/native.js.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ <h1><a href="../../../../../index.html">All files</a> / <a href="index.html">mat
193193
// MAIN //
194194
&nbsp;
195195
/**
196-
* Computes the greatest common divisor (gcd) of two single-precision floating point numbers.
196+
* Computes the greatest common divisor (gcd) of two single-precision floating-point numbers.
197197
*
198198
* @private
199199
* @param {number} a - first number
@@ -223,7 +223,7 @@ <h1><a href="../../../../../index.html">All files</a> / <a href="index.html">mat
223223
<div class='footer quiet pad2 space-top1 center small'>
224224
Code coverage generated by
225225
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
226-
at 2024-11-11T15:20:25.784Z
226+
at 2024-11-17T09:32:57.284Z
227227
</div>
228228
<script src="../../../../../prettify.js"></script>
229229
<script>

0 commit comments

Comments
 (0)
Please sign in to comment.