Will Godfrey:
> Does anyone know if GCC will replace power of 2 multiplications/divisions of
> unsigned integers with bit shifts?
Test on your system:
$ cat a.c
#include
int main(int argc, char *argv[]) {
uint16_t b = argc * 2;
return b;
}
$ gcc -S a.c
$ cat a.s
...
main:
.LFB0:
Does anyone know if GCC will replace power of 2 multiplications/divisions of
unsigned integers with bit shifts?
--
Will J Godfrey
http://www.musically.me.uk
Say you have a poem and I have a tune.
Exchange them and we can both have a poem, a tune, and a song.
Hello,
a new version of B.Slizr ((formerly known as B.Slicer) - a sequenced
audio slicing effect LV2 plugin ("step sequencer effect")* - is out now.
GPLv3 license.
What's new:
* Rename
* Resizable GUI
* Bidirectional amp display
* Update BWidgets toolkit
* Bugfix
* Jack transport still