Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. [Message Deleted]

[Message Deleted]

Scheduled Pinned Locked Moved C / C++ / MFC
9 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    KevinXLi
    wrote on last edited by
    #1

    [Message Deleted]

    P Steve EcholsS 2 Replies Last reply
    0
    • K KevinXLi

      [Message Deleted]

      P Offline
      P Offline
      Paul Conrad
      wrote on last edited by
      #2

      kevinxli wrote:

      I want to use SSE

      What parts of your code do you want to do this to? Have you looked at compiler flags to use SSE instructions?

      "Any sort of work in VB6 is bound to provide several WTF moments." - Christian Graus

      K 1 Reply Last reply
      0
      • K KevinXLi

        [Message Deleted]

        Steve EcholsS Offline
        Steve EcholsS Offline
        Steve Echols
        wrote on last edited by
        #3

        Which SSE do you want to use?


        - S 50 cups of coffee and you know it's on!

        • S
          50 cups of coffee and you know it's on!
          Code, follow, or get out of the way.
        1 Reply Last reply
        0
        • P Paul Conrad

          kevinxli wrote:

          I want to use SSE

          What parts of your code do you want to do this to? Have you looked at compiler flags to use SSE instructions?

          "Any sort of work in VB6 is bound to provide several WTF moments." - Christian Graus

          K Offline
          K Offline
          KevinXLi
          wrote on last edited by
          #4

          Paul Conrad wrote:

          What parts of your code do you want to do this to?

          ConvertRGB2HSV(...) is too slow.I want to rewrite this function using SSE (C++ code with inline Assembly ,like as: _asm{ movaps xmm1,xmm2 ... })

          P 1 Reply Last reply
          0
          • K KevinXLi

            Paul Conrad wrote:

            What parts of your code do you want to do this to?

            ConvertRGB2HSV(...) is too slow.I want to rewrite this function using SSE (C++ code with inline Assembly ,like as: _asm{ movaps xmm1,xmm2 ... })

            P Offline
            P Offline
            Paul Conrad
            wrote on last edited by
            #5

            Have you tried with the /arch:SSE flag set with full optimization? Sometimes it is easier to try and let the compiler do this kind of dirty work. If it doesn't increase the performance, then look into some inline assembly. I would only do the inline assembly where the code bottlenecks the worst. ---modified You could try to unroll the two for loops for better cache utilization, as another thought :-D

            "Any sort of work in VB6 is bound to provide several WTF moments." - Christian Graus

            K 1 Reply Last reply
            0
            • P Paul Conrad

              Have you tried with the /arch:SSE flag set with full optimization? Sometimes it is easier to try and let the compiler do this kind of dirty work. If it doesn't increase the performance, then look into some inline assembly. I would only do the inline assembly where the code bottlenecks the worst. ---modified You could try to unroll the two for loops for better cache utilization, as another thought :-D

              "Any sort of work in VB6 is bound to provide several WTF moments." - Christian Graus

              K Offline
              K Offline
              KevinXLi
              wrote on last edited by
              #6

              Paul Conrad wrote:

              Have you tried with the /arch:SSE flag set with full optimization?

              My compiler is VC6(SP5),not support this flag:doh: if like as "_asm{ movaps xmm1,xmm2 ...}" ,will Okey!(I'm sorry for my poor English)

              P 1 Reply Last reply
              0
              • K KevinXLi

                Paul Conrad wrote:

                Have you tried with the /arch:SSE flag set with full optimization?

                My compiler is VC6(SP5),not support this flag:doh: if like as "_asm{ movaps xmm1,xmm2 ...}" ,will Okey!(I'm sorry for my poor English)

                P Offline
                P Offline
                Paul Conrad
                wrote on last edited by
                #7

                Have you been able to do inline assembly with SSE instructions under VC6 before?

                "Any sort of work in VB6 is bound to provide several WTF moments." - Christian Graus

                K 1 Reply Last reply
                0
                • P Paul Conrad

                  Have you been able to do inline assembly with SSE instructions under VC6 before?

                  "Any sort of work in VB6 is bound to provide several WTF moments." - Christian Graus

                  K Offline
                  K Offline
                  KevinXLi
                  wrote on last edited by
                  #8

                  Paul Conrad wrote:

                  Have you been able to do inline assembly with SSE instructions under VC6 before?

                  Of course!

                  P 1 Reply Last reply
                  0
                  • K KevinXLi

                    Paul Conrad wrote:

                    Have you been able to do inline assembly with SSE instructions under VC6 before?

                    Of course!

                    P Offline
                    P Offline
                    Paul Conrad
                    wrote on last edited by
                    #9

                    Okay, cool. I'd start chipping away small bits with inline assembly and see where it goes.

                    "Any sort of work in VB6 is bound to provide several WTF moments." - Christian Graus

                    1 Reply Last reply
                    0
                    Reply
                    • Reply as topic
                    Log in to reply
                    • Oldest to Newest
                    • Newest to Oldest
                    • Most Votes


                    • Login

                    • Don't have an account? Register

                    • Login or register to search.
                    • First post
                      Last post
                    0
                    • Categories
                    • Recent
                    • Tags
                    • Popular
                    • World
                    • Users
                    • Groups