Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce unsafe offset_from on pointers #49297

Merged
merged 5 commits into from
Mar 26, 2018
Merged

Commits on Mar 23, 2018

  1. Introduce unsafe offset_from on pointers

    Adds intrinsics::exact_div to take advantage of the unsafe, which reduces the implementation from
    ```asm
        sub rcx, rdx
        mov rax, rcx
        sar rax, 63
        shr rax, 62
        lea rax, [rax + rcx]
        sar rax, 2
        ret
    ```
    down to
    ```asm
        sub rcx, rdx
        sar rcx, 2
        mov rax, rcx
        ret
    ```
    (for `*const i32`)
    scottmcm committed Mar 23, 2018
    Configuration menu
    Copy the full SHA
    68e0ea9 View commit details
    Browse the repository at this point in the history

Commits on Mar 24, 2018

  1. Configuration menu
    Copy the full SHA
    d6926ca View commit details
    Browse the repository at this point in the history

Commits on Mar 25, 2018

  1. Polyfill LLVMBuildExactUDiv

    It was added 32 days after LLVM 3.9 shipped.
    scottmcm committed Mar 25, 2018
    Configuration menu
    Copy the full SHA
    02b5851 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    4a097ea View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    6264952 View commit details
    Browse the repository at this point in the history