def majority

mylsm-lsm-store@0.6.0.1 · src/hub_sha/core.bend:52

import mylsm-lsm-store@0.6.0.1/src/hub_sha/core.bend as Core
import Base

52# Handle majority in the SHA-256 compression implementation.
53def majority(+word_x: U32, +word_y: U32, +word_z: U32) -> U32:
54  ((word_x .&. word_y) .^. (word_x .&. word_z) .^. (word_y .&. word_z) : U32)

Uses (3)

Used by (1)