Can now operate on scaled/area images

This commit is contained in:
Christoph Oberhofer
2015-09-13 22:31:32 +02:00
parent e65df1d131
commit abe1458c58
4 changed files with 64 additions and 35 deletions
-10
View File
@@ -4,16 +4,6 @@
define(function() {
"use strict";
Math.imul = Math.imul || function(a, b) {
var ah = (a >>> 16) & 0xffff;
var al = a & 0xffff;
var bh = (b >>> 16) & 0xffff;
var bl = b & 0xffff;
// the shift by 0 fixes the sign on the high part
// the final |0 converts the unsigned value into a signed value
return ((al * bl) + (((ah * bl + al * bh) << 16) >>> 0)|0);
};
/* @preserve ASM BEGIN */
function Skeletonizer(stdlib, foreign, buffer) {
"use asm";