Last change
on this file since 175 was
175,
checked in by karaoui, 12 years ago
|
+ Adding the init attribute to the mwmr to specify the width of the mwmr channel
+ Fixing bugs in kernels_init
|
File size:
712 bytes
|
Line | |
---|
1 | ///////////////////////////////////////////////////////////// |
---|
2 | void *memcpy(void *_dst, const void *_src, unsigned int size) |
---|
3 | { |
---|
4 | unsigned int *dst = _dst; |
---|
5 | const unsigned int *src = _src; |
---|
6 | if ( ! ((unsigned int)dst & 3) && ! ((unsigned int)src & 3) ) |
---|
7 | while (size > 3) { |
---|
8 | *dst++ = *src++; |
---|
9 | size -= 4; |
---|
10 | } |
---|
11 | |
---|
12 | unsigned char *cdst = (unsigned char*)dst; |
---|
13 | unsigned char *csrc = (unsigned char*)src; |
---|
14 | |
---|
15 | while (size--) { |
---|
16 | *cdst++ = *csrc++; |
---|
17 | } |
---|
18 | return _dst; |
---|
19 | } |
---|
20 | |
---|
21 | ////////////////////////////////////////////////////////// |
---|
22 | inline void * memset(void *dst, int s, unsigned int count) |
---|
23 | { |
---|
24 | char *a = (char *) dst; |
---|
25 | while (count--) |
---|
26 | *a++ = (char)s; |
---|
27 | return dst; |
---|
28 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.