Expand description
Float operations for Seq
These functions are exported with C ABI for LLVM codegen to call.
All float operations use the f. prefix to distinguish from integer operations.
Re-exports§
pub use patch_seq_f_acos as f_acos;pub use patch_seq_f_add as f_add;pub use patch_seq_f_asin as f_asin;pub use patch_seq_f_atan as f_atan;pub use patch_seq_f_atan2 as f_atan2;pub use patch_seq_f_cbrt as f_cbrt;pub use patch_seq_f_ceil as f_ceil;pub use patch_seq_f_cos as f_cos;pub use patch_seq_f_divide as f_divide;pub use patch_seq_f_e as f_e;pub use patch_seq_f_eq as f_eq;pub use patch_seq_f_exp as f_exp;pub use patch_seq_f_floor as f_floor;pub use patch_seq_f_gt as f_gt;pub use patch_seq_f_gte as f_gte;pub use patch_seq_f_ln as f_ln;pub use patch_seq_f_log2 as f_log2;pub use patch_seq_f_log10 as f_log10;pub use patch_seq_f_lt as f_lt;pub use patch_seq_f_lte as f_lte;pub use patch_seq_f_multiply as f_multiply;pub use patch_seq_f_neq as f_neq;pub use patch_seq_f_pi as f_pi;pub use patch_seq_f_pow as f_pow;pub use patch_seq_f_round as f_round;pub use patch_seq_f_sin as f_sin;pub use patch_seq_f_sqrt as f_sqrt;pub use patch_seq_f_subtract as f_subtract;pub use patch_seq_f_tan as f_tan;pub use patch_seq_f_tau as f_tau;pub use patch_seq_f_trunc as f_trunc;pub use patch_seq_float_to_int as float_to_int;pub use patch_seq_float_to_string as float_to_string;pub use patch_seq_int_to_float as int_to_float;pub use patch_seq_push_float as push_float;pub use patch_seq_string_to_float as string_to_float;
Functions§
- patch_
seq_ ⚠f_ acos - Unary float operation. Bad inputs propagate NaN/Infinity per IEEE 754.
- patch_
seq_ ⚠f_ add - Float addition: ( Float Float – Float )
- patch_
seq_ ⚠f_ asin - Unary float operation. Bad inputs propagate NaN/Infinity per IEEE 754.
- patch_
seq_ ⚠f_ atan - Unary float operation. Bad inputs propagate NaN/Infinity per IEEE 754.
- patch_
seq_ ⚠f_ atan2 - Two-argument arctangent: ( y x – result )
- patch_
seq_ ⚠f_ cbrt - Unary float operation. Bad inputs propagate NaN/Infinity per IEEE 754.
- patch_
seq_ ⚠f_ ceil - Unary float operation. Bad inputs propagate NaN/Infinity per IEEE 754.
- patch_
seq_ ⚠f_ cos - Unary float operation. Bad inputs propagate NaN/Infinity per IEEE 754.
- patch_
seq_ ⚠f_ divide - Float division: ( Float Float – Float )
- patch_
seq_ ⚠f_ e - Push a float constant onto the stack.
- patch_
seq_ ⚠f_ eq - Float equality: ( Float Float – Bool )
- patch_
seq_ ⚠f_ exp - Unary float operation. Bad inputs propagate NaN/Infinity per IEEE 754.
- patch_
seq_ ⚠f_ floor - Unary float operation. Bad inputs propagate NaN/Infinity per IEEE 754.
- patch_
seq_ ⚠f_ gt - Float greater than: ( Float Float – Bool )
- patch_
seq_ ⚠f_ gte - Float greater than or equal: ( Float Float – Bool )
- patch_
seq_ ⚠f_ ln - Unary float operation. Bad inputs propagate NaN/Infinity per IEEE 754.
- patch_
seq_ ⚠f_ log2 - Unary float operation. Bad inputs propagate NaN/Infinity per IEEE 754.
- patch_
seq_ ⚠f_ log10 - Unary float operation. Bad inputs propagate NaN/Infinity per IEEE 754.
- patch_
seq_ ⚠f_ lt - Float less than: ( Float Float – Bool )
- patch_
seq_ ⚠f_ lte - Float less than or equal: ( Float Float – Bool )
- patch_
seq_ ⚠f_ multiply - Float multiplication: ( Float Float – Float )
- patch_
seq_ ⚠f_ neq - Float not equal: ( Float Float – Bool )
- patch_
seq_ ⚠f_ pi - Push a float constant onto the stack.
- patch_
seq_ ⚠f_ pow - Power: ( base exp – result )
- patch_
seq_ ⚠f_ round - Unary float operation. Bad inputs propagate NaN/Infinity per IEEE 754.
- patch_
seq_ ⚠f_ sin - Unary float operation. Bad inputs propagate NaN/Infinity per IEEE 754.
- patch_
seq_ ⚠f_ sqrt - Unary float operation. Bad inputs propagate NaN/Infinity per IEEE 754.
- patch_
seq_ ⚠f_ subtract - Float subtraction: ( Float Float – Float )
- patch_
seq_ ⚠f_ tan - Unary float operation. Bad inputs propagate NaN/Infinity per IEEE 754.
- patch_
seq_ ⚠f_ tau - Push a float constant onto the stack.
- patch_
seq_ ⚠f_ trunc - Unary float operation. Bad inputs propagate NaN/Infinity per IEEE 754.
- patch_
seq_ ⚠float_ to_ int - Convert Float to Int: ( Float – Int )
- patch_
seq_ ⚠float_ to_ string - Convert Float to String: ( Float – String )
- patch_
seq_ ⚠int_ to_ float - Convert Int to Float: ( Int – Float )
- patch_
seq_ ⚠push_ float - Push a float value onto the stack
- patch_
seq_ ⚠string_ to_ float - Convert String to Float: ( String – Float Int ) Returns the parsed float and 1 on success, or 0.0 and 0 on failure