BitWiseTrailingZeros / Computation Layer

Count consecutive zero bits from the least significant bit until the first one. Similar to GCC's __builtin_ctz.

Example bit pattern: 11110000 → 4 trailing zeros

Common applications:

  • Power of 2 detection
  • Memory alignment checks
  • Binary multiplication optimization
  • Data structure padding analysis
  • Low-level optimization

Note: Particularly useful in hardware-level programming and optimization.

Table
0
0
Table

Transforms

[, ...]

Select

column

The integer column to count trailing zeros. Examples:

  • 0x1000 → 12 trailing zeros
  • 0x0000 → all bits trailing zeros
  • 0xFFFF → 0 trailing zeros

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.