diff options
author | Fraser Tweedale <frase@frase.id.au> | 2021-07-26 11:31:21 +1000 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2021-07-27 04:50:13 -0400 |
commit | c28933610a02e59c3e9ea41020627791a4af7028 (patch) | |
tree | aa120dd5763bbd84defa536ed401e4887cb935b6 /libraries | |
parent | 229b4e51bae070058e8ec30415955f7cec47c798 (diff) | |
download | haskell-c28933610a02e59c3e9ea41020627791a4af7028.tar.gz |
doc: fix copy/paste error
The `divInt#` implementation note has heading:
See Note [divInt# implementation]
This seems to be a copy/paste mistake. Remove "See" from the
heading.
Diffstat (limited to 'libraries')
-rw-r--r-- | libraries/ghc-prim/GHC/Classes.hs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libraries/ghc-prim/GHC/Classes.hs b/libraries/ghc-prim/GHC/Classes.hs index a81cb12e8c..fb9ea98581 100644 --- a/libraries/ghc-prim/GHC/Classes.hs +++ b/libraries/ghc-prim/GHC/Classes.hs @@ -598,8 +598,8 @@ x# `divInt32#` y# = ((x# `plusInt32#` bias#) `quotInt32#` y#) `subInt32#` hard# !bias# = c0# `subInt32#` c1# !hard# = c0# `orInt32#` c1# --- See Note [divInt# implementation] --- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +-- Note [divInt# implementation] +-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -- -- divInt# (truncated toward zero) is implemented with quotInt# (truncated -- toward negative infinity). They differ when inputs x and y have different signs: |