commit | 11aaa6d6f2b6a148ad4ee7e3f1f4b03855386216 | [log] [tgz] |
---|---|---|
author | James Zern <jzern@google.com> | Thu May 22 18:37:53 2025 |
committer | James Zern <jzern@google.com> | Wed Jun 04 20:00:23 2025 |
tree | 65fd8e5d70977a3e1a4a5e3dfd7908cee0a02624 | |
parent | 69396c5e7307e4eb8d0d9b7c31481d1658928f5c [diff] |
Replace VPXMIN+VPXMAX combos with clamp or fclamp This change is similar to the change in libaom: 466bfbce9d Replace AOMMIN+AOMMAX combos with clamp or fclamp VPXMIN and VPXMAX are macros, so their arguments are evaluated twice. It is especially bad if VPXMIN and VPXMAX are used together to clamp a value to a range. Replace that combination with the clamp() or fclamp() inline function. Change-Id: I694f3da444bfdac95e902dd03b5a4f0c736ea8df