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
  • linux
  • include
  • linux
  • bitops.h
Find file BlameHistoryPermalink
  • Martin Kepplinger's avatar
    bitops.h: improve sign_extend32()'s documentation · e2eb53aa
    Martin Kepplinger authored Nov 06, 2015
    
    
    It is often overlooked that sign_extend32(), despite its name, is safe to
    use for 16 and 8 bit types as well.  This should help prevent sign
    extension being done manually some other way.
    
    Signed-off-by: default avatarMartin Kepplinger <martin.kepplinger@theobroma-systems.com>
    Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
    Cc: Ingo Molnar <mingo@redhat.com>
    Cc: Arnaldo Carvalho de Melo <acme@kernel.org>
    Cc: Thomas Gleixner <tglx@linutronix.de>
    Cc: "H. Peter Anvin" <hpa@zytor.com>
    Cc: George Spelvin <linux@horizon.com>
    Cc: Rasmus Villemoes <linux@rasmusvillemoes.dk>
    Cc: Maxime Coquelin <maxime.coquelin@st.com>
    Cc: Denys Vlasenko <dvlasenk@redhat.com>
    Cc: Yury Norov <yury.norov@gmail.com>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    e2eb53aa
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7