Skip to content

Instantly share code, notes, and snippets.

@kypflug
Created May 6, 2015 02:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kypflug/9da95b73658fc18d14f7 to your computer and use it in GitHub Desktop.
Save kypflug/9da95b73658fc18d14f7 to your computer and use it in GitHub Desktop.
function square in an asm.js module
function PhysicsEngine(global, foreign, heap) {
"use asm";
// Function Declaration
function square(x) {
x = +x;
return +(x*x);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment