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
- Enter word, laneMask. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- 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 field | Meaning and units | Accepted input |
|---|---|---|
| word | Word | Required. Text; maximum UTF-16 length 8192. Integer syntax: optional + or - and 1-128 decimal digits; leading zeros accepted. Apply the sign restriction above. |
| laneMask | Lane Mask | Required. Text; maximum UTF-16 length 8192. Integer syntax: optional + or - and 1-128 decimal digits; leading zeros accepted. Apply the sign restriction above. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| odd | Odd | Required. Boolean. |
| selected | Selected | Required. Text; maximum UTF-16 length 8192. |
{
"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
Similar or alternative tools
- Bitmask Leading Run Parity
Return leading run length and its parity for a selected bit value.
- Parity Change From Toggle
Return parity after supplied bit toggles, canceling repeated positions.