Yes, that should work. Just watch that the math does not over flow the word size var.