首页> 外国专利> Method and system for performing permutations with bit permutation instructions

Method and system for performing permutations with bit permutation instructions

机译:用位置换指令执行置换的方法和系统

摘要

The present invention provides permutation instructions which can be used in software executed in a programmable processor for solving permutation problems in cryptography, multimedia and other applications. PPERM and PPERM3R instructions are defined to perform permutations by a sequence of instructions with each sequence specifying the position in the source for each bit in the destination. In the PPERM instruction bits in the destination register that change are updated and bits in the destination register that do not change are set to zero. In the PPERM3R instruction bits in the destination register that change are updated and bits in the destination register that do not change are copied from intermediate result of previous PPERM3R instructions. Both PPERM and PPERM3R instruction can individually do permutation with bit repetition. Both PPERM and PPERM3R instruction can individually do permutation of bits stored in more than one register. In an alternate embodiment, a GRP instruction is defined to perform permutations. The GRP instruction divides the initial sequence in the source register into two groups depending on control bits. The first group is combined with the second group to form an intermediate sequence toward the desired final permutation. The total number of GRP instructions for a bit level permutation of n bits is not greater than 1gn. The GRP instruction can be used to permute k-bit subwords packed into an n bits word, where k can be 1, 2, . . . , or n bits, and k*r=n. At most 1gr permutation instructions are used in the permutation instruction sequence, where r is the number of k-bit subwords to be permuted. The GRP instruction can also be used to permute 2n bits stored in two n-bit registers. The total number of instructions for bit permutation of 2n bits is 21gn+4, and two of those instructions are SHIFT PAIR instruction.
机译:本发明提供可以在可编程处理器中执行的软件中使用的置换指令,以解决密码术,多媒体和其他应用中的置换问题。 PPERM和PPERM3R指令被定义为通过指令序列执行置换,每个序列指定目标中每个位在源中的位置。在PPERM指令中,目标寄存器中更改的位被更新,目标寄存器中不更改的位被设置为零。在PPERM3R指令中,目标寄存器中发生变化的位被更新,而目标寄存器中没有变化的位则从先前PPERM3R指令的中间结果中复制。 PPERM和PPERM3R指令都可以通过位重复分别进行置换。 PPERM和PPERM3R指令都可以单独对存储在多个寄存器中的位进行置换。在替代实施例中,GRP指令被定义为执行置换。 GRP指令根据控制位将源寄存器中的初始序列分为两组。第一组与第二组结合形成朝向所需最终排列的中间序列。 n位的位级排列的GRP指令总数不大于1gn。 GRP指令可用于置换打包成n位字的k位子字,其中k可以是1、2,...。 。 。或n位,且k * r = n。置换指令序列中最多使用1gr个置换指令,其中r是要置换的k位子字的数量。 GRP指令还可用于置换存储在两个n位寄存器中的2n位。用于2n位的位置换的指令总数是21gn + 4,其中的两个指令是SHIFT PAIR指令。

著录项

  • 公开/公告号US7519795B2

    专利类型

  • 公开/公告日2009-04-14

    原文格式PDF

  • 申请/专利权人 RUBY B. LEE;ZHIJIE SHI;

    申请/专利号US20050058819

  • 发明设计人 RUBY B. LEE;ZHIJIE SHI;

    申请日2005-02-16

  • 分类号G06F9/30;

  • 国家 US

  • 入库时间 2022-08-21 19:30:49

相似文献

  • 专利
  • 外文文献
  • 中文文献
获取专利

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号