Skip to content

Commit b845db1

Browse files
committed
Add prototypes for intrinsics.fixed_point_*
1 parent ced7700 commit b845db1

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

core/intrinsics/intrinsics.odin

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@ overflow_add :: proc(lhs, rhs: $T) -> (T, bool) #optional_ok ---
3131
overflow_sub :: proc(lhs, rhs: $T) -> (T, bool) #optional_ok ---
3232
overflow_mul :: proc(lhs, rhs: $T) -> (T, bool) #optional_ok ---
3333

34+
fixed_point_mul :: proc(lhs, rhs: $T, #const scale: uint) -> T where type_is_integer(T) ---
35+
fixed_point_div :: proc(lhs, rhs: $T, #const scale: uint) -> T where type_is_integer(T) ---
36+
fixed_point_mul_sat :: proc(lhs, rhs: $T, #const scale: uint) -> T where type_is_integer(T) ---
37+
fixed_point_div_sat :: proc(lhs, rhs: $T, #const scale: uint) -> T where type_is_integer(T) ---
38+
3439
// Compiler Hints
3540
expect :: proc(val, expected_val: T) -> T ---
3641

0 commit comments

Comments
 (0)