aboutsummaryrefslogtreecommitdiff
path: root/core/container/bit_array
diff options
context:
space:
mode:
authorAndrea Piseri <andrea.piseri@gmail.com>2022-02-05 18:11:48 +0100
committerAndrea Piseri <andrea.piseri@gmail.com>2022-02-05 18:11:48 +0100
commitb6ebfe4b2c1445f59ed35c20bf8d4ba8910b59de (patch)
tree297212e3ec29a192035c23e97cc8962ebda236ce /core/container/bit_array
parentbccbdefde952f605bde620c8d9d0c7f9a5dfc3e0 (diff)
rename iterator procedures
Diffstat (limited to 'core/container/bit_array')
-rw-r--r--core/container/bit_array/bit_array.odin6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/container/bit_array/bit_array.odin b/core/container/bit_array/bit_array.odin
index 0a92e3dc4..5fbac69af 100644
--- a/core/container/bit_array/bit_array.odin
+++ b/core/container/bit_array/bit_array.odin
@@ -47,7 +47,7 @@ make_iterator :: proc (ba: ^Bit_Array) -> (it: Bit_Array_Iterator) {
- ok: bool - `true` if the iterator returned a valid index,
`false` if there were no more bits
*/
-iterate_all :: proc (it: ^Bit_Array_Iterator) -> (set: bool, index: int, ok: bool) {
+iterate_by_all :: proc (it: ^Bit_Array_Iterator) -> (set: bool, index: int, ok: bool) {
index = it.word_idx * NUM_BITS + int(it.bit_idx) + it.array.bias
if index > it.array.max_index { return false, 0, false }
@@ -72,7 +72,7 @@ iterate_all :: proc (it: ^Bit_Array_Iterator) -> (set: bool, index: int, ok: boo
- ok: bool - `true` if the iterator returned a valid index,
`false` if there were no more bits set
*/
-iterate_set :: proc (it: ^Bit_Array_Iterator) -> (index: int, ok: bool) {
+iterate_by_set :: proc (it: ^Bit_Array_Iterator) -> (index: int, ok: bool) {
return iterate_internal_(it, true)
}
@@ -85,7 +85,7 @@ iterate_set :: proc (it: ^Bit_Array_Iterator) -> (index: int, ok: bool) {
- ok: bool - `true` if the iterator returned a valid index,
`false` if there were no more unset bits
*/
-iterate_unset:: proc (it: ^Bit_Array_Iterator) -> (index: int, ok: bool) {
+iterate_by_unset:: proc (it: ^Bit_Array_Iterator) -> (index: int, ok: bool) {
return iterate_internal_(it, false)
}