Changeset 8f99dbf in mainline
- Timestamp:
- 2019-02-03T17:03:37Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 472fe7a
- Parents:
- b4f1171
- Location:
- uspace/lib/c
- Files:
-
- 2 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/mem.c
rb4f1171 r8f99dbf 38 38 #include <stddef.h> 39 39 #include <stdint.h> 40 #include "private/cc.h" 40 41 41 42 /** Fill memory block with a constant value. */ 43 ATTRIBUTE_OPTIMIZE("-fno-tree-loop-distribute-patterns") 42 44 void *memset(void *dest, int b, size_t n) 43 45 { … … 114 116 115 117 /** Copy memory block. */ 118 ATTRIBUTE_OPTIMIZE("-fno-tree-loop-distribute-patterns") 116 119 void *memcpy(void *dst, const void *src, size_t n) 117 120 { -
uspace/lib/c/include/mem.h
rb4f1171 r8f99dbf 38 38 39 39 #include <stddef.h> 40 #include <cc.h>41 40 42 41 extern void *memset(void *, int, size_t) 43 __attribute__((nonnull(1))) 44 ATTRIBUTE_OPTIMIZE("-fno-tree-loop-distribute-patterns"); 42 __attribute__((nonnull(1))); 45 43 extern void *memcpy(void *, const void *, size_t) 46 __attribute__((nonnull(1, 2))) 47 ATTRIBUTE_OPTIMIZE("-fno-tree-loop-distribute-patterns"); 44 __attribute__((nonnull(1, 2))); 48 45 extern void *memmove(void *, const void *, size_t) 49 46 __attribute__((nonnull(1, 2)));
Note:
See TracChangeset
for help on using the changeset viewer.