Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cwise-compiler

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cwise-compiler - npm Package Compare versions

Comparing version 0.1.0 to 1.0.0

2

compiler.js

@@ -32,3 +32,3 @@ "use strict"

var proc_args = user_args.args.slice(0)
proc.argTypes = proc_args.slice(0)
proc.argTypes = proc_args
for(var i=0; i<proc_args.length; ++i) {

@@ -35,0 +35,0 @@ var arg_type = proc_args[i]

@@ -21,5 +21,5 @@ "use strict"

if(i === 0) {
vars.push(["d",j,"s",i,"=t",j,"[",idx,"]"].join(""))
vars.push(["d",j,"s",i,"=t",j,"p",idx].join(""))
} else {
vars.push(["d",j,"s",i,"=(t",j,"[",idx,"]-s",pidx,"*t",j,"[",pidx,"])"].join(""))
vars.push(["d",j,"s",i,"=(t",j,"p",idx,"-s",pidx,"*t",j,"p",pidx,")"].join(""))
}

@@ -78,3 +78,3 @@ }

for(var j=matched; j<dimension; ++j) {
indexStr.push(["j",j,"*t",i,"[",order[j],"]"].join(""))
indexStr.push(["j",j,"*t",i,"p",order[j]].join(""))
}

@@ -215,2 +215,6 @@ code.push(["p",i,"=(",indexStr.join("+"),")"].join(""))

orders[i] = typesig[2*i+1]
for(var j=0; j<dimension; ++j) {
vars.push(["t",i,"p",j,"=t",i,"[",j,"]"].join(""))
}
}

@@ -237,5 +241,5 @@ for(var i=0; i<proc.scalarArgs.length; ++i) {

} else if(off_arg.offset[j] === 1) {
init_string.push(["t", off_arg.array, "[", j, "]"].join(""))
init_string.push(["t", off_arg.array, "p", j].join(""))
} else {
init_string.push([off_arg.offset[j], "*t", off_arg.array, "[", j, "]"].join(""))
init_string.push([off_arg.offset[j], "*t", off_arg.array, "p", j].join(""))
}

@@ -246,3 +250,3 @@ }

} else {
vars.push(["q", i, "=(", init_string.join("+"),")|0"].join(""))
vars.push(["q", i, "=", init_string.join("+")].join(""))
}

@@ -249,0 +253,0 @@ }

{
"name": "cwise-compiler",
"version": "0.1.0",
"version": "1.0.0",
"description": "cwise's internal compiler",

@@ -26,4 +26,4 @@ "main": "compiler.js",

"dependencies": {
"uniq": "~0.0.2"
"uniq": "^1.0.0"
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc