GithubHelp home page GithubHelp logo

Comments (1)

Freaky avatar Freaky commented on June 28, 2024

Confused as to why it nonetheless works on a very old machine that tops out at "SSE4a", I look at a disassembly and find:

0000000000057b40 <core::core_arch::x86::sse41::_mm_extract_epi32>:
core::core_arch::x86::sse41::_mm_extract_epi32:
57b40:       8b 47 08                mov    eax,DWORD PTR [rdi+0x8]
57b43:       c3                      ret

..

0000000000057b50 <core::core_arch::x86::sse41::_mm_extract_epi32>:
core::core_arch::x86::sse41::_mm_extract_epi32:
   57b50:   8b 07                   mov    eax,DWORD PTR [rdi]
   57b52:   c3                      ret

So instead of an SSE4.1 pextrd, it actually compiled down to a couple of mov instructions. It seems unfortunate to depend on that.

from bytecount.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.