Minimized the number of additions done in the loop to populate IDT.

Signed-off-by: Arun Prakash Jana <engineerarun@gmail.com>