Open charliewager opened 1 month ago
4bbit int chord = abs(CLZ val - 8) 4bit int step = mag << (abs(CLZ - 7))
8bit int result = sign << 7 | chord << 4 | step
Utilize the CLZ instruction to eliminate the if-block.
Details:
Example:
4bbit int chord = abs(CLZ val - 8) 4bit int step = mag << (abs(CLZ - 7))
8bit int result = sign << 7 | chord << 4 | step