Skip to content
  • Duncan Coutts's avatar
    8917ca16
    Tweak the small integer case of gcdInteger for better optimisation · 8917ca16
    Duncan Coutts authored
    The gcdInt function in the base package now calls gcdInteger with
    two small integers. With this weak, the optimiser generates a base
    gcdInt that directly calls the gcdInt# primop from this package.
    This means there should be no additional overhead compared to when
    the base gcdInt called the gcdInt# primop directly.
    8917ca16
    Tweak the small integer case of gcdInteger for better optimisation
    Duncan Coutts authored
    The gcdInt function in the base package now calls gcdInteger with
    two small integers. With this weak, the optimiser generates a base
    gcdInt that directly calls the gcdInt# primop from this package.
    This means there should be no additional overhead compared to when
    the base gcdInt called the gcdInt# primop directly.
Loading