công cụ tìm kiếm bảng dữ liệu linh kiện điện tử
  Vietnamese  ▼
ALLDATASHEET.VN

X  

AN2367 bảng dữ liệu(PDF) 4 Page - STMicroelectronics

tên linh kiện AN2367
Giải thích chi tiết về linh kiện  This application note describes an optimized memory copy
PDF  13 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
nhà sản xuất  STMICROELECTRONICS [STMicroelectronics]
Trang chủ  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN2367 bảng dữ liệu(HTML) 4 Page - STMicroelectronics

  AN2367 Datasheet HTML 1Page - STMicroelectronics AN2367 Datasheet HTML 2Page - STMicroelectronics AN2367 Datasheet HTML 3Page - STMicroelectronics AN2367 Datasheet HTML 4Page - STMicroelectronics AN2367 Datasheet HTML 5Page - STMicroelectronics AN2367 Datasheet HTML 6Page - STMicroelectronics AN2367 Datasheet HTML 7Page - STMicroelectronics AN2367 Datasheet HTML 8Page - STMicroelectronics AN2367 Datasheet HTML 9Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 4 / 13 page
background image
The optimized routine
AN2367
4/13
2
The optimized routine
2.1
Interface
void MEMCOPY_L2S_BY4(void *pDEST, void *pSRC, ushort NbrByte)
Note about pointers:
In this description above, the pointers are pointing to a void.
A way of looking at it is that the pointer is pointing to a buffer of long with the first 2 bytes
filled with zeros.
Another way of looking at it is that the pointer is pointing to a buffer of chars.
While it is beyond this application note to explain the problem of mapping bytes, short and
long in the same memory space in C, it is worth noting that the routine could be declared
differently.
In fact, when running the program to test the routine on its own, it was declared as
void MEMCOPY_L2S_BY4(short *pDEST, long *pSRC, long NbrByte)
See Appendix B on page 11 for an example of the C call.
2.2
Algorithm description
The algorithm works as follows:
First level - granularity 16: The CPU transfer 16 bytes per iteration until the number of
bytes is less than 16. Go to second level.
Second level: Granularity 4: Depending on the remaining number of bytes, the CPU
transfer either 4, 8 or 12 bytes. Go to third level.
Third level: Granularity1: Depending on the remaining number of bytes, the CPU
transfer either 1, 2 or 3 bytes.



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13


bảng dữ liệu tải về

Go To PDF Page


Link URL



Cho đến nay ALLDATASHEET có giúp ích cho doanh nghiệp của bạn hay không?  [ DONATE ] 

Alldatasheet là   |   Quảng cáo   |   Liên lạc với chúng tôi   |   Chính sách bảo mật   |   Liên kết đến bảng dữ liệu    |   Trao đổi link   |   Tìm kiếm theo nhà sản xuất
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com