× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Actually COPYBYTES is supposed to be the fastest. However, it does not copy
pointers.

-Bob Cozzi
www.RPGxTools.com
If everything is under control, you are going too slow.
- Mario Andretti


-----Original Message-----
From: mi400-bounces@xxxxxxxxxxxx [mailto:mi400-bounces@xxxxxxxxxxxx] On
Behalf Of Dave McKenzie
Sent: Monday, June 20, 2005 10:07 AM
To: MI Programming on the AS400 / iSeries
Subject: Re: [MI400] Write System Pointer to User Space

Looking an an MI pgm with a 32-byte CPYBLA and a 32-byte CPYBWP, the 
CPYBLA uses LSDX/STSDX (Load/Store string doubleword indexed), while 
CPYBWP uses 2 pairs of LQ/STQ (Load/Store quadword).

One could write test loops to find out which is faster.

I suspect memcpy always does CPYBWP.

--Dave

Steve Richter wrote:
> 
> -----Original Message-----
> From: mi400-bounces@xxxxxxxxxxxx [mailto:mi400-bounces@xxxxxxxxxxxx]On
> Behalf Of Dave McKenzie
> Sent: Sunday, June 19, 2005 2:11 PM
> To: MI Programming on the AS400 / iSeries
> Subject: Re: [MI400] Write System Pointer to User Space
> 
> 
> Hi Peter,
> 
>>Here's a pgm that does that.  The "memcpy" function does the equivalent
>>of a CPYBWP (Copy Bytes With Pointers) MI instruction under the covers.
> 
> I have always assumed that CPYBWP was slower than CPYBLA.  Not true? Does
memcpy always use CPYBWP in place of CPYBLA? ( I know,  LDQ and STQ! )
> 
> -Steve
>
_______________________________________________
This is the MI Programming on the AS400 / iSeries (MI400) mailing list
To post a message email: MI400@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/mi400
or email: MI400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/mi400.





As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.