Skip to content

Commit 66b4609

Browse files
authored
refactor: use inbuilt macro instead of new variable for MAX_SAFE_NTH_LUCAS
PR-URL: #3980 Reviewed-by: Philipp Burckhardt <[email protected]>
1 parent 3a05645 commit 66b4609

File tree

3 files changed

+8
-9
lines changed

3 files changed

+8
-9
lines changed

lib/node_modules/@stdlib/math/base/special/negalucasf/lib/main.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,10 @@
2323
var isnanf = require( '@stdlib/math/base/assert/is-nanf' );
2424
var isIntegerf = require( '@stdlib/math/base/assert/is-integerf' );
2525
var absf = require( '@stdlib/math/base/special/absf' );
26+
var MAX_LUCAS = require( '@stdlib/constants/float32/max-safe-nth-lucas' );
2627
var NEGALUCAS = require( './negalucas.json' );
2728

2829

29-
// VARIABLES //
30-
31-
var MAX_LUCAS = 34;
32-
33-
3430
// MAIN //
3531

3632
/**

lib/node_modules/@stdlib/math/base/special/negalucasf/manifest.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@
3737
"libpath": [],
3838
"dependencies": [
3939
"@stdlib/math/base/napi/unary",
40-
"@stdlib/math/base/special/labs"
40+
"@stdlib/math/base/special/labs",
41+
"@stdlib/constants/float32/max-safe-nth-lucas"
4142
]
4243
},
4344
{
@@ -51,7 +52,8 @@
5152
"libraries": [],
5253
"libpath": [],
5354
"dependencies": [
54-
"@stdlib/math/base/special/labs"
55+
"@stdlib/math/base/special/labs",
56+
"@stdlib/constants/float32/max-safe-nth-lucas"
5557
]
5658
},
5759
{
@@ -65,7 +67,8 @@
6567
"libraries": [],
6668
"libpath": [],
6769
"dependencies": [
68-
"@stdlib/math/base/special/labs"
70+
"@stdlib/math/base/special/labs",
71+
"@stdlib/constants/float32/max-safe-nth-lucas"
6972
]
7073
}
7174
]

lib/node_modules/@stdlib/math/base/special/negalucasf/src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
#include "stdlib/math/base/special/negalucasf.h"
2020
#include "stdlib/math/base/special/labs.h"
21-
#define STDLIB_CONSTANT_FLOAT32_MAX_SAFE_NTH_LUCAS 34
21+
#include "stdlib/constants/float32/max_safe_nth_lucas.h"
2222

2323
static const int32_t negalucasf_value[ 35 ] = {
2424
2,

0 commit comments

Comments
 (0)