#3065: Reorder tests in quot to improve code
--------------------------------------+-------------------------------------
Reporter: simonpj | Owner:
Type: bug | Status: new
Priority: normal | Milestone: 6.12 branch
Component: libraries/base | Version: 6.10.1
Resolution: | Keywords:
Difficulty: Unknown | Os: Unknown/Multiple
Testcase: | Architecture: Unknown/Multiple
Failure: Runtime performance bug |
--------------------------------------+-------------------------------------
Comment (by simonmar):
Currently the meaning of overflow in division is to throw a (software)
exception at runtime. If we were to change the meaning of overflow in
division to be truncation instead, and to apply that consistently, then
yes I agree with you that the test in quot is only necessary on some
processors, and therefore arguably should be in the NCG.
I'd be happy to make that change, although I did suggest it before (in the
comments on #1042) and Ian argued for an exception instead, hence the
current behaviour.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3065#comment:11>
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