A Hybrid Implementation of Hamming Weight

被引:2
|
作者
Morancho, Enric [1 ]
机构
[1] Univ Politecn Cataluna, Barcelona Tech, Dept Arquitectura Computadors, Barcelona, Spain
关键词
hamming weight; population count; hybrid parallelism;
D O I
10.1109/PDP.2014.26
中图分类号
TP3 [计算技术、计算机技术];
学科分类号
0812 ;
摘要
The hamming weight (also known as population count) of a bitstring is the number of 1's in the bitstring. It has applications in scopes like cryptography, chemical informatics and information theory. Typical bitstring lengths range from the processor's word length to several thousands of bits. A plethora of hamming weight algorithms have been proposed. While some implementations expose just scalar parallelism, others expose vector parallelism. Moreover, some implementations use special machine instructions that compute the hamming weight of a processor's word. This paper presents a new hybrid scalar-vector hamming weight implementation that exposes both scalar and vector parallelism. This implementation will be useful on platforms that can exploit both kinds of parallelism simultaneously. On a Sandy Bridge platform, our hybrid implementation outperforms by up to 1.23X and 1.6X the, to the best of our knowledge, best scalar and vector implementations respectively.
引用
收藏
页码:84 / 92
页数:9
相关论文
共 50 条
  • [1] Hamming Weight Counters and Comparators based on Embedded DSP Blocks for Implementation in FPGA
    Sklyarov, Valery
    Skliarova, Iouliia
    ADVANCES IN ELECTRICAL AND COMPUTER ENGINEERING, 2014, 14 (02) : 63 - 68
  • [2] OPTICAL IMPLEMENTATION OF THE HAMMING NET
    YANG, XY
    YU, FTS
    APPLIED OPTICS, 1992, 31 (20) : 3999 - 4003
  • [3] Network Generalized Hamming Weight
    Ngai, Chi-Kin
    Yeung, Raymond W.
    Zhang, Zhixue
    2009 WORKSHOP ON NETWORK CODING, THEORY, AND APPLICATIONS, 2009, : 48 - +
  • [4] Network Generalized Hamming Weight
    Ngai, Chi-Kin
    Yeung, Raymond W.
    Zhang, Zhixue
    IEEE TRANSACTIONS ON INFORMATION THEORY, 2011, 57 (02) : 1136 - 1143
  • [5] On the distribution of Low Hamming Weight products
    Jianghua Li
    Qiao Li
    Journal of Inequalities and Applications, 2020
  • [6] Bounds on relative generalised Hamming weight
    Zhuang, Zhuojun
    Zhang, Keke
    Jing, Zhen
    Dai, Bin
    Huang, Jia
    IET COMMUNICATIONS, 2020, 14 (11) : 1794 - 1804
  • [7] On the distribution of Low Hamming Weight products
    Li, Jianghua
    Li, Qiao
    JOURNAL OF INEQUALITIES AND APPLICATIONS, 2020, 2020 (01)
  • [8] The implementation of Hamming decoder on Spartan 3
    Savulescu, Corina
    Iorgulescu, Mariana
    PROCEEDINGS OF THE 2014 6TH INTERNATIONAL CONFERENCE ON ELECTRONICS, COMPUTERS AND ARTIFICIAL INTELLIGENCE (ECAI), 2014,
  • [9] Analysis of Low Hamming Weight Products
    Cheon, Jung Hee
    Kim, HongTae
    DISCRETE APPLIED MATHEMATICS, 2008, 156 (12) : 2264 - 2269
  • [10] Small weight bases for Hamming codes
    Tromp, J
    Zhang, LX
    Zhao, Y
    THEORETICAL COMPUTER SCIENCE, 1997, 181 (02) : 337 - 345