sincos:
sincos is the ratio of the number of floating point sine or cosine instructions to the total number of floating point instructions.
Classifying sincos:
sincos can be classified into low, medium or high as follows:
Bucket | Condition |
---|---|
Low |
The region of code contains no sincos instructions.
OR
1 or fewer operations out of every 5 floating point instructions is a sincos instruction.
|
Medium | 1 out of every 3 floating point instructions is a sincos instruction. |
High | 1 or more instructions out of every 2 floating point instructions is a sincos instruction. |
Example 1:
Consider the following code:
for (i=0; i<1000; i++) result[i] = sinf(arrayOne[i] + arrayTwo[i]);1 out of the 2 floating point instructions in this code sample is a sinf instruction. Therefore, we can estimate that sincos will be a mid value.