× 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.



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


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
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.