File tree Expand file tree Collapse file tree 6 files changed +119
-2
lines changed 
lib/node_modules/@stdlib/blas/ext/base/wasm/dapxsumors Expand file tree Collapse file tree 6 files changed +119
-2
lines changed Original file line number Diff line number Diff line change 1+ /** 
2+ * @license  Apache-2.0 
3+ * 
4+ * Copyright (c) 2025 The Stdlib Authors. 
5+ * 
6+ * Licensed under the Apache License, Version 2.0 (the "License"); 
7+ * you may not use this file except in compliance with the License. 
8+ * You may obtain a copy of the License at 
9+ * 
10+ *    http://www.apache.org/licenses/LICENSE-2.0 
11+ * 
12+ * Unless required by applicable law or agreed to in writing, software 
13+ * distributed under the License is distributed on an "AS IS" BASIS, 
14+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 
15+ * See the License for the specific language governing permissions and 
16+ * limitations under the License. 
17+ */ 
18+ 
19+ 'use strict' ; 
20+ 
21+ // MODULES // 
22+ 
23+ var  base64ToUint8Array  =  require (  '@stdlib/string/base/base64-to-uint8array'  ) ; 
24+ 
25+ 
26+ // MAIN // 
27+ 
28+ var  wasm  =  base64ToUint8Array (  'AGFzbQEAAAAADwhkeWxpbmsuMAEEAAAAAAEVA2AAAGAEf3x/fwF8YAV/fH9/fwF8Ag8BA2VudgZtZW1vcnkCAAADBAMAAQIHVQMRX193YXNtX2NhbGxfY3RvcnMAABlzdGRsaWJfc3RyaWRlZF9kYXB4c3Vtb3JzAAEhc3RkbGliX3N0cmlkZWRfZGFweHN1bW9yc19uZGFycmF5AAIKhwEDAwABCxwAIAAgASACIANBASAAayADbEEAIANBAEwbEAILZAIBfAF/IABBAEwEQEQAAAAAAAAAAA8LAkAgAwRAA0AgACAGRg0CIAZBAWohBiAFIAEgAiAEQQN0aisDAKCgIQUgAyAEaiEEDAALAAsgASACIARBA3RqKwMAoCAAuKIhBQsgBQs='  ) ; 
29+ 
30+ 
31+ // EXPORTS // 
32+ 
33+ module . exports  =  wasm ; 
Original file line number Diff line number Diff line change 3434      }
3535    ]
3636}
37-   
Original file line number Diff line number Diff line change 1+ #!/usr/bin/env node
2+ 
13/** 
24* @license  Apache-2.0 
35* 
@@ -24,6 +26,7 @@ var resolve = require( 'path' ).resolve;
2426var  readFile  =  require (  '@stdlib/fs/read-file'  ) . sync ; 
2527var  writeFile  =  require (  '@stdlib/fs/write-file'  ) . sync ; 
2628var  replace  =  require (  '@stdlib/string/replace'  ) ; 
29+ var  currentYear  =  require (  '@stdlib/time/current-year'  ) ; 
2730
2831
2932// VARIABLES // 
@@ -37,6 +40,7 @@ var opts = {
3740} ; 
3841
3942var  PLACEHOLDER  =  '{{WASM_BASE64}}' ; 
43+ var  YEAR  =  '{{YEAR}}' ; 
4044
4145
4246// MAIN // 
@@ -53,6 +57,7 @@ function main() {
5357	wasm  =  readFile (  wpath  ) ; 
5458	tmpl  =  readFile (  tpath ,  opts  ) ; 
5559
60+ 	tmpl  =  replace (  tmpl ,  YEAR ,  currentYear ( ) . toString ( )  ) ; 
5661	tmpl  =  replace (  tmpl ,  PLACEHOLDER ,  wasm . toString (  'base64'  )  ) ; 
5762
5863	writeFile (  opath ,  tmpl ,  opts  ) ; 
Original file line number Diff line number Diff line change 11/**
22* @license Apache-2.0
33*
4- * Copyright (c) 2025  The Stdlib Authors.
4+ * Copyright (c) {{YEAR}}  The Stdlib Authors.
55*
66* Licensed under the Apache License, Version 2.0 (the "License");
77* you may not use this file except in compliance with the License.
Original file line number Diff line number Diff line change 1+ (module 
2+   (type  (;0;)  (func ))
3+   (type  (;1;)  (func  (param  i32  f64  i32  i32 ) (result  f64 )))
4+   (type  (;2;)  (func  (param  i32  f64  i32  i32  i32 ) (result  f64 )))
5+   (import  " env" " memory" memory  (;0;)  0 ))
6+   (func  (;0;)  (type  0 )
7+     nop )
8+   (func  (;1;)  (type  1 ) (param  i32  f64  i32  i32 ) (result  f64 )
9+     local.get  0 
10+     local.get  1 
11+     local.get  2 
12+     local.get  3 
13+     i32.const  1 
14+     local.get  0 
15+     i32.sub 
16+     local.get  3 
17+     i32.mul 
18+     i32.const  0 
19+     local.get  3 
20+     i32.const  0 
21+     i32.le_s 
22+     select 
23+     call  2 )
24+   (func  (;2;)  (type  2 ) (param  i32  f64  i32  i32  i32 ) (result  f64 )
25+     (local  f64  i32 )
26+     local.get  0 
27+     i32.const  0 
28+     i32.le_s 
29+     if   ;;  label = @1
30+       f64.const  0x0p+0  (;=0;) 
31+       return 
32+     end 
33+     block   ;;  label = @1
34+       local.get  3 
35+       if   ;;  label = @2
36+         loop   ;;  label = @3
37+           local.get  0 
38+           local.get  6 
39+           i32.eq 
40+           br_if  2  (;@1;) 
41+           local.get  6 
42+           i32.const  1 
43+           i32.add 
44+           local.set  6 
45+           local.get  5 
46+           local.get  1 
47+           local.get  2 
48+           local.get  4 
49+           i32.const  3 
50+           i32.shl 
51+           i32.add 
52+           f64.load 
53+           f64.add 
54+           f64.add 
55+           local.set  5 
56+           local.get  3 
57+           local.get  4 
58+           i32.add 
59+           local.set  4 
60+           br  0  (;@3;) 
61+         end 
62+         unreachable 
63+       end 
64+       local.get  1 
65+       local.get  2 
66+       local.get  4 
67+       i32.const  3 
68+       i32.shl 
69+       i32.add 
70+       f64.load 
71+       f64.add 
72+       local.get  0 
73+       f64.convert_i32_u 
74+       f64.mul 
75+       local.set  5 
76+     end 
77+     local.get  5 )
78+   (export  " __wasm_call_ctors" func  0 ))
79+   (export  " stdlib_strided_dapxsumors" func  1 ))
80+   (export  " stdlib_strided_dapxsumors_ndarray" func  2 )))
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments