Skip to content
Snippets Groups Projects
Forked from cmucl / cmucl
Source project has a limited visibility.
  • Raymond Toy's avatar
    2c1badef
    Fix issue with negative value for lisp::cycles-per-tick. · 2c1badef
    Raymond Toy authored
    This causes negative cpu cyles with TIME. Basic issue is that a cpu
    frequency of 2.3 GHZ won't fit in an int. Use an unsigned int.
    
    We also take this opportunity to use a rounded value for
    clocks-per-tick instead of truncating.  For this particular case the
    ratio is actual 68.99 which would truncated to 68. We should probably
    use 69 instead.
    2c1badef
    History
    Fix issue with negative value for lisp::cycles-per-tick.
    Raymond Toy authored
    This causes negative cpu cyles with TIME. Basic issue is that a cpu
    frequency of 2.3 GHZ won't fit in an int. Use an unsigned int.
    
    We also take this opportunity to use a rounded value for
    clocks-per-tick instead of truncating.  For this particular case the
    ratio is actual 68.99 which would truncated to 68. We should probably
    use 69 instead.