def to_ulps(x):
    n = struct.unpack('<q', struct.pack('<d', x))[0]
    if n < 0:
        n = ~(n+2**63)
    return n
Resizes a given instance to the flavor size requested.
dataset/ETHPy150Open amrdraz/kodr/app/brython/www/src/Lib/test/test_math.py/to_ulps--crossover with--dataset/ETHPy150Open BU-NU-CLOUD-SP16/Trusted-Platform-Module-nova/nova/api/openstack/compute/legacy_v2/servers.py/Controller._action_resize