aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2024-01-29 12:52:41 +0000
committergingerBill <bill@gingerbill.org>2024-01-29 12:52:41 +0000
commit59575d9b22c09133438e44deaf4e39f8bd9ab459 (patch)
tree5e3ce954b2c5b337103d3984a3542a7585a343bb
parentb58a0b60d0b0af87f9b6d3f64a632ee9a8a39564 (diff)
Remove `incl` and `excl`
-rw-r--r--base/runtime/core_builtin.odin33
1 files changed, 0 insertions, 33 deletions
diff --git a/base/runtime/core_builtin.odin b/base/runtime/core_builtin.odin
index b1f917108..3692751bb 100644
--- a/base/runtime/core_builtin.odin
+++ b/base/runtime/core_builtin.odin
@@ -825,39 +825,6 @@ map_insert :: proc(m: ^$T/map[$K]$V, key: K, value: V, loc := #caller_location)
@builtin
-incl_elem :: proc(s: ^$S/bit_set[$E; $U], elem: E) {
- s^ |= {elem}
-}
-@builtin
-incl_elems :: proc(s: ^$S/bit_set[$E; $U], elems: ..E) {
- for elem in elems {
- s^ |= {elem}
- }
-}
-@builtin
-incl_bit_set :: proc(s: ^$S/bit_set[$E; $U], other: S) {
- s^ |= other
-}
-@builtin
-excl_elem :: proc(s: ^$S/bit_set[$E; $U], elem: E) {
- s^ &~= {elem}
-}
-@builtin
-excl_elems :: proc(s: ^$S/bit_set[$E; $U], elems: ..E) {
- for elem in elems {
- s^ &~= {elem}
- }
-}
-@builtin
-excl_bit_set :: proc(s: ^$S/bit_set[$E; $U], other: S) {
- s^ &~= other
-}
-
-@builtin incl :: proc{incl_elem, incl_elems, incl_bit_set}
-@builtin excl :: proc{excl_elem, excl_elems, excl_bit_set}
-
-
-@builtin
card :: proc(s: $S/bit_set[$E; $U]) -> int {
when size_of(S) == 1 {
return int(intrinsics.count_ones(transmute(u8)s))