Rev 198 | Rev 202 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 198 | Rev 200 | ||
---|---|---|---|
Line 68... | Line 68... | ||
68 | __u8 *p = (__u8 *) dst; |
68 | __u8 *p = (__u8 *) dst; |
69 | 69 | ||
70 | for(i=0; i<cnt; i++) |
70 | for(i=0; i<cnt; i++) |
71 | p[i] = x; |
71 | p[i] = x; |
72 | } |
72 | } |
- | 73 | ||
- | 74 | /** Fill block of memory |
|
- | 75 | * |
|
- | 76 | * Fill cnt words at dst address with the value x. |
|
- | 77 | * The filling is done word-by-word. |
|
- | 78 | * |
|
- | 79 | * @param dst Origin address to fill. |
|
- | 80 | * @param cnt Number of words to fill. |
|
- | 81 | * @param x Value to fill. |
|
- | 82 | * |
|
- | 83 | */ |
|
- | 84 | void _memsetw(__address dst, size_t cnt, __u16 x) |
|
- | 85 | { |
|
- | 86 | int i; |
|
- | 87 | __u8 *p = (__u8 *) dst; |
|
- | 88 | ||
- | 89 | for(i=0; i<cnt; i++) |
|
- | 90 | p[i] = x; |
|
- | 91 | } |