From a6d1a2e46cb38df2583ba1d14be2516f16bba655 Mon Sep 17 00:00:00 2001 From: Laytan Laats Date: Tue, 16 Jul 2024 22:22:06 +0200 Subject: [PATCH] add `#optional_ok` to docs file for intrinsics --- base/intrinsics/intrinsics.odin | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/base/intrinsics/intrinsics.odin b/base/intrinsics/intrinsics.odin index 047373cda..37a42b904 100644 --- a/base/intrinsics/intrinsics.odin +++ b/base/intrinsics/intrinsics.odin @@ -38,9 +38,9 @@ count_leading_zeros :: proc(x: $T) -> T where type_is_integer(T) || type_is_sim reverse_bits :: proc(x: $T) -> T where type_is_integer(T) || type_is_simd_vector(T) --- byte_swap :: proc(x: $T) -> T where type_is_integer(T) || type_is_float(T) --- -overflow_add :: proc(lhs, rhs: $T) -> (T, bool) where type_is_integer(T) --- -overflow_sub :: proc(lhs, rhs: $T) -> (T, bool) where type_is_integer(T) --- -overflow_mul :: proc(lhs, rhs: $T) -> (T, bool) where type_is_integer(T) --- +overflow_add :: proc(lhs, rhs: $T) -> (T, bool) where type_is_integer(T) #optional_ok --- +overflow_sub :: proc(lhs, rhs: $T) -> (T, bool) where type_is_integer(T) #optional_ok --- +overflow_mul :: proc(lhs, rhs: $T) -> (T, bool) where type_is_integer(T) #optional_ok --- add_sat :: proc(lhs, rhs: $T) -> T where type_is_integer(T) --- sub_sat :: proc(lhs, rhs: $T) -> T where type_is_integer(T) ---