Hi, I use WinAVR and I have a few question:

1. How can I know how many cycles use a function sqrt for computing square root of some numbers?

2. I know that input variable for the function sqrt must be double (double sqrt(dobule x)), but what's about when input variable is uint16_t, for example sqrt(2704)?

3. Which is better solution:

int a;

a = (int)(some_number)*0.25;

or

a = (int)((some_number)/4);

I need only an integer value and it's produce the same result but which solution is better (faster) and why?