File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed
lib/node_modules/@stdlib/math/base/special/fibonaccif Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 2222
2323var bench = require ( '@stdlib/bench' ) ;
2424var randu = require ( '@stdlib/random/base/randu' ) ;
25+ var Int32Array = require ( '@stdlib/array/int32' ) ;
2526var float64ToFloat32 = require ( '@stdlib/number/float64/base/to-float32' ) ;
2627var floorf = require ( '@stdlib/math/base/special/floorf' ) ;
2728var roundf = require ( '@stdlib/math/base/special/roundf' ) ;
@@ -143,7 +144,7 @@ bench( pkg+'::recursion_memoized', function benchmark( b ) {
143144 var y ;
144145 var i ;
145146
146- arr = new Array ( 37 ) ;
147+ arr = new Int32Array ( 37 ) ;
147148 arr [ 0 ] = 0 ;
148149 arr [ 1 ] = 1 ;
149150 arr [ 2 ] = 1 ;
@@ -182,7 +183,7 @@ bench( pkg+'::naive_iterative', function benchmark( b ) {
182183 var arr ;
183184 var i ;
184185
185- arr = new Array ( n + 1 ) ;
186+ arr = new Int32Array ( n + 1 ) ;
186187 arr [ 0 ] = 0 ;
187188 arr [ 1 ] = 1 ;
188189 arr [ 2 ] = 1 ;
@@ -252,7 +253,7 @@ bench( pkg+'::iterative_memoized', function benchmark( b ) {
252253 var y ;
253254 var i ;
254255
255- arr = new Array ( 37 ) ;
256+ arr = new Int32Array ( 37 ) ;
256257 arr [ 0 ] = 0 ;
257258 arr [ 1 ] = 1 ;
258259 arr [ 2 ] = 1 ;
@@ -338,7 +339,7 @@ bench( pkg+'::iterative_doubling_memoized', function benchmark( b ) {
338339 var y ;
339340 var i ;
340341
341- arr = new Array ( 37 ) ;
342+ arr = new Int32Array ( 37 ) ;
342343 arr [ 0 ] = 0 ;
343344 arr [ 1 ] = 1 ;
344345 arr [ 2 ] = 1 ;
Original file line number Diff line number Diff line change @@ -80,7 +80,7 @@ tape( 'the function returns the nth Fibonacci number', function test( t ) {
8080 t . end ( ) ;
8181} ) ;
8282
83- tape ( 'if provided nonnegative integers greater than `78 `, the function returns `NaN`' , function test ( t ) {
83+ tape ( 'if provided nonnegative integers greater than `36 `, the function returns `NaN`' , function test ( t ) {
8484 var i ;
8585 var v ;
8686 for ( i = 37 ; i < 500 ; i ++ ) {
You can’t perform that action at this time.
0 commit comments