UL_LO_12(ld12) >> 16;
        *UL_LO_12 (ld12) <<= 16;
        expn -= 16;
    }

    while ((*UL_HI_12(ld12) & MSB_USHORT) == 0)
    {
        shl_ld12<1>(ld12);
        --expn;
    }

    *U_EXP_12(ld12) = expn;
}

namespace __crt_strtox {

void __cdecl assemble_floating_point_zero(bool const is_negative, _LDBL12& result) throw()
{
    uint16_t const sign_bit{static_cast<uint16_t>(is_negative ? MSB_USHORT : 0x0000)};

    // Zero is all zero bits with an optional sign bit:
    *U_XT_12    (&result) = 0;
    *UL_MANLO_12(&result) = 0;
    *UL_MANHI_12(&result) = 0;
    *U_EXP_12   (&result) = sign_bit;
}

void __cdecl assemble_floating_point_infinity(bool const is_negative, _LDBL12& result) throw()
{
    uint16_t const sign_bit{static_cast<uint16_t>(is_negative ? MSB_USHORT : 0x0000)};

    // Infinity has an all-zero mantissa and an all-one exponent
    *U_XT_12    (&result) = 0;
    *UL_MANLO_12(&result) = 0;
    *UL_MANHI_12(&result) = 0;
    *U_EXP_12   (&result) = static_cast<uint16_t>(LD_MAXEXP) | sign_bit;
}

void __cdecl assemble_floating_point_qnan(bool const is_negative, _LDBL12& result) throw()
{
    uint16_t const sign_bit{static_cast<uint16_t>(is_negative ? MSB_USHORT : 0x0000)};

    *U_XT_12    (&result) = 0xffff;
    *UL_MANLO_12(&result) = 0xffffffff;
    *UL_MANHI_12(&result) = 0xffffffff;
    *U_EXP_12   (&result) = static_cast<uint16_t>(LD_MAXEXP) | sign_bit;
}

void __cdecl assemble_floating_point_snan(bool const is_negative, _LDBL12& result) throw()
{
    uint16_t const sign_bit{static_cast<uint16_t>(is_negative ? MSB_USHORT : 0x0000)};

    *U_XT_12    (&result) = 0xffff;
    *UL_MANLO_12(&result) = 0xffffffff;
    *UL_MANHI_12(&result) = 0xbfffffff;
    *U_EXP_12   (&result) = static_cast<uint16_t>(LD_MAXEXP) | sign_bit;
}

void __cdecl assemble_floating_point_ind(_LDBL12& result) throw()
{
    uint16_t const sign_bit{static_cast<uint16_t>(MSB_USHORT)};

    *U_XT_12    (&result) = 0x0000;
    *UL_MANLO_12(&result) = 0x0000000