@triton.jit
def softplus(x, is_compiling: tl.constexpr=False):
    if is_compiling:
        tl.static_print('Using triton softplus.')
        out = tl.where(x < 15.0, tl.math.log2(1 + tl.math.exp2(x)), x)
        return out
    else:
        out = tl.inline_asm_elementwise(asm=asm_str, constraints=
            constraints_str, pack=NUM_REG, args=[x], dtype=tl.float32,
            is_pure=True)
        return out
