Skip to content

Commit

Permalink
Auto-generated commit
Browse files Browse the repository at this point in the history
  • Loading branch information
stdlib-bot committed Aug 1, 2024
1 parent 5e9ae1e commit b0b0427
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@

<details>

- [`eb7f8ed`](https://github.com/stdlib-js/stdlib/commit/eb7f8ed40d9a514a673f5152484f62042dc24e67) - **docs:** add missing `stdint` includes [(#2728)](https://github.com/stdlib-js/stdlib/pull/2728) _(by Gunj Joshi, Athan Reines)_
- [`46cda32`](https://github.com/stdlib-js/stdlib/commit/46cda325a622274755194c2dd6415d3d04ab5a5b) - **feat:** add `LL_D` in `math/base/napi/binary` [(#2726)](https://github.com/stdlib-js/stdlib/pull/2726) _(by Gunj Joshi, Athan Reines)_

</details>
Expand Down
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -644,6 +644,8 @@ When used, this macro should be used **instead of** `NAPI_MODULE`. The macro inc
Macro for registering a Node-API module exporting an interface for invoking a binary function accepting and returning signed 32-bit integers.
```c
#include <stdint.h>
static int32_t add( const int32_t x, const int32_t y ) {
return x + y;
}
Expand All @@ -665,6 +667,8 @@ When used, this macro should be used **instead of** `NAPI_MODULE`. The macro inc
Macro for registering a Node-API module exporting an interface for invoking a binary function accepting signed 32-bit integers and returning a double-precision floating-point number.

```c
#include <stdint.h>

static double add( const int32_t x, const int32_t y ) {
return x + y;
}
Expand Down Expand Up @@ -974,7 +978,7 @@ static double fcn( const int64_t x, const int64_t y ) {
// ...

// Register a Node-API module:
STDLIB_MATH_BASE_NAPI_MODULE_II_D( fcn );
STDLIB_MATH_BASE_NAPI_MODULE_LL_D( fcn );
```
The macro expects the following arguments:
Expand Down
4 changes: 4 additions & 0 deletions include/stdlib/math/base/napi/binary.h
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@
* @param fcn binary function
*
* @example
* #include <stdint.h>
*
* static int_32 add( const int_32 x, const int_32 y ) {
* return x + y;
* }
Expand Down Expand Up @@ -110,6 +112,8 @@
* @param fcn binary function
*
* @example
* #include <stdint.h>
*
* static double add( const int_32 x, const int_32 y ) {
* return x + y;
* }
Expand Down

0 comments on commit b0b0427

Please sign in to comment.