Skip to content

Commit

Permalink
Add prototypes for intrinsics.fixed_point_*
Browse files Browse the repository at this point in the history
  • Loading branch information
gingerBill committed May 1, 2021
1 parent ced7700 commit b845db1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions core/intrinsics/intrinsics.odin
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ overflow_add :: proc(lhs, rhs: $T) -> (T, bool) #optional_ok ---
overflow_sub :: proc(lhs, rhs: $T) -> (T, bool) #optional_ok ---
overflow_mul :: proc(lhs, rhs: $T) -> (T, bool) #optional_ok ---

fixed_point_mul :: proc(lhs, rhs: $T, #const scale: uint) -> T where type_is_integer(T) ---
fixed_point_div :: proc(lhs, rhs: $T, #const scale: uint) -> T where type_is_integer(T) ---
fixed_point_mul_sat :: proc(lhs, rhs: $T, #const scale: uint) -> T where type_is_integer(T) ---
fixed_point_div_sat :: proc(lhs, rhs: $T, #const scale: uint) -> T where type_is_integer(T) ---

// Compiler Hints
expect :: proc(val, expected_val: T) -> T ---

Expand Down

0 comments on commit b845db1

Please sign in to comment.