Changeset 379d73f3 in mainline for src/lib/memstr.c
- Timestamp:
- 2005-08-30T22:11:45Z (20 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- c5ae095
- Parents:
- b524f816
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/lib/memstr.c
rb524f816 r379d73f3 71 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 }
Note:
See TracChangeset
for help on using the changeset viewer.