Quel est le moyen le plus rapide pour diviser un nombre entier par 3?

int x = n /3;  //<-- make this faster

//for instance

int a = n * 3; //<-- normal integer multiplication

int b = (n << 1) + n; //<-- potentially faster multiplication

OriginalL'auteur Greg Dean | 2008-10-05