BitWiseTrailingOnes / Computation Layer

Count consecutive one bits from the least significant bit until the first zero.

Example bit pattern: 11110111 → 3 trailing ones

Common applications:

  • Alignment checking
  • Memory boundary analysis
  • Data structure padding
  • Binary protocol analysis
  • Power-of-two boundaries

Note: Count starts from the least significant bit position.

Table
0
0
Table

Transforms

[, ...]

Select

column

The integer column to count trailing ones. Examples:

  • 0x0007 → 3 trailing ones
  • 0xFFFF → 16 trailing ones
  • 0xFFF0 → 0 trailing ones

Must be an integer type column

Name for the new column. If not provided, the system generates a unique name. If AsColumn matches an existing column, the existing column is replaced. The name should follow valid column naming conventions.