Takes the mean of the quantity in the top register.