Skip to content

Commit 648f2ad

Browse files
committed
feat: add C header and manifest.json
--- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown status: passed - task: lint_package_json status: na - task: lint_repl_help status: na - task: lint_javascript_src status: na - task: lint_javascript_cli status: na - task: lint_javascript_examples status: na - task: lint_javascript_tests status: na - task: lint_javascript_benchmarks status: na - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: na - task: lint_c_examples status: na - task: lint_c_benchmarks status: na - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: passed - task: lint_typescript_tests status: na - task: lint_license_headers status: passed ---
1 parent 1b2522b commit 648f2ad

File tree

3 files changed

+117
-0
lines changed

3 files changed

+117
-0
lines changed

lib/node_modules/@stdlib/constants/float16/max-safe-nth-fibonacci/README.md

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,60 @@ for ( i = 0; i < 25; i++ ) {
9090

9191
<!-- /.examples -->
9292

93+
<!-- C interface documentation. -->
94+
95+
* * *
96+
97+
<section class="c">
98+
99+
## C APIs
100+
101+
<!-- Section to include introductory text. Make sure to keep an empty line after the intro `section` element and another before the `/section` close. -->
102+
103+
<section class="intro">
104+
105+
</section>
106+
107+
<!-- /.intro -->
108+
109+
<!-- C usage documentation. -->
110+
111+
<section class="usage">
112+
113+
### Usage
114+
115+
```c
116+
#include "stdlib/constants/float16/max_safe_nth_fibonacci.h"
117+
```
118+
119+
#### STDLIB_CONSTANT_FLOAT16_MAX_SAFE_NTH_FIBONACCI
120+
121+
Macro for the maximum [safe][safe-integers] nth [Fibonacci number][fibonacci-number] when stored in [half-precision floating-point][ieee754] format.
122+
123+
</section>
124+
125+
<!-- /.usage -->
126+
127+
<!-- C API usage notes. Make sure to keep an empty line after the `section` element and another before the `/section` close. -->
128+
129+
<section class="notes">
130+
131+
</section>
132+
133+
<!-- /.notes -->
134+
135+
<!-- C API usage examples. -->
136+
137+
<section class="examples">
138+
139+
</section>
140+
141+
<!-- /.examples -->
142+
143+
</section>
144+
145+
<!-- /.c -->
146+
93147
<!-- Section for related `stdlib` packages. Do not manually edit this section, as it is automatically populated. -->
94148

95149
<section class="related">
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
/**
2+
* @license Apache-2.0
3+
*
4+
* Copyright (c) 2024 The Stdlib Authors.
5+
*
6+
* Licensed under the Apache License, Version 2.0 (the "License");
7+
* you may not use this file except in compliance with the License.
8+
* You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing, software
13+
* distributed under the License is distributed on an "AS IS" BASIS,
14+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
* See the License for the specific language governing permissions and
16+
* limitations under the License.
17+
*/
18+
19+
#ifndef STDLIB_CONSTANTS_FLOAT16_MAX_SAFE_NTH_FIBONACCI_H
20+
#define STDLIB_CONSTANTS_FLOAT16_MAX_SAFE_NTH_FIBONACCI_H
21+
22+
/**
23+
* Macro for the maximum safe nth Fibonacci number when stored in half-precision floating-point format.
24+
*/
25+
#define STDLIB_CONSTANT_FLOAT16_MAX_SAFE_NTH_FIBONACCI 17
26+
27+
#endif // !STDLIB_CONSTANTS_FLOAT16_MAX_SAFE_NTH_FIBONACCI_H
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
"options": {},
3+
"fields": [
4+
{
5+
"field": "src",
6+
"resolve": true,
7+
"relative": true
8+
},
9+
{
10+
"field": "include",
11+
"resolve": true,
12+
"relative": true
13+
},
14+
{
15+
"field": "libraries",
16+
"resolve": false,
17+
"relative": false
18+
},
19+
{
20+
"field": "libpath",
21+
"resolve": true,
22+
"relative": false
23+
}
24+
],
25+
"confs": [
26+
{
27+
"src": [],
28+
"include": [
29+
"./include"
30+
],
31+
"libraries": [],
32+
"libpath": [],
33+
"dependencies": []
34+
}
35+
]
36+
}

0 commit comments

Comments
 (0)