Skip to content
Snippets Groups Projects
Commit 3155b1ff authored by Micah Elizabeth Scott's avatar Micah Elizabeth Scott
Browse files

Add sq() utility

parent 57585a5b
No related branches found
No related tags found
No related merge requests found
......@@ -307,3 +307,9 @@ inline int EffectRunner::usage(const char *name)
fprintf(stderr, "usage: %s [-fps LIMIT] [-layout FILE.json] [-server HOST[:port]]\n", name);
return 1;
}
static inline float sq(float a)
{
// Fast square
return a*a;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment