Files
hakorune/examples/jit_math_function_style_max_float.nyash

12 lines
283 B
Plaintext
Raw Normal View History

// Function-style math: max(a,b)
// Run:
// NYASH_JIT_EXEC=1 NYASH_JIT_THRESHOLD=1 NYASH_JIT_NATIVE_F64=1 NYASH_JIT_EVENTS=1 \
// ./target/release/nyash --backend vm examples/jit_math_function_style_max_float.nyash
static box Main {
main() {
return max(2.5, 7.0)
}
}