(stdlib, foreign, heap)
| 3 | // found in the LICENSE file. |
| 4 | |
| 5 | function Module(stdlib, foreign, heap) { |
| 6 | "use asm"; |
| 7 | function f1(i) { |
| 8 | i = +i; |
| 9 | return +(i * -1); |
| 10 | } |
| 11 | function f2(i) { |
| 12 | i = +i; |
| 13 | return +(-1. * i); |
| 14 | } |
| 15 | function f3(i) { |
| 16 | i = +i; |
| 17 | return +(-i); |
| 18 | } |
| 19 | return { f1: f1, f2: f2, f3: f3 }; |
| 20 | } |
| 21 | |
| 22 | var m = Module(this, {}, new ArrayBuffer(64 * 1024)); |
| 23 |