Skip to content

Commit f392242

Browse files
chore: revert changes
--- 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: na - task: lint_typescript_tests status: na - task: lint_license_headers status: passed ---
1 parent 98dc69f commit f392242

File tree

2 files changed

+0
-644
lines changed
  • lib/node_modules/@stdlib/math/base/napi/ternary

2 files changed

+0
-644
lines changed

lib/node_modules/@stdlib/math/base/napi/ternary/include/stdlib/math/base/napi/ternary.h

Lines changed: 0 additions & 242 deletions
Original file line numberDiff line numberDiff line change
@@ -19,247 +19,6 @@
1919
#ifndef STDLIB_MATH_BASE_NAPI_TERNARY_H
2020
#define STDLIB_MATH_BASE_NAPI_TERNARY_H
2121

22-
<<<<<<< HEAD
23-
#include <node_api.h>
24-
#include <assert.h>
25-
26-
/**
27-
* Macro for registering a Node-API module exporting an interface invoking a ternary function accepting and returning double-precision floating-point numbers.
28-
*
29-
* @param fcn ternary function
30-
*
31-
* @example
32-
* static double add( const double x, const double y, const double z ) {
33-
* return x + y + z;
34-
* }
35-
*
36-
* // ...
37-
*
38-
* // Register a Node-API module:
39-
* STDLIB_MATH_BASE_NAPI_MODULE_DDD_D( add );
40-
*/
41-
#define STDLIB_MATH_BASE_NAPI_MODULE_DDD_D( fcn ) \
42-
static napi_value stdlib_math_base_napi_ddd_d_wrapper( \
43-
napi_env env, \
44-
napi_callback_info info \
45-
) { \
46-
return stdlib_math_base_napi_ddd_d( env, info, fcn ); \
47-
}; \
48-
static napi_value stdlib_math_base_napi_ddd_d_init( \
49-
napi_env env, \
50-
napi_value exports \
51-
) { \
52-
napi_value fcn; \
53-
napi_status status = napi_create_function( \
54-
env, \
55-
"exports", \
56-
NAPI_AUTO_LENGTH, \
57-
stdlib_math_base_napi_ddd_d_wrapper, \
58-
NULL, \
59-
&fcn \
60-
); \
61-
assert( status == napi_ok ); \
62-
return fcn; \
63-
}; \
64-
NAPI_MODULE( NODE_GYP_MODULE_NAME, stdlib_math_base_napi_ddd_d_init )
65-
66-
/**
67-
* Macro for registering a Node-API module exporting an interface invoking a ternary function accepting and returning single-precision floating-point numbers.
68-
*
69-
* @param fcn ternary function
70-
*
71-
* @example
72-
* static float addf( const float x, const float y, const float z ) {
73-
* return x + y + z;
74-
* }
75-
*
76-
* // ...
77-
*
78-
* // Register a Node-API module:
79-
* STDLIB_MATH_BASE_NAPI_MODULE_FFF_F( addf );
80-
*/
81-
#define STDLIB_MATH_BASE_NAPI_MODULE_FFF_F( fcn ) \
82-
static napi_value stdlib_math_base_napi_fff_f_wrapper( \
83-
napi_env env, \
84-
napi_callback_info info \
85-
) { \
86-
return stdlib_math_base_napi_fff_f( env, info, fcn ); \
87-
}; \
88-
static napi_value stdlib_math_base_napi_fff_f_init( \
89-
napi_env env, \
90-
napi_value exports \
91-
) { \
92-
napi_value fcn; \
93-
napi_status status = napi_create_function( \
94-
env, \
95-
"exports", \
96-
NAPI_AUTO_LENGTH, \
97-
stdlib_math_base_napi_fff_f_wrapper, \
98-
NULL, \
99-
&fcn \
100-
); \
101-
assert( status == napi_ok ); \
102-
return fcn; \
103-
}; \
104-
NAPI_MODULE( NODE_GYP_MODULE_NAME, stdlib_math_base_napi_fff_f_init )
105-
106-
/**
107-
* Macro for registering a Node-API module exporting an interface invoking a ternary function accepting a double-precision floating-point number and two signed 32-bit integers and returning a double-precision floating-point number.
108-
*
109-
* @param fcn ternary function
110-
*
111-
* @example
112-
* #include <stdint.h>
113-
*
114-
* static double fcn( const double x, const int_32 y, const int_32 z ) {
115-
* // ...
116-
* }
117-
*
118-
* // ...
119-
*
120-
* // Register a Node-API module:
121-
* STDLIB_MATH_BASE_NAPI_MODULE_DII_D( fcn );
122-
*/
123-
#define STDLIB_MATH_BASE_NAPI_MODULE_DII_D( fcn ) \
124-
static napi_value stdlib_math_base_napi_dii_d_wrapper( \
125-
napi_env env, \
126-
napi_callback_info info \
127-
) { \
128-
return stdlib_math_base_napi_dii_d( env, info, fcn ); \
129-
}; \
130-
static napi_value stdlib_math_base_napi_dii_d_init( \
131-
napi_env env, \
132-
napi_value exports \
133-
) { \
134-
napi_value fcn; \
135-
napi_status status = napi_create_function( \
136-
env, \
137-
"exports", \
138-
NAPI_AUTO_LENGTH, \
139-
stdlib_math_base_napi_dii_d_wrapper, \
140-
NULL, \
141-
&fcn \
142-
); \
143-
assert( status == napi_ok ); \
144-
return fcn; \
145-
}; \
146-
NAPI_MODULE( NODE_GYP_MODULE_NAME, stdlib_math_base_napi_dii_d_init )
147-
148-
/**
149-
* Macro for registering a Node-API module exporting an interface invoking a ternary function accepting a double-precision floating-point number, a signed 32-bit integers and a double-precision floating-point number and returning a double-precision floating-point number.
150-
*
151-
* @param fcn ternary function
152-
*
153-
* @example
154-
* #include <stdint.h>
155-
*
156-
* static double fcn( const double x, const int_32 y, const double z ) {
157-
* // ...
158-
* }
159-
*
160-
* // ...
161-
*
162-
* // Register a Node-API module:
163-
* STDLIB_MATH_BASE_NAPI_MODULE_DID_D( fcn );
164-
*/
165-
#define STDLIB_MATH_BASE_NAPI_MODULE_DID_D( fcn ) \
166-
static napi_value stdlib_math_base_napi_did_d_wrapper( \
167-
napi_env env, \
168-
napi_callback_info info \
169-
) { \
170-
return stdlib_math_base_napi_did_d( env, info, fcn ); \
171-
}; \
172-
static napi_value stdlib_math_base_napi_did_d_init( \
173-
napi_env env, \
174-
napi_value exports \
175-
) { \
176-
napi_value fcn; \
177-
napi_status status = napi_create_function( \
178-
env, \
179-
"exports", \
180-
NAPI_AUTO_LENGTH, \
181-
stdlib_math_base_napi_did_d_wrapper, \
182-
NULL, \
183-
&fcn \
184-
); \
185-
assert( status == napi_ok ); \
186-
return fcn; \
187-
}; \
188-
NAPI_MODULE( NODE_GYP_MODULE_NAME, stdlib_math_base_napi_did_d_init )
189-
190-
/**
191-
* Macro for registering a Node-API module exporting an interface invoking a ternary function accepting two signed 32-bit integers and a double-precision floating-point number and returning a double-precision floating-point number.
192-
*
193-
* @param fcn ternary function
194-
*
195-
* @example
196-
* #include <stdint.h>
197-
*
198-
* static double fcn( const int_32 x, const int_32 y, const double z ) {
199-
* // ...
200-
* }
201-
*
202-
* // ...
203-
*
204-
* // Register a Node-API module:
205-
* STDLIB_MATH_BASE_NAPI_MODULE_IID_D( fcn );
206-
*/
207-
#define STDLIB_MATH_BASE_NAPI_MODULE_IID_D( fcn ) \
208-
static napi_value stdlib_math_base_napi_iid_d_wrapper( \
209-
napi_env env, \
210-
napi_callback_info info \
211-
) { \
212-
return stdlib_math_base_napi_iid_d( env, info, fcn ); \
213-
}; \
214-
static napi_value stdlib_math_base_napi_iid_d_init( \
215-
napi_env env, \
216-
napi_value exports \
217-
) { \
218-
napi_value fcn; \
219-
napi_status status = napi_create_function( \
220-
env, \
221-
"exports", \
222-
NAPI_AUTO_LENGTH, \
223-
stdlib_math_base_napi_iid_d_wrapper, \
224-
NULL, \
225-
&fcn \
226-
); \
227-
assert( status == napi_ok ); \
228-
return fcn; \
229-
}; \
230-
NAPI_MODULE( NODE_GYP_MODULE_NAME, stdlib_math_base_napi_iid_d_init )
231-
232-
/*
233-
* If C++, prevent name mangling so that the compiler emits a ternary file having undecorated names, thus mirroring the behavior of a C compiler.
234-
*/
235-
#ifdef __cplusplus
236-
extern "C" {
237-
#endif
238-
239-
/**
240-
* Invokes a ternary function accepting and returning double-precision floating-point numbers.
241-
*/
242-
napi_value stdlib_math_base_napi_ddd_d( napi_env env, napi_callback_info info, double (*fcn)( double, double, double ) );
243-
244-
/**
245-
* Invokes a ternary function accepting and returning single-precision floating-point numbers.
246-
*/
247-
napi_value stdlib_math_base_napi_fff_f( napi_env env, napi_callback_info info, float (*fcn)( float, float, float ) );
248-
249-
/**
250-
* Invokes a ternary function accepting a double-precision floating-point number and two signed 32-bit integers and returning a double-precision floating-point number.
251-
*/
252-
napi_value stdlib_math_base_napi_dii_d( napi_env env, napi_callback_info info, double (*fcn)( double, int32_t, int32_t ) );
253-
254-
/**
255-
* Invokes a ternary function accepting two signed 32-bit integers and a double-precision floating-point number and returning a double-precision floating-point number.
256-
*/
257-
napi_value stdlib_math_base_napi_iid_d( napi_env env, napi_callback_info info, double (*fcn)( int32_t, int32_t, double ) );
258-
259-
#ifdef __cplusplus
260-
}
261-
#endif
262-
=======
26322
// NOTE: keep in alphabetical order...
26423
#include "stdlib/math/base/napi/ternary/ccc_c.h"
26524
#include "stdlib/math/base/napi/ternary/ddd_d.h"
@@ -268,6 +27,5 @@ napi_value stdlib_math_base_napi_iid_d( napi_env env, napi_callback_info info, d
26827
#include "stdlib/math/base/napi/ternary/iid_d.h"
26928
#include "stdlib/math/base/napi/ternary/iii_d.h"
27029
#include "stdlib/math/base/napi/ternary/zzz_z.h"
271-
>>>>>>> develop
27230

27331
#endif // !STDLIB_MATH_BASE_NAPI_TERNARY_H

0 commit comments

Comments
 (0)