Skip to content

Commit

Permalink
feat(wasm): Add operation to toggle null bits
Browse files Browse the repository at this point in the history
  • Loading branch information
DrSensor committed Oct 17, 2023
1 parent e68de9a commit e029bed
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions core/wasm/accessor/null.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ unsafe fn set_null(this: Null) {
*nullptr(this) |= 1 << index()
}

#[export_name = "null.tgl"]
unsafe fn toggle_null(this: Null) {
*nullptr(this) ^= 1 << index()
}

#[export_name = "null.clr"]
unsafe fn clear_null(this: Null) {
*nullptr(this) &= !(1 << index())
Expand Down

0 comments on commit e029bed

Please sign in to comment.