Skip to content

Commit ec2e5e3

Browse files
committed
feat: add math/base/special/tanhf
--- 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: na - 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 0e4a197 commit ec2e5e3

File tree

1 file changed

+19
-3
lines changed
  • lib/node_modules/@stdlib/math/base/special/tanhf/include/stdlib/math/base/special

1 file changed

+19
-3
lines changed

lib/node_modules/@stdlib/math/base/special/tanhf/include/stdlib/math/base/special/tanhf.h

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,23 @@
1616
* limitations under the License.
1717
*/
1818

19-
#include "stdlib/math/base/special/tanhf.h"
20-
#include "stdlib/math/base/napi/unary.h"
19+
#ifndef STDLIB_MATH_BASE_SPECIAL_TANHF_H
20+
#define STDLIB_MATH_BASE_SPECIAL_TANHF_H
2121

22-
STDLIB_MATH_BASE_NAPI_MODULE_F_F( stdlib_base_tanhf )
22+
/*
23+
* If C++, prevent name mangling so that the compiler emits a binary file having undecorated names, thus mirroring the behavior of a C compiler.
24+
*/
25+
#ifdef __cplusplus
26+
extern "C" {
27+
#endif
28+
29+
/**
30+
* Computes the hyperbolic tangent of a single-precision floating-point number.
31+
*/
32+
float stdlib_base_tanhf( const float x );
33+
34+
#ifdef __cplusplus
35+
}
36+
#endif
37+
38+
#endif // !STDLIB_MATH_BASE_SPECIAL_TANHF_H

0 commit comments

Comments
 (0)