aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-vectorizer.h
diff options
context:
space:
mode:
authorRoger Sayle <roger@nextmovesoftware.com>2023-06-05 17:28:51 +0100
committerRoger Sayle <roger@nextmovesoftware.com>2023-06-05 17:28:51 +0100
commit108ff03bac3c440db792fcc61d6247e75b56a572 (patch)
tree18a11eec38eb13408461427a1fd7d4dccaf1314c /gcc/tree-vectorizer.h
parentf7f12f0b64646968d722c2d80f149934358a7d71 (diff)
downloadgcc-108ff03bac3c440db792fcc61d6247e75b56a572.zip
gcc-108ff03bac3c440db792fcc61d6247e75b56a572.tar.gz
gcc-108ff03bac3c440db792fcc61d6247e75b56a572.tar.bz2
New wi::bitreverse function.
This patch provides a wide-int implementation of bitreverse, that implements both of Richard Sandiford's suggestions from the review at https://gcc.gnu.org/pipermail/gcc-patches/2023-May/618215.html of an improved API (as a stand-alone function matching the bswap refactoring), and an implementation that works with any bit-width precision. 2023-06-05 Roger Sayle <roger@nextmovesoftware.com> gcc/ChangeLog * wide-int.cc (wi::bitreverse_large): New function implementing bit reversal of an integer. * wide-int.h (wi::bitreverse): New (template) function prototype. (bitreverse_large): Prototype helper function/implementation. (wi::bitreverse): New template wrapper around bitreverse_large.
Diffstat (limited to 'gcc/tree-vectorizer.h')
0 files changed, 0 insertions, 0 deletions