sbjaerum Wrote: 
> 
> +               return int($floatmult * (1 << 8) + 0.5) * (1 << 8);
> 

I'm not sure if performance matters here, but one thing to consider is
that multiplying an integer by (1 << 8) is the same as shifting that
int left 8 bits (and it may be more efficient, depending on
optimization, etc.), so the line above could be:

+               return int($floatmult * (1 << 8) + 0.5) << 8;

-Joe


-- 
skyrush
------------------------------------------------------------------------
skyrush's Profile: http://forums.slimdevices.com/member.php?userid=853
View this thread: http://forums.slimdevices.com/showthread.php?t=17269

_______________________________________________
audiophiles mailing list
[email protected]
http://lists.slimdevices.com/lists/listinfo/audiophiles

Reply via email to