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
feat: reverted unwanted changes
---
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 464504b4fce54ce253cd9d4564d9bf397ced7029
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
/**
* @license Apache-2.0
*
* Copyright (c) 2024 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/fwF8Ag8BA2VudgZtZW1vcnkCAAADBAMAAQIHVQMRX193YXNtX2NhbGxfY3RvcnMAABlzdGRsaWJfc3RyaWRlZF9kYXB4c3Vta2JuAAEhc3RkbGliX3N0cmlkZWRfZGFweHN1bWtibl9uZGFycmF5AAIKqQEDAwABCxwAIAAgASACIANBASAAayADbEEAIANBAEwbEAILhQECA3wBfyAAQQBMBEBEAAAAAAAAAAAPCyADBEADQCAAIAhGRQRAIAUgASACIARBA3RqKwMAoCIFIAYgBiAFoCIHoaAgBiAFIAehoCAGmSAFmWYboCEFIAhBAWohCCADIARqIQQgByEGDAELCyAGIAWgDwsgASACIARBA3RqKwMAoCAAuKIL' );


// EXPORTS //

module.exports = wasm;
Binary file not shown.
118 changes: 118 additions & 0 deletions lib/node_modules/@stdlib/blas/ext/base/wasm/dapxsumkbn/src/main.wat
Original file line number Diff line number Diff line change
@@ -0,0 +1,118 @@
;; @license Apache-2.0
;;
;; Copyright (c) 2024 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.

(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 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 8
i32.eq
i32.eqz
if ;; label = @3
local.get 5
local.get 1
local.get 2
local.get 4
i32.const 3
i32.shl
i32.add
f64.load
f64.add
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 5
local.get 8
i32.const 1
i32.add
local.set 8
local.get 3
local.get 4
i32.add
local.set 4
local.get 7
local.set 6
br 1 (;@2;)
end
end
local.get 6
local.get 5
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_dapxsumkbn" (func 1))
(export "stdlib_strided_dapxsumkbn_ndarray" (func 2)))
Loading