asm-primitives: addAvg, fix bug pointed out by Ashok.