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 条
  • [21] Solving Linear Equations Parameterized by Hamming Weight
    Arvind, V.
    Koebler, Johannes
    Kuhnert, Sebastian
    Toran, Jacobo
    ALGORITHMICA, 2016, 75 (02) : 322 - 338
  • [22] Fuzzy Hamming neural networks and its implementation
    Hua, Qiang
    Zheng, Qi-Lun
    Tien Tzu Hsueh Pao/Acta Electronica Sinica, 2002, 30 (02): : 177 - 179
  • [23] Hamming Weight of Product of Random Sparse Polynomials
    Kawachi, Akinori
    PROCEEDINGS OF 2020 INTERNATIONAL SYMPOSIUM ON INFORMATION THEORY AND ITS APPLICATIONS (ISITA2020), 2020, : 368 - 371
  • [24] On the Hamming weight of binary sequences and linear complexity
    Sorokine, V
    Pasupathy, S
    1998 IEEE INTERNATIONAL SYMPOSIUM ON INFORMATION THEORY - PROCEEDINGS, 1998, : 103 - 103
  • [25] A New Test for Hamming-Weight Dependencies
    Blackman, David
    Vigna, Sebastiano
    ACM TRANSACTIONS ON MODELING AND COMPUTER SIMULATION, 2022, 32 (03):
  • [26] Efficient Hamming weight comparators of binary vectors
    Piestrak, S. J.
    ELECTRONICS LETTERS, 2007, 43 (11) : 611 - 612
  • [27] Computation of Minimum Hamming Weight for Linear Codes
    Rostami, Esmaeil
    Nekooei, Reza
    IRANIAN JOURNAL OF MATHEMATICAL SCIENCES AND INFORMATICS, 2019, 14 (01): : 81 - 93
  • [28] On the Hamming Weight Distribution of Subsequences of Pseudorandom Sequences
    Shirvanimoghaddam, Mahyar
    2021 IEEE INTERNATIONAL SYMPOSIUM ON INFORMATION THEORY (ISIT), 2021, : 1671 - 1675
  • [29] The relative generalized Hamming weight and the semilinear equivalence of codes
    LIU ZiHui 1 & WANG Jie 2 1 Department of Mathematics
    2 School of Mathematical Sciences
    ScienceChina(InformationSciences), 2011, 54 (04) : 787 - 794
  • [30] SIGNED-DIGIT REPRESENTATIONS OF MINIMAL HAMMING WEIGHT
    ARNO, S
    WHEELER, FS
    IEEE TRANSACTIONS ON COMPUTERS, 1993, 42 (08) : 1007 - 1010