Skip to main content

Try it Live

Run Uint examples in the interactive playground

Uint.bitwiseOr(a: BrandedUint256, b: BrandedUint256): BrandedUint256

Bitwise OR operation. Parameters:
  • a: BrandedUint256 - First value
  • b: BrandedUint256 - Second value
Returns: BrandedUint256 - Bitwise OR result Example:
import { Uint } from 'tevm'

const a = Uint(0b1100n)
const b = Uint(0b1010n)
Uint.bitwiseOr(a, b)  // 0b1110 (14)
Defined in: primitives/Uint/bitwiseOr.ts

See Also