Faster memory copy (optimized for AMD)

Share your advanced PureBasic knowledge/code with the community.
User avatar
HeX0R
Addict
Addict
Posts: 1189
Joined: Mon Sep 20, 2004 7:12 am
Location: Hell

Post by HeX0R »

HaHaHa

I really like the the fact, that you left the wrong code at the beginning of this thread.
This will teach all those lazy I-Read-Just-The-First-Few-Posts-Guys a lesson :wink:
El_Choni
TailBite Expert
TailBite Expert
Posts: 1007
Joined: Fri Apr 25, 2003 6:09 pm
Location: Spain

Post by El_Choni »

You are so evil. I'm one of these guys, so I take your post as a reasonable request, and I've updated my first post. :lol:

Regards,
El_Choni
dagcrack
Addict
Addict
Posts: 1868
Joined: Sun Mar 07, 2004 8:47 am
Location: Argentina
Contact:

Post by dagcrack »

:shock: Para que version de PB es ? tengo 3.90 y me tira error en linea 47 "'esi' is not a valid operator"

gracias :? sorry for the english talkers :P :P :P
traumatic
PureBasic Expert
PureBasic Expert
Posts: 1661
Joined: Sun Apr 27, 2003 4:41 pm
Location: Germany
Contact:

Post by traumatic »

Not that I know spanish but " 'esi' is not a valid operator" sounds like you didn't
enable Inline-ASM. Could that be?
Good programmers don't comment their code. It was hard to write, should be hard to read.
El_Choni
TailBite Expert
TailBite Expert
Posts: 1007
Joined: Fri Apr 25, 2003 6:09 pm
Location: Spain

Post by El_Choni »

Yes, dagcrack. En Compilador-->Opciones de compilación--> activa la casilla de "Activar ASM en código".

Regards,
El_Choni
User avatar
Le Soldat Inconnu
Enthusiast
Enthusiast
Posts: 306
Joined: Wed Jul 09, 2003 11:33 am
Location: France

Post by Le Soldat Inconnu »

AMD Athlon 900Mhz, 512 ram
--- 64 MB tranfer test ---
AMD Function : 2433
Pure Function : 5869
AMD Function is 2.412248 times faster.

--- 1 MB tranfer test ---
AMD Function : 751
Pure Function : 1823
AMD Function is 2.427430 times faster.

--- 100kb tranfer test ---
AMD Function : 1712
Pure Function : 1212
AMD Function is 0.707944 times faster.
LSI
Post Reply