Numerical Methods, Swift, JavaScript, Coding, Emscripten.
Swift functions in place of (C-like) macros: SQR (square with fast zero path) MAX (of 2 Double values) SIGN (of Double) IMIN (was MIN) min of 2 Int values (This may cause function call overhead vs. C unless the Swift optimizer inlines functions; as it turns out, performance hits seem to be more