This is the use case I had in mind when we were working on the log2 kernel.
Binary logs are the fastest log to compute (for floating point numbers)
because of Marcus' explanation. I even wrote the NEON log2 proto-kernel so
that the computation can be in-lined in other kernels in the future to
avoid the overhead of multiple calls for a determined person that thought
it was an issue.

-nw

On Wed, Sep 16, 2015 at 12:50 AM, Brian Padalino <bpadal...@gmail.com>
wrote:

> On Wed, Sep 16, 2015 at 12:24 AM, Dennis Glatting <gnura...@pki2.com>
> wrote:
> >
> > 1) Working with VOLK to learn VOLK.
> > 2) Having fun with vectors.
> > 3) Generating power data points for plotting across a selected
> >    set of samples.
>
> Lastly, another alternative, if you wanted to utilize what is already
> there in VOLK, if you wanted to do something like 10*log10(x), you can
> also think of it as 10*log2(x)/log2(10) - rewritten to put the
> constants together - 10*log2(10)*log2(x), where 10*log2(10) is
> 3.01029995664.
>
> So convert a vector of floats into log2 then multiply a vector by a
> const that is equal to 10*log2(10) to get them to their final value.
> Not as efficient, potentially, but still an option if you want to
> learn VOLK.
>
> Brian
>
> _______________________________________________
> Discuss-gnuradio mailing list
> Discuss-gnuradio@gnu.org
> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>
_______________________________________________
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio

Reply via email to