Hi, I'm doing some big exiting fractals, all of wich involve the use of the function.
is there a way of declaring retval so that it is not assigned to memory and just stays in the registers as holding it in memory will slow it down (this function could be accessed literaly millions of times drawing a large fractal so speed is important)Code:complex newcomplex(double realpart, double imaginarypart) { complex retval; retval.real=realpart; retval.imaginary=imaginarypart; return retval; }
i've tried
and it compiles but there's no real way of knowing if that's doing what I want, MSDN doesn't really say anything usefull.Code:complex newcomplex(double realpart, double imaginarypart) { register complex retval; retval.real=realpart; retval.imaginary=imaginarypart; return retval; }
thanks in adv




Reply With Quote