trivial: call Clip3() in Tile::BuildConvolveBlock()

to replace std::min(std::max()) and std::max(std::min())

PiperOrigin-RevId: 327139447
Change-Id: I9d5cf55b9899583bf76d8d6b6dc696c3f2daf33d
diff --git a/src/tile/prediction.cc b/src/tile/prediction.cc
index c570637..31775c5 100644
--- a/src/tile/prediction.cc
+++ b/src/tile/prediction.cc
@@ -1007,12 +1007,9 @@
                     kScaleSubPixelBits) +
                    kSubPixelTaps;
   }
-  const int copy_start_x =
-      std::min(std::max(ref_block_start_x, ref_start_x), ref_last_x);
-  const int copy_end_x =
-      std::max(std::min(ref_block_end_x, ref_last_x), copy_start_x);
-  const int copy_start_y =
-      std::min(std::max(ref_block_start_y, ref_start_y), ref_last_y);
+  const int copy_start_x = Clip3(ref_block_start_x, ref_start_x, ref_last_x);
+  const int copy_start_y = Clip3(ref_block_start_y, ref_start_y, ref_last_y);
+  const int copy_end_x = Clip3(ref_block_end_x, copy_start_x, ref_last_x);
   const int block_width = copy_end_x - copy_start_x + 1;
   const bool extend_left = ref_block_start_x < ref_start_x;
   const bool extend_right = ref_block_end_x > ref_last_x;