Skip to content
  • H. Peter Anvin's avatar
    Make constants in kernel/timeconst.h fixed 64 bits · b9095fd8
    H. Peter Anvin authored
    
    
    Force constants in kernel/timeconst.h (except shift counts) to be 64 bits,
    using U64_C() constructor macros, and eliminate constants that cannot
    be represented at all in 64 bits.  This avoids warnings with some gcc
    versions.
    
    Drop generating 64-bit constants, since we have no real hope of
    getting a full set (operation on 64-bit values requires a 128-bit
    intermediate result, which gcc only supports on 64-bit platforms, and
    only with libgcc support on some.)  Note that the use of these
    constants does not depend on if we are on a 32- or 64-bit architecture.
    
    This resolves Bugzilla 10153.
    
    Signed-off-by: default avatarH. Peter Anvin <hpa@zytor.com>
    b9095fd8