[automerger skipped] Use a constant-time MAX function am: f06684acab am: 79185543e0 -s ours

am skip reason: Change-Id Ife1012c14d697141e6ee0c583dc32eaacdb72b73 with SHA-1 f06684acab is in history

Change-Id: Ifcc84bad55a53512901f55f631b0e9cf2305c010