Browse Source

Add `type_is_nearly_simple_compare` to `intrinsics.odin`

gingerBill 4 days ago
parent
commit
0b2c0f785c
1 changed files with 1 additions and 0 deletions
  1. 1 0
      base/intrinsics/intrinsics.odin

+ 1 - 0
base/intrinsics/intrinsics.odin

@@ -157,6 +157,7 @@ type_is_indexable             :: proc($T: typeid) -> bool ---
 type_is_sliceable             :: proc($T: typeid) -> bool ---
 type_is_comparable            :: proc($T: typeid) -> bool ---
 type_is_simple_compare        :: proc($T: typeid) -> bool --- // easily compared using memcmp (== and !=)
+type_is_nearly_simple_compare :: proc($T: typeid) -> bool --- // easily compared using memcmp (including floats)
 type_is_dereferenceable       :: proc($T: typeid) -> bool ---
 type_is_valid_map_key         :: proc($T: typeid) -> bool ---
 type_is_valid_matrix_elements :: proc($T: typeid) -> bool ---