Results 1 to 4 of 4

Thread: How to use processor extended instructions?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Delphi and Windows and 64bit.

    I'm not after anything specific at this point but made the post because I didn't really find any general online information about it.

  2. #2
    FPC - configure the target CPU (for general instruction extensions, like POPCNT) and FPU (for vector instruction set, like SSE). For example, on x86, you have to pass the option -Cfsse2 to the compiler to use SSE2 for fp calculations. On x64, SSE2 is default, but if you want to use something higher, like AVX, you'll have to pass the option -CfAVX. Just don't have any huge expectations about the performance boost; SSE2 on 32bit helps quite a lot, but that's about it, until FPC gets autovectorization.
    In addition, there are some standard library functions that use extensions if they are detected at program startup, like Move.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •