发明名称 SINGLE INSTRUCTION ARRAY INDEX COMPUTATION
摘要 Embodiments are directed to a method of adjusting an index, wherein the index identifies a location of an element within an array. The method includes executing, by a computer, a single instruction that adjusts a first parameter of the index to match a parameter of an array address. The single instruction further adjusts a second parameter of the index to match a parameter of the array element. The adjustment of the first parameter includes a sign extension.
申请公布号 US2016092241(A1) 申请公布日期 2016.03.31
申请号 US201414500171 申请日期 2014.09.29
申请人 INTERNATIONAL BUSINESS MACHINES CORPORATION 发明人 Gschwind Michael K.
分类号 G06F9/38;G06F9/30 主分类号 G06F9/38
代理机构 代理人
主权项 1. A computer program product for adjusting an index, wherein the index identifies a location of an element within an array, the computer program product comprising: a computer readable storage medium having program instructions embodied therewith, wherein the computer readable storage medium is not a transitory signal per se, the program instructions readable by a processor circuit to cause the processor circuit to perform a method, the program instructions comprising: a single instruction that performs an adjustment of a first parameter of the index to match a parameter of an array address; wherein said single instruction further performs an adjustment of a second parameter of the index to match a parameter of the array element; and wherein said adjustment of said first parameter comprises a sign extension of said first parameter.
地址 Armonk NY US