bitset: optimize the code generated by shifts in common cases

* spot/misc/bitset.hh: Here.
* spot/misc/bitset.cc: New file.
* spot/misc/Makefile.am: Add it.
* spot/twa/acc.hh: Conditionally remove the exception checks around
shift operators.
* spot/misc/common.hh (SPOT_ASSUME): New macro.
This commit is contained in:
Alexandre Duret-Lutz 2018-05-24 17:20:16 +02:00
parent e979791071
commit cc2c4615d0
5 changed files with 118 additions and 55 deletions

View file

@ -61,6 +61,7 @@ misc_HEADERS = \
noinst_LTLIBRARIES = libmisc.la
libmisc_la_SOURCES = \
bareword.cc \
bitset.cc \
bitvect.cc \
escape.cc \
formater.cc \