No games seem to use this, so this isn't useful as a performance optimization, but it's required for correctness because the (sh == 0) case of our implementation doesn't handle zero masks.
std::search
std::copy
std::copy_n