14 Aug
2014
14 Aug
'14
8:45 a.m.
On 08/10/14 10:32, YongHao Hu wrote:
+complex_float* __cdecl complex_float_pow_ci(complex_float *ret, const complex_float *l, int r) +{ + complex_float c = *l; + complex_float temp = { 1.0, 0 }; + complex_float_assign(ret, &temp); + + if(r < 0){ + r = -r; + complex_float_div(&c, &temp, l); + } + + for(; r>0; r>>=1) + { + if( (r%2)&1 ) Please fix the if condition. You're also using tabs in the patch, please use spaces instead.
Thanks, Piotr