Re: [LAD] Bit shift
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: .cfi_startproc pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 movq%rsp, %rbp .cfi_def_cfa_register 6 movl%edi, -20(%rbp) movq%rsi, -32(%rbp) movl-20(%rbp), %eax addl%eax, %eax movw%ax, -2(%rbp) movzwl -2(%rbp), %eax popq%rbp .cfi_def_cfa 7, 8 ret .cfi_endproc ... $ It seems it just adds the value with itself here. Regards, /Karl Hammar ___ Linux-audio-dev mailing list Linux-audio-dev@lists.linuxaudio.org https://lists.linuxaudio.org/listinfo/linux-audio-dev
[LAD] Bit shift
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. ___ Linux-audio-dev mailing list Linux-audio-dev@lists.linuxaudio.org https://lists.linuxaudio.org/listinfo/linux-audio-dev
[LAD] [ANN] B.Slizr v0.4 (formerly known as B.Slicer)
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 required Feedback, ideas, bug reports, ... welcome. *Still thinking about the best description of this plugin. Any ideas are welcome. Project page: https://github.com/sjaehn/BSlizr Releases: https://github.com/sjaehn/BSlizr/releases Preview video (based on v0.1): https://www.youtube.com/watch?v=1VD3KsXvyLU ___ Linux-audio-dev mailing list Linux-audio-dev@lists.linuxaudio.org https://lists.linuxaudio.org/listinfo/linux-audio-dev