This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi expert,
1. double __divf32( double num , double denom );
As in the above instruction, whether the parameters num and denom need to be cast? Assuming that num and denom are both long or other non-double types, whether the instruction automatically converts the parameter type to double when calling the instruction?
Can it be used like this below?
__divf32((long)num , (long)denom)
__divf32((float)num , (long)denom)
2.What is the range of SRC in double __sin( double src )? Is it 0~2PI?
3.What is the range of SRC in double __sinpuf32( double src )? Is it 0~2, does not contain PI, or something else?
1. Yes, the compiler will do this if not explicitly done.
2. I don't think it needs to be in 0-2PI even. It can be any value, and it will be considered a radian value.
3. Per unit radian value, so the input should be in the range 0 to 1.
Thanks,
Sira