The idea is to eliminate bound checks for:
arr[(int)index % arr.Length] when index >= 0
As discussed in the pr, the support of these will not be added:
arr[arr.Length % (int)index] when arr.Length > 0 and index <= arr.Length
arr[(uint)arr.Length % (uint)index] when arr.Length > 0 and index <= arr.Length
The idea is to eliminate bound checks for:
arr[(int)index % arr.Length]whenindex >= 0As discussed in the pr, the support of these will not be added:
arr[arr.Length % (int)index]whenarr.Length > 0 and index <= arr.Lengtharr[(uint)arr.Length % (uint)index]whenarr.Length > 0 and index <= arr.Length