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 条
  • [31] Weight functions and generalized hamming weights of linear codes
    Nogin D.Yu.
    Problems of Information Transmission, 2005, 41 (2) : 91 - 104
  • [32] The second generalized Hamming weight of certain Castle codes
    Olaya-Leon, Wilson
    Granados-Pinzon, Claudia
    DESIGNS CODES AND CRYPTOGRAPHY, 2015, 76 (01) : 81 - 87
  • [33] IMPLEMENTATION OF A POLYCHROMATIC HAMMING NET FOR COLOR IMAGE CLASSIFICATION
    UANG, CM
    YU, FTS
    KIM, KT
    YANG, XY
    APPLIED OPTICS, 1994, 33 (23): : 5443 - 5447
  • [35] Random small Hamming weight products with applications to cryptography
    Hoffstein, J
    Silverman, JH
    DISCRETE APPLIED MATHEMATICS, 2003, 130 (01) : 37 - 49
  • [36] HAMMING WEIGHT AS CRITERIA OF EVALUATION RESPONSE TO TIME ATTACK
    Shaikhanova, A. K.
    Kurushbayeva, D. T.
    Bekeshova, G. B.
    BULLETIN OF THE NATIONAL ACADEMY OF SCIENCES OF THE REPUBLIC OF KAZAKHSTAN, 2016, (04): : 118 - +
  • [37] Physical Implementation of Cosine Function Used in the Hamming Window
    Tahir, N.
    Boudraa, M.
    2018 INTERNATIONAL CONFERENCE ON COMMUNICATIONS AND ELECTRICAL ENGINEERING (ICCEE), 2018, : 23 - +
  • [38] The relative generalized Hamming weight and the semilinear equivalence of codes
    Liu ZiHui
    Wang Jie
    SCIENCE CHINA-INFORMATION SCIENCES, 2011, 54 (04) : 787 - 794
  • [39] On the minimal Hamming weight of a multi-base representation
    Krenn, Daniel
    Suppakitpaisarn, Vorapong
    Wagner, Stephan
    JOURNAL OF NUMBER THEORY, 2020, 208 : 168 - 179
  • [40] The relative generalized Hamming weight and the semilinear equivalence of codes
    ZiHui Liu
    Jie Wang
    Science China Information Sciences, 2011, 54 : 787 - 794