aboutsummaryrefslogtreecommitdiff
path: root/src/parseTools.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/parseTools.js')
-rw-r--r--src/parseTools.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/parseTools.js b/src/parseTools.js
index e921e5ca..95eecc87 100644
--- a/src/parseTools.js
+++ b/src/parseTools.js
@@ -2626,4 +2626,9 @@ function addVariable(ident, type, funcData) {
}
var SIMDLane = ['X', 'Y', 'Z', 'W'];
+var simdLane = ['x', 'y', 'z', 'w'];
+
+function ensureVector(ident, base) {
+ return ident == 0 ? base + '32x4.zero()' : ident;
+}