Skip to content

Add optimal "numberOfTrailingZeros" method #38346

@jtmcdole

Description

@jtmcdole

#37789 Did a lot of speed up NTZ, but it was suggested that this basic operation could/should be provided by the SDK as the most optimal for the given platform. Example GCC:

Built-in Function: int __builtin_ctz (unsigned int x)
Returns the number of trailing 0-bits in x, starting at the least significant bit position. If x is 0, the result is undefined.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-core-librarySDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries.library-coretype-enhancementA request for a change that isn't a bugtype-performanceIssue relates to performance or code size

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions