Skip to content

Main content

Bitmask Lane Parity Contribution Tool

Compute bitmask lane parity contribution from explicit bounded inputs.

Loading tool…

Description

Return selected-lane set-bit parity and selected pattern.

Bit positions are usually counted from the least-significant bit, while a displayed binary string has its own left-to-right indexing convention. Masks, fields and parity predicates describe a selected region or pattern; local agreement does not validate a complete encoded record.

Return selected-lane set-bit parity and selected pattern.

When to use this tool

Use Bitmask Lane Parity Contribution when checking the stated mask, field, parity or bit-index convention.

How to use the tool and how it works

  1. Enter word, laneMask. Use the units and conventions below.
  2. Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
  3. Read odd, selected. Inspect odd before interpreting the associated values.

Return selected-lane set-bit parity and selected pattern. Require unsigned128 word/laneMask; selected = word AND mask, odd means an odd number of selected ones.1

Input fieldMeaning and unitsAccepted input
wordWordRequired. Text; maximum UTF-16 length 8192. Integer syntax: optional + or - and 1-128 decimal digits; leading zeros accepted. Apply the sign restriction above.
laneMaskLane MaskRequired. Text; maximum UTF-16 length 8192. Integer syntax: optional + or - and 1-128 decimal digits; leading zeros accepted. Apply the sign restriction above.
Output fieldInterpretationReturned shape
oddOddRequired. Boolean.
selectedSelectedRequired. Text; maximum UTF-16 length 8192.
json
{
  "input": {
    "word": "15",
    "laneMask": "7"
  },
  "output": {
    "odd": true,
    "selected": "7"
  }
}

Limitations and assumptions

  • This is bit parity under an arbitrary mask, not parity of numeric lane values or a complete error-detection code.
  • Inputs must satisfy both the field types and the cross-field conditions above. Invalid input causes an error; a successful false flag or documented placeholder is a different result.

Alternative or Complementary methods

Choose an explicit bit order, word width and missing-position policy; use the complete record format and appropriate parsing or checksum methods for full validation.

References

  1. Calculation and input contract: bitwise/bitmask-lane-parity-contribution — tool.io

Similar or alternative tools