Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
  • This project
    • Loading...
  • Sign in / Register
A
angle
  • 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
  • angle
  • Repository

Switch branch/tag
  • angle
  • src
  • common
  • mathutil.cpp
Find file
BlameHistoryPermalink
  • Alexey Knyazev's avatar
    Refactor BitCount · baecb7d5
    Alexey Knyazev authored Mar 14, 2020
    POPCNT intrinsics cannot be used without hardware support, so a CPUID
    check and polyfills are required for some CPUs when using MSVC to
    avoid runtime failure.
    
    Other changes include:
    - Clang: use builtins on all platforms to provide exact intent to the
    compiler;
    - MSVC on ARM: use dedicated intrinsics;
    - x86/x64 fallback is now branchless and works in constant time.
    
    Bug: angleproject:4462
    Change-Id: I00fcabda1c842677d8cb4bfd280d932d0d10c0a5
    Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2102811Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org>
    Reviewed-by: 's avatarGeoff Lang <geofflang@chromium.org>
    Commit-Queue: Geoff Lang <geofflang@chromium.org>
    baecb7d5
mathutil.cpp 2.72 KB
EditWeb IDE
×

Replace mathutil.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.