Problema funzione pow

nel tuo caso è meglio usare gli shift,se stai usando integer..
cmq,puoi copiare tutto il codice?