Displaying 1 result from an estimated 1 matches for "controlledphase".
2013 Jun 25
1
[LLVMdev] ldexp constant propagation
Hi,
I have the C program below, which contains a mathematical expression.
C code:
======
void ControlledRotationPiMinus(int target, int control, int j)
{
ControlledPhase(target,control,-PI/(2*pow(2,j)));
}
int main() {
..
int b = 3;
for (int j=1; j < b; j++)
ControlledRotationPiMinus(target, control, j);
..
}
Here is what I am doing: The function ControlledRotationPiMinus is called twice in main(), with values of j=1,2. I do procedure cloning (using Clo...