#2271: floor, ceiling, round :: Double -> Int are awesomely slow
------------------------------------------+---------------------------------
    Reporter:  dons                       |        Owner:  daniel.is.fischer
        Type:  bug                        |       Status:  patch            
    Priority:  low                        |    Milestone:  7.0.1            
   Component:  libraries/base             |      Version:  7.1              
    Keywords:  performance, math, double  |     Testcase:                   
   Blockedby:                             |   Difficulty:  Unknown          
          Os:  Unknown/Multiple           |     Blocking:                   
Architecture:  Unknown/Multiple           |      Failure:  None/Unknown     
------------------------------------------+---------------------------------

Comment(by daniel.is.fischer):

 !QuickCheck doesn't know about the new !SplittableGen class in
 System.Random yet, so split is not in scope in a couple of modules.

 Good catch, the `-0.0`. I mimicked `rint[f]`'s behaviour, didn't think
 about that. Easy change. We don't have good support for `-0.0` in any
 conversion functions anyway.

 I was referring to what happens with out-of-range values in arith005,
 though. `double2Int` and `float2Int` return minBound for those. You can't
 see that in the tests because there are no values outside 64-bit int range
 there, only outside 32-bit range :)

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2271#comment:28>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to