MCPcopy Create free account
hub / github.com/NativeScript/android / trailing_zeroes

Function trailing_zeroes

test-app/runtime/src/main/cpp/ada/ada.cpp:11287–11297  ·  view source on GitHub ↗

computes the number of trailing zeroes this is a private inline function only defined in this source file.

Source from the content-addressed store, hash-verified

11285// computes the number of trailing zeroes
11286// this is a private inline function only defined in this source file.
11287ada_really_inline int trailing_zeroes(uint32_t input_num) noexcept {
11288#ifdef ADA_REGULAR_VISUAL_STUDIO
11289 unsigned long ret;
11290 // Search the mask data from least significant bit (LSB)
11291 // to the most significant bit (MSB) for a set bit (1).
11292 _BitScanForward(&ret, input_num);
11293 return (int)ret;
11294#else // ADA_REGULAR_VISUAL_STUDIO
11295 return __builtin_ctzl(input_num);
11296#endif // ADA_REGULAR_VISUAL_STUDIO
11297}
11298
11299// starting at index location, this finds the next location of a character
11300// :, /, \\, ? or [. If none is found, view.size() is returned.

Callers 2

find_next_host_delimiterFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected