Jun 9, 2021
Performing min/max on a memory address has dubious value, so I would suggest dropping uintptr from your proposed interface.
Ayman Al-Sairafi is also correct that direct comparison is better. Splitting the functionality into a float/int division would work nicely.