Changeset 472fe7a in mainline
- Timestamp:
- 2019-02-03T22:49:24Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 4f4018b
- Parents:
- 8f99dbf
- Location:
- uspace/lib/c/generic
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/mem.c
r8f99dbf r472fe7a 41 41 42 42 /** Fill memory block with a constant value. */ 43 ATTRIBUTE_OPTIMIZE ("-fno-tree-loop-distribute-patterns")44 void *memset(void *dest, int b, size_t n)43 ATTRIBUTE_OPTIMIZE_NO_TLDP 44 void *memset(void *dest, int b, size_t n) 45 45 { 46 46 char *pb; … … 116 116 117 117 /** Copy memory block. */ 118 ATTRIBUTE_OPTIMIZE ("-fno-tree-loop-distribute-patterns")119 void *memcpy(void *dst, const void *src, size_t n)118 ATTRIBUTE_OPTIMIZE_NO_TLDP 119 void *memcpy(void *dst, const void *src, size_t n) 120 120 { 121 121 size_t i; -
uspace/lib/c/generic/private/cc.h
r8f99dbf r472fe7a 39 39 #ifndef __clang__ 40 40 #define ATTRIBUTE_OPTIMIZE(opt) \ 41 41 __attribute__ ((optimize(opt))) 42 42 #else 43 43 #define ATTRIBUTE_OPTIMIZE(opt) 44 44 #endif 45 46 #define ATTRIBUTE_OPTIMIZE_NO_TLDP \ 47 ATTRIBUTE_OPTIMIZE("-fno-tree-loop-distribute-patterns") 45 48 46 49 #endif
Note:
See TracChangeset
for help on using the changeset viewer.