tried to add faster srgb to/from linear from this source

https://stackoverflow.com/questions/6475373/optimizations-for-pow-with-const-non-integer-exponent

see answer with poly7 code. 

still around 8-9 fps on full HD frames (png), while different composition mode (porter/duff, srcOnTop) does 22 fps! 

On Tuesday, June 29, 2021, Andrew Randrianasulu <randrianasulu@gmail.com> wrote:
updated diff attached, now both 'my' new modes (avg was around before but was deleted at some point.. <*>) works in plain x11. probably for opengl preview you need to a bit more lines.. 

reason why it failed to compile at first - one (!) additional space in defines for new mode.. 

<*> http://git.cinelerra-gg.org/git/?p=goodguy/history.git;a=commit;h=93d60cc0fdf746cc03b4d7a9e45744c2c424439b



On Tuesday, June 29, 2021, Andrew Randrianasulu <randrianasulu@gmail.com> wrote:
finally looked at history..


and made this patch (attached) 

it works softer than logical or porter/duff modes, but notiecably  slower ( (on 8 core arm tablet) 


my modes fails to compile - something about me not really knowing how to write macro functions (?)