log(2) doesn't compile because it can be ambiguously applied to log(float) and log(half).
Migrated to https://github.com/gpuweb/WHLSL/issues/68