[issue36415] [math] Implement pow2 function

2019-03-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: See also issue31980. The objections exposed there are applicable to this issue. -- nosy: +serhiy.storchaka resolution: -> rejected stage: -> resolved status: open -> closed ___ Python tracker

[issue36415] [math] Implement pow2 function

2019-03-24 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: See also issue21420 in a previous attempt to optimize powers of 2 calculation in current code. -- nosy: +xtreak ___ Python tracker ___

[issue36415] [math] Implement pow2 function

2019-03-24 Thread SilentGhost
Change by SilentGhost : -- nosy: +mark.dickinson type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue36415] [math] Implement pow2 function

2019-03-24 Thread Марат Нагаев
Марат Нагаев added the comment: 110 times is the result on MacBook 2017 13 In my phone this works 187 times faster! -- ___ Python tracker ___ __

[issue36415] [math] Implement pow2 function

2019-03-24 Thread Марат Нагаев
New submission from Марат Нагаев : Hello. I want to implement pow2 function special for powers of 2. pow2 works 110 times faster if we pow 4 to 10**6 pow2 implementaion on Python: def pow2(a,b): p=log2(a)*b if not p.isinteger(): raise TypeError('a isn't power of 2!') return 1«p -- compon