Skip to content

feat: add blas/ext/base/wasm/dapxsumkbn2 #5630

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 11 commits into
base: develop
Choose a base branch
from
Prev Previous commit
Next Next commit
chore: add web assembly files
---
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: passed
  - 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
---

---
type: pre_push_report
description: Results of running various checks prior to pushing changes.
report:
  - task: run_javascript_examples
    status: na
  - task: run_c_examples
    status: na
  - task: run_cpp_examples
    status: na
  - task: run_javascript_readme_examples
    status: na
  - task: run_c_benchmarks
    status: na
  - task: run_cpp_benchmarks
    status: na
  - task: run_fortran_benchmarks
    status: na
  - task: run_javascript_benchmarks
    status: na
  - task: run_julia_benchmarks
    status: na
  - task: run_python_benchmarks
    status: na
  - task: run_r_benchmarks
    status: na
  - task: run_javascript_tests
    status: na
---
  • Loading branch information
0PrashantYadav0 committed Mar 1, 2025
commit cf939ede29b6a8fd95ef131be21a4f10804ed2f9
24 changes: 23 additions & 1 deletion lib/node_modules/@stdlib/blas/ext/base/dapxsumkbn2/manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"options": {
"task": "build"
"task": "build",
"wasm": false
},
"fields": [
{
Expand All @@ -27,6 +28,7 @@
"confs": [
{
"task": "build",
"wasm": false,
"src": [
"./src/main.c"
],
Expand All @@ -49,6 +51,7 @@
},
{
"task": "benchmark",
"wasm": false,
"src": [
"./src/main.c"
],
Expand All @@ -65,6 +68,25 @@
},
{
"task": "examples",
"wasm": false,
"src": [
"./src/main.c"
],
"include": [
"./include"
],
"libraries": [],
"libpath": [],
"dependencies": [
"@stdlib/math/base/assert/is-nan",
"@stdlib/math/base/special/abs",
"@stdlib/blas/base/shared",
"@stdlib/strided/base/stride2offset"
]
},
{
"task": "build",
"wasm": true,
"src": [
"./src/main.c"
],
Expand Down
24 changes: 1 addition & 23 deletions lib/node_modules/@stdlib/blas/ext/base/dnansumkbn2/manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"options": {
"task": "build",
"wasm": false
"task": "build"
},
"fields": [
{
Expand All @@ -28,7 +27,6 @@
"confs": [
{
"task": "build",
"wasm": false,
"src": [
"./src/main.c"
],
Expand All @@ -51,7 +49,6 @@
},
{
"task": "benchmark",
"wasm": false,
"src": [
"./src/main.c"
],
Expand All @@ -69,25 +66,6 @@
},
{
"task": "examples",
"wasm": false,
"src": [
"./src/main.c"
],
"include": [
"./include"
],
"libraries": [],
"libpath": [],
"dependencies": [
"@stdlib/math/base/assert/is-nan",
"@stdlib/math/base/special/abs",
"@stdlib/blas/base/shared",
"@stdlib/strided/base/stride2offset"
]
},
{
"task": "build",
"wasm": true,
"src": [
"./src/main.c"
],
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
/**
* @license Apache-2.0
*
* Copyright (c) 2025 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

'use strict';

// MODULES //

var base64ToUint8Array = require( '@stdlib/string/base/base64-to-uint8array' );


// MAIN //

var wasm = base64ToUint8Array( 'AGFzbQEAAAAADwhkeWxpbmsuMAEEAAAAAAEVA2AAAGAEf3x/fwF8YAV/fH9/fwF8Ag8BA2VudgZtZW1vcnkCAAADBAMAAQIHVwMRX193YXNtX2NhbGxfY3RvcnMAABpzdGRsaWJfc3RyaWRlZF9kYXB4c3Vta2JuMgABInN0ZGxpYl9zdHJpZGVkX2RhcHhzdW1rYm4yX25kYXJyYXkAAgrNAQMDAAELHAAgACABIAIgA0EBIABrIANsQQAgA0EATBsQAgupAQIFfAF/IABBAEwEQEQAAAAAAAAAAA8LIAMEQANAIAAgCkZFBEAgCCABIAIgBEEDdGorAwCgIgcgBSAFIAegIgmhoCAFIAcgCaGgIAWZIAeZZhsiBSAGIAYgBaAiB6GgIAYgBSAHoaAgBpkgBZlmG6AhCCAKQQFqIQogAyAEaiEEIAkhBSAHIQYMAQsLIAggBSAGoKAPCyABIAIgBEEDdGorAwCgIAC4ogs=' );


// EXPORTS //

module.exports = wasm;
Binary file not shown.
125 changes: 125 additions & 0 deletions lib/node_modules/@stdlib/blas/ext/base/wasm/dapxsumkbn2/src/main.wat
Original file line number Diff line number Diff line change
@@ -0,0 +1,125 @@
(module
(type (;0;) (func))
(type (;1;) (func (param i32 f64 i32 i32) (result f64)))
(type (;2;) (func (param i32 f64 i32 i32 i32) (result f64)))
(import "env" "memory" (memory (;0;) 0))
(func (;0;) (type 0)
nop)
(func (;1;) (type 1) (param i32 f64 i32 i32) (result f64)
local.get 0
local.get 1
local.get 2
local.get 3
i32.const 1
local.get 0
i32.sub
local.get 3
i32.mul
i32.const 0
local.get 3
i32.const 0
i32.le_s
select
call 2)
(func (;2;) (type 2) (param i32 f64 i32 i32 i32) (result f64)
(local f64 f64 f64 f64 f64 i32)
local.get 0
i32.const 0
i32.le_s
if ;; label = @1
f64.const 0x0p+0 (;=0;)
return
end
local.get 3
if ;; label = @1
loop ;; label = @2
local.get 0
local.get 10
i32.eq
i32.eqz
if ;; label = @3
local.get 8
local.get 1
local.get 2
local.get 4
i32.const 3
i32.shl
i32.add
f64.load
f64.add
local.tee 7
local.get 5
local.get 5
local.get 7
f64.add
local.tee 9
f64.sub
f64.add
local.get 5
local.get 7
local.get 9
f64.sub
f64.add
local.get 5
f64.abs
local.get 7
f64.abs
f64.ge
select
local.tee 5
local.get 6
local.get 6
local.get 5
f64.add
local.tee 7
f64.sub
f64.add
local.get 6
local.get 5
local.get 7
f64.sub
f64.add
local.get 6
f64.abs
local.get 5
f64.abs
f64.ge
select
f64.add
local.set 8
local.get 10
i32.const 1
i32.add
local.set 10
local.get 3
local.get 4
i32.add
local.set 4
local.get 9
local.set 5
local.get 7
local.set 6
br 1 (;@2;)
end
end
local.get 8
local.get 5
local.get 6
f64.add
f64.add
return
end
local.get 1
local.get 2
local.get 4
i32.const 3
i32.shl
i32.add
f64.load
f64.add
local.get 0
f64.convert_i32_u
f64.mul)
(export "__wasm_call_ctors" (func 0))
(export "stdlib_strided_dapxsumkbn2" (func 1))
(export "stdlib_strided_dapxsumkbn2_ndarray" (func 2)))