Restored all cn/2 based algorithms, except cn/r.

This commit is contained in:
XMRig
2019-09-02 19:42:00 +07:00
parent acf6a2d2c3
commit 586c36affa
5 changed files with 1228 additions and 1676 deletions

View File

@@ -2,6 +2,7 @@
* @author SChernykh
*/
#if (ALGO_BASE == ALGO_CN_2)
inline uint get_reciprocal(uint a)
{
const float a_hi = as_float((a >> 8) + ((126U + 31U) << 23));
@@ -52,3 +53,4 @@ inline uint fast_sqrt_v2(const ulong n1)
return result;
}
#endif