U64
DivPow10(U64 a, S64 index)
{
ASSERT(index >= 0 && index < 19);
// Generated using libdivide's reference implementation adapted to 64-bit unsigned integers.
static const struct { U64 mul; U32 shr1; U32 shr2; } kPow10Magics[19] = {
{ 0xcccccccccccccccd, 0, 3 }, // 10^1
{ 0x28f5c28f5c28f5c3, 2, 2 }, // 10^2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import re | |
import zlib | |
import urllib.request | |
from struct import unpack | |
class QQWayIPSeekerUpdate(): | |
@classmethod | |
def __download_meta(cls): |