computes the number of trailing zeroes this is a private inline function only defined in this source file.
| 11285 | // computes the number of trailing zeroes |
| 11286 | // this is a private inline function only defined in this source file. |
| 11287 | ada_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. |
no outgoing calls
no test coverage detected