Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Register
  • Sign in
  • L linux
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Kirill Smelkov
  • linux
  • Repository
You need to sign in or sign up before continuing.
  • linux
  • lib
  • mpi
  • mpicoder.c
Find file BlameHistoryPermalink
  • Nicolai Stange's avatar
    lib/mpi: mpi_write_sgl(): purge redundant pointer arithmetic · ea122be0
    Nicolai Stange authored Mar 22, 2016
    
    
    Within the copying loop in mpi_write_sgl(), we have
    
      if (lzeros) {
        ...
        p -= lzeros;
        y = lzeros;
      }
      p = p - (sizeof(alimb) - y);
    
    If lzeros == 0, then y == 0, too. Thus, lzeros gets subtracted and added
    back again to p.
    
    Purge this redundancy.
    
    Signed-off-by: default avatarNicolai Stange <nicstange@gmail.com>
    Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
    ea122be0
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7