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 条
  • [41] The second generalized Hamming weight of certain Castle codes
    Wilson Olaya-León
    Claudia Granados-Pinzón
    Designs, Codes and Cryptography, 2015, 76 : 81 - 87
  • [42] Design and Implementation of Hamming Encoder and Decoder Over FPGA
    Parvez, A. H. M. Shahariar
    Rahman, Md. Mizanur
    Podder, Prajoy
    Hossain, Mohammad
    Islam, Muhammad Ashiqul
    INTERNATIONAL CONFERENCE ON COMPUTER NETWORKS AND COMMUNICATION TECHNOLOGIES (ICCNCT 2018), 2019, 15 : 1005 - 1022
  • [43] New Asymptotic Metrics for Relative Generalized Hamming Weight
    Matsumoto, Ryutaroh
    2014 IEEE INTERNATIONAL SYMPOSIUM ON INFORMATION THEORY (ISIT), 2014, : 3142 - 3144
  • [44] Matrix characterization of linear codes with arbitrary Hamming weight hierarchy
    Viswanath, G
    Rajan, BS
    LINEAR ALGEBRA AND ITS APPLICATIONS, 2006, 412 (2-3) : 396 - 407
  • [45] Logarithmic-depth quantum circuits for Hamming weight projections
    Rethinasamy, Soorya
    Laborde, Margarite L.
    Wilde, Mark M.
    PHYSICAL REVIEW A, 2024, 110 (05)
  • [46] Code constructions and existence bounds for relative generalized Hamming weight
    Zhuang, Zhuojun
    Luo, Yuan
    Dai, Bin
    DESIGNS CODES AND CRYPTOGRAPHY, 2013, 69 (03) : 275 - 297
  • [47] Presentation, Implementation and Application of a High Speed Hamming Distance Generator
    Shan Baotang
    Wang Yusheng
    MEASURING TECHNOLOGY AND MECHATRONICS AUTOMATION IV, PTS 1 AND 2, 2012, 128-129 : 956 - 960
  • [48] The input-output weight enumeration of binary Hamming codes
    Loskot, Pavel
    Beaulieu, Norman C.
    EUROPEAN TRANSACTIONS ON TELECOMMUNICATIONS, 2006, 17 (04): : 483 - 488
  • [49] ASIC Implementation of Associative Memory and Hamming Distance for HDC Application
    Hassan, Eman
    Tesfai, Huruy
    Mohammad, Baker
    Saleh, Hani
    2021 28TH IEEE INTERNATIONAL CONFERENCE ON ELECTRONICS, CIRCUITS, AND SYSTEMS (IEEE ICECS 2021), 2021,