INNER CODE UNIT · Python

expected

KwaiAppTeam/KOOM · koom-common/kwai-android-base/src/main/cpp/fmtlib/support/compute-powers.py:34

    expected = 10 ** (exp_offset10 + exp)
    precision = len('{}'.format(expected)) - len('{}'.format(actual - expected))
    if precision < 19:
        print('low precision:', precision)
        exit(1)

print('Significands:', end='')
for i, fp in enumerate(powers):
    if i % 3 == 0:
        print(end='\n ')
    print(' {:0<#16x}'.format(fp.f, ), end=',')

print('\n\nExponents:', end='')
for i, fp in enumerate(powers):
    if i % 11 == 0:
        print(end='\n ')
    print(' {:5}'.format(fp.e), end=',')

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…