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
  • tools
  • testing
  • selftests
  • powerpc
  • stringloops
  • string.c
Find file BlameHistoryPermalink
  • Christophe Leroy's avatar
    selftests/powerpc: Add test for strlen() · f0abbfd8
    Christophe Leroy authored Aug 01, 2018
    
    
    This patch adds a test for strlen()
    
    string.c contains a copy of strlen() from lib/string.c
    
    The test first tests the correctness of strlen() by comparing
    the result with libc strlen(). It tests all cases of alignment.
    
    It them tests the duration of an aligned strlen() on a 4 bytes string,
    on a 16 bytes string and on a 256 bytes string.
    
    Signed-off-by: default avatarChristophe Leroy <christophe.leroy@c-s.fr>
    [mpe: Drop change log from copy of string.c]
    Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
    f0abbfd8
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7