Welcome, Guest. Please login or register.

Author Topic: New CopyMem & CopyMemQuick patch  (Read 4846 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline Karlos

  • Sockologist
  • Global Moderator
  • Hero Member
  • *****
  • Join Date: Nov 2002
  • Posts: 16879
  • Country: gb
  • Thanked: 5 times
    • Show all replies
Re: New CopyMem & CopyMemQuick patch
« on: May 04, 2009, 12:31:11 PM »
I had a crazy idea for large copies once. If a PPC is detected, use that for copies that are large enough to mask the effects of the context switch. Only downside there is that such copies are rare.
int p; // A
 

Offline Karlos

  • Sockologist
  • Global Moderator
  • Hero Member
  • *****
  • Join Date: Nov 2002
  • Posts: 16879
  • Country: gb
  • Thanked: 5 times
    • Show all replies
Re: New CopyMem & CopyMemQuick patch
« Reply #1 on: May 04, 2009, 05:04:02 PM »
@matthey

Incidentally, if you want to speed up your unrolled move16 loop a tiny bit, move the subq instruction before the last move16.

The move16 doesn't affect the CC so you can do this safely. Not having to test the cc in the instruction immediately after the one that sets it might give a small speedup.
int p; // A