R/utils-bits.R

"%&%" <- function(x, y) {
  assert_is_int(x)
  assert_is_int(y)
  bitwAnd(x, y)
}

"%|%" <- function(x, y) {
  assert_is_int(x)
  assert_is_int(y)
  bitwOr(x, y)
}

"%<<%" <- function(x, y) {
  assert_is_int(x)
  assert_is_int(y)
  bitwShiftL(x, y)
}

"%>>%" <- function(x, y) {
  assert_is_int(x)
  assert_is_int(y)
  bitwShiftR(x, y)
}

Try the picohdr package in your browser

Any scripts or data that you put into this service are public.

picohdr documentation built on Oct. 28, 2024, 5:08 p.m.