HISE Logo Forum
    • Categories
    • Register
    • Login

    data block operations (aka simd)

    Scheduled Pinned Locked Moved C++ Development
    3 Posts 2 Posters 97 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • ustkU
      ustk
      last edited by

      Alright, so this works since block has a *= operator

      void processBlock(block& d)
      {
      	d *= gain;
      }
      

      But obviously, this doesn't

      void processBlock(block& d)
      {
      	d = Math.tanh(d * gain);
      }
      

      Question, would there be a way to optimise vector operations with more complex algorithm than *=, +=, etc...?

      Can't help pressing F5 in the forum...

      Christoph HartC 1 Reply Last reply Reply Quote 0
      • Christoph HartC
        Christoph Hart @ustk
        last edited by

        @ustk yes but with diminishing returns. If the complexity of the calculation increases, the performance benefit of vectorization gets less important.

        Not super worth it IMHO.

        ustkU 1 Reply Last reply Reply Quote 1
        • ustkU
          ustk @Christoph Hart
          last edited by

          @Christoph-Hart Ok I let it go then! Thanks!

          Can't help pressing F5 in the forum...

          1 Reply Last reply Reply Quote 0
          • First post
            Last post

          34

          Online

          1.7k

          Users

          11.8k

          Topics

          102.7k

          Posts