Skip to content

Commit

Permalink
use new buffer convert syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
guruofquality committed Dec 3, 2017
1 parent 963f472 commit 6262ad9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions jit_cpp_block/SimpleFloatAdder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ class SimpleFloatAdder : public Pothos::Block
auto inPort0 = this->input(0);
auto inPort1 = this->input(1);
auto outPort = this->output(0);
const auto &inBuff0 = inPort0->buffer().as<const float *>();
const auto &inBuff1 = inPort1->buffer().as<const float *>();
const auto &outBuff = outPort->buffer().as<float *>();
const float *inBuff0 = inPort0->buffer();
const float *inBuff1 = inPort1->buffer();
float *outBuff = outPort->buffer();

//perform the addition operation
for (size_t i = 0; i < N; i++)
Expand Down

0 comments on commit 6262ad9

Please sign in to comment.