From 07358fa59b699f1bbf8911344ec349038dc0eb40 Mon Sep 17 00:00:00 2001 From: gururaj1512 Date: Sun, 21 Dec 2025 17:03:22 +0530 Subject: [PATCH 1/2] feat: add C API for constants/float16/exponent-bias --- 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: passed - 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 --- --- .../constants/float16/exponent-bias/README.md | 56 ++++++++++++++++++- .../stdlib/constants/float16/exponent_bias.h | 27 +++++++++ .../float16/exponent-bias/manifest.json | 36 ++++++++++++ .../float16/exponent-bias/package.json | 1 + 4 files changed, 119 insertions(+), 1 deletion(-) create mode 100644 lib/node_modules/@stdlib/constants/float16/exponent-bias/include/stdlib/constants/float16/exponent_bias.h create mode 100644 lib/node_modules/@stdlib/constants/float16/exponent-bias/manifest.json diff --git a/lib/node_modules/@stdlib/constants/float16/exponent-bias/README.md b/lib/node_modules/@stdlib/constants/float16/exponent-bias/README.md index 4daf98f6375f..ebbc63accddf 100644 --- a/lib/node_modules/@stdlib/constants/float16/exponent-bias/README.md +++ b/lib/node_modules/@stdlib/constants/float16/exponent-bias/README.md @@ -18,7 +18,7 @@ limitations under the License. --> -# Bias +# FLOAT32_EXPONENT_BIAS > The bias of a [half-precision floating-point number's][half-precision-floating-point-format] exponent. @@ -62,6 +62,60 @@ console.log( FLOAT16_EXPONENT_BIAS ); + + +* * * + +
+ +## C APIs + + + +
+ +
+ + + + + +
+ +### Usage + +```c +#include "stdlib/constants/float16/exponent_bias.h" +``` + +#### STDLIB_CONSTANT_FLOAT16_EXPONENT_BIAS + +Macro for the bias of a [half-precision floating-point number's][half-precision-floating-point-format] exponent. + +
+ + + + + +
+ +
+ + + + + +
+ +
+ + + +
+ + +