  
    // get bitmaps from iso
    static const int gains[] = {0, 100, 200, 400, 800};
    int i;
    for (i = 1; i < ARRAYSIZE(gains); i++) {
      if (gain >= gains[i - 1] && gain < gains[i])
        break;
    }
    int coarse_gain = i - 1;
    float fine_gain = (gain - gains[coarse_gain])/(float)(gains[coarse_gain+1]-gains[coarse_gain]);
 
</s> remove     int ret = poll(fds, ARRAYSIZE(fds), 1000);
 </s> add     int ret = poll(fds, std::size(fds), 1000); </s> remove     int ret = poll(fds, ARRAYSIZE(fds), 1000);
 </s> add     int ret = poll(fds, std::size(fds), 1000); </s> remove   int err = sensor_write_regs(s, start_reg_array, ARRAYSIZE(start_reg_array), MSM_CAMERA_I2C_BYTE_DATA);
 </s> add   int err = sensor_write_regs(s, start_reg_array, std::size(start_reg_array), MSM_CAMERA_I2C_BYTE_DATA); </s> remove   int err = sensor_write_regs(s, start_reg_array, ARRAYSIZE(start_reg_array), MSM_CAMERA_I2C_BYTE_DATA);
 </s> add   int err = sensor_write_regs(s, start_reg_array, std::size(start_reg_array), MSM_CAMERA_I2C_BYTE_DATA); </s> remove   assert(camera_id < ARRAYSIZE(cameras_supported));
 </s> add   assert(camera_id < std::size(cameras_supported));
  for (i = 1; i < std::size(gains); i++) {
  
    // get bitmaps from iso
    static const int gains[] = {0, 100, 200, 400, 800};
    int i;
  for (i = 1; i < std::size(gains); i++) {
      if (gain >= gains[i - 1] && gain < gains[i])
        break;
    }
    int coarse_gain = i - 1;
    float fine_gain = (gain - gains[coarse_gain])/(float)(gains[coarse_gain+1]-gains[coarse_gain]);
keep keep keep keep replace keep keep keep keep keep
 Use std::size for element counts (#20654) 
selfdrive/camerad/cameras/camera_qcom.cc