Method and system for providing zero overhead looping using carry chain masking
    1.
    发明申请
    Method and system for providing zero overhead looping using carry chain masking 失效
    使用携带链掩蔽提供零开销循环的方法和系统

    公开(公告)号:US20060095751A1

    公开(公告)日:2006-05-04

    申请号:US10946465

    申请日:2004-09-20

    IPC分类号: G06F9/44

    CPC分类号: G06F8/443

    摘要: A method and system for reducing overhead on a loop of a plurality of instructions is disclosed. The loop is performed a particular number of times. The method and system include a mask register and addition logic. The mask register provides a carry mask having a first value for the loop being performed at least the particular number of times minus one time and a second value for at least a last instruction of the loop being performed a last time. The addition logic is coupled with the mask register and determines which of the plurality of instructions is to be executed. The carry mask and a current instruction of the plurality of instructions correspond to inputs of the addition logic. A resultant of the addition logic corresponds to a next instruction of the plurality of instructions unless the current instruction is the last instruction. The resultant of the addition logic corresponds to the first instruction if the current instruction is the last instruction and the loop is being performed less than the particular number of times.

    摘要翻译: 公开了一种用于减少多个指令的循环上的开销的方法和系统。 循环执行特定次数。 该方法和系统包括掩码寄存器和加法逻辑。 屏蔽寄存器提供进位掩码,该进位掩码具有至少在特定次数减去一次的循环中执行的第一值,以及最后一次执行循环的至少最后指令的第二值。 加法逻辑与屏蔽寄存器耦合,并确定要执行多个指令中的哪一个。 多个指令中的进位掩码和当前指令对应于加法逻辑的输入。 加法逻辑的结果对应于多个指令中的下一指令,除非当前指令是最后指令。 如果当前指令是最后一条指令并且循环正在执行小于特定次数,则加法逻辑的结果对应于第一指令。