Skip to content

Commit

Permalink
style: move declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
kgryte committed Dec 1, 2023
1 parent b45d78c commit 8e56b51
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions lib/node_modules/@stdlib/blas/base/sdot/src/addon.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,20 +33,18 @@
* @return Node-API value
*/
static napi_value addon( napi_env env, napi_callback_info info ) {
napi_status status;

STDLIB_NAPI_ARGV( env, info, argv, argc, 5 );
STDLIB_NAPI_ARGV_INT64( env, N, argv, 0 );
STDLIB_NAPI_ARGV_INT64( env, strideX, argv, 2 );
STDLIB_NAPI_ARGV_INT64( env, strideY, argv, 4 );
STDLIB_NAPI_ARGV_STRIDED_FLOAT32ARRAY( env, X, N, strideX, argv, 1 );
STDLIB_NAPI_ARGV_STRIDED_FLOAT32ARRAY( env, Y, N, strideY, argv, 3 );

napi_value v;
status = napi_create_double( env, (double)c_sdot( N, (float *)X, strideX, (float *)Y, strideY ), &v );
assert( status == napi_ok );
napi_value v;
napi_status status = napi_create_double( env, (double)c_sdot( N, (float *)X, strideX, (float *)Y, strideY ), &v );
assert( status == napi_ok );

return v;
return v;
}

STDLIB_NAPI_MODULE_EXPORT_FCN( addon )

0 comments on commit 8e56b51

Please sign in to comment.