Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
  • This project
    • Loading...
  • Sign in / Register
S
swiftshader
  • Project
    • Overview
    • Details
    • Activity
    • Cycle Analytics
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
  • Issues 0
    • Issues 0
    • List
    • Board
    • Labels
    • Milestones
  • Merge Requests 0
    • Merge Requests 0
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Charts
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Chen Yisong
  • swiftshader
  • Repository

Switch branch/tag
  • swiftshader
  • src
  • Common
  • Timer.cpp
Find file
BlameHistoryPermalink
  • Jeff Muizelaar's avatar
    Fix Timer::ticks() on x86-64. · 221a2746
    Jeff Muizelaar authored Jul 13, 2019
    Using =A is not the right constraint for x86-64.
    rdtsc is actually used as an example in the gcc documentation
    and for x86-64 something like "=a"(tickl),"=d"(tickh) should be
    used. Instead of worrying about this we can just use the builtin.
    
    Change-Id: Ied720de0861ff9231a4a4cdf85b75945fe478056
    Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/34108
    Kokoro-Presubmit: kokoro <noreply+kokoro@google.com>
    Reviewed-by: 's avatarNicolas Capens <nicolascapens@google.com>
    Tested-by: 's avatarJeff Muizelaar <jmuizelaar@mozilla.com>
    221a2746
Timer.cpp 2.05 KB
EditWeb IDE
×

Replace Timer.cpp

Attach a file by drag & drop or click to upload


Cancel
A new branch will be created in your fork and a new merge request will be started.