diff options
| author | gingerBill <bill@gingerbill.org> | 2021-05-01 18:26:51 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2021-05-01 18:26:51 +0100 |
| commit | b845db16187dc8d609932a0e473e11f53ae31ef7 (patch) | |
| tree | e9bcb0a93c54896401081c2e60b80881b74a43da /core | |
| parent | ced7700cdb45ac4a5850e8eaf6fa2dd4cba4b1cf (diff) | |
Add prototypes for `intrinsics.fixed_point_*`dev-2021-05
Diffstat (limited to 'core')
| -rw-r--r-- | core/intrinsics/intrinsics.odin | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/core/intrinsics/intrinsics.odin b/core/intrinsics/intrinsics.odin index 84d5b06b5..d767f5e47 100644 --- a/core/intrinsics/intrinsics.odin +++ b/core/intrinsics/intrinsics.odin @@ -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 --- |