setting Due spi clock at 8mhz

Hello,

How do I set the Due SPI clock on 8 mhz.I know this function SPI.setClockDivider(slaveSelectPin, divider) .
Right now I am using SPI.setClockDivider(10,21) which sets it to 4mhz.I want to set it at 8mhz. Is there a forumula that goes along with this function to know what value betwen 1 and 255 corresponds to what SPI clock setting?

The divider should be 10 or 11. 4MHz is 21.

10 = 8.4MHz
11 = 7.6MHz