Hoogle Search

Within LTS Haskell 24.3 (ghc-9.10.2)

Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.

  1. stepStartAdjust :: Int -> Int -> Int

    massiv Data.Massiv.Core.Index

    Helper for adjusting stride of a chunk

  2. badSafeIndex :: Int -> Int -> Int

    ghc-internal GHC.Internal.Arr

    Used to throw exceptions in array bounds-checking functions. ⚠ This function throws SomeException in all cases.

    Examples

    >>> badSafeIndex 2 5
    *** Exception: Error in array index; 2 not in range [0..5)
    

  3. remInt :: Int -> Int -> Int

    ghc-internal GHC.Internal.Base

    Used to implement rem for the Integral typeclass. This gives the remainder after integer division of its two parameters, satisfying

    ((x `quot` y) * y) + (x `rem` y) == x
    

    Example

    >>> remInt 3 2
    1
    
    >>> rem 3 2
    1
    

  4. quotInt :: Int -> Int -> Int

    ghc-internal GHC.Internal.Base

    Used to implement quot for the Integral typeclass. This performs integer division on its two parameters, truncated towards zero.

    Example

    >>> quotInt 10 2
    5
    
    >>> quot 10 2
    5
    

  5. divInt :: Int -> Int -> Int

    ghc-internal GHC.Internal.Base

    Used to implement div for the Integral typeclass. This performs integer division on its two parameters, truncated towards negative infinity.

    Example

    >>> 10 `divInt` 2
    5
    
    >>> 10 `div` 2
    5
    

  6. modInt :: Int -> Int -> Int

    ghc-internal GHC.Internal.Base

    Used to implement mod for the Integral typeclass. This performs the modulo operation, satisfying

    ((x `div` y) * y) + (x `mod` y) == x
    

    Example

    >>> 7 `modInt` 3
    1
    
    >>> 7 `mod` 3
    1
    

  7. clamp :: Int -> Int -> Int

    ghc-internal GHC.Internal.Float

    Used to prevent exponent over/underflow when encoding floating point numbers. This is also the same as

    \(x,y) -> max (-x) (min x y)
    

    Example

    >>> clamp (-10) 5
    10
    

  8. alignRoundUp :: Int -> Int -> Int

    foundation Foundation.Bits

    Round up (if needed) to a multiple of alignment closst to m alignment needs to be a power of two alignRoundUp 16 8 = 16 alignRoundUp 15 8 = 16

  9. alignRoundDown :: Int -> Int -> Int

    foundation Foundation.Bits

    Round down (if needed) to a multiple of alignment closest to m alignment needs to be a power of two

    alignRoundDown 15 8 = 8
    alignRoundDown 8 8  = 8
    

  10. delayed_min :: Int -> Int -> Int

    rebase Rebase.Data.Vector.Fusion.Util

    No documentation available.

Page 2 of many | Previous | Next