Changeset 0dc2fec in mainline for uspace/lib/c
- Timestamp:
- 2016-05-22T19:19:43Z (9 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- b272c67a
- Parents:
- 153c7a29 (diff), af2254ec (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - Location:
- uspace/lib/c
- Files:
-
- 5 edited
- 2 moved
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/Makefile
r153c7a29 r0dc2fec 46 46 SLIBRARY = libc.so.0.0 47 47 LSONAME = libc.so.0 48 49 LIBS = $(LIBURCU_PREFIX)/liburcu.a50 EXTRA_CFLAGS += -I$(LIBURCU_PREFIX)51 48 52 49 -include $(CONFIG_MAKEFILE) … … 150 147 generic/vfs/vfs.c \ 151 148 generic/vfs/canonify.c \ 149 generic/rcu.c \ 152 150 generic/setjmp.c \ 153 151 generic/stack.c \ -
uspace/lib/c/generic/double_to_str.c
r153c7a29 r0dc2fec 505 505 { 506 506 /* The whole computation assumes 64bit significand. */ 507 assert(sizeof(ieee_val.pos_val.significand) == sizeof(uint64_t));507 static_assert(sizeof(ieee_val.pos_val.significand) == sizeof(uint64_t)); 508 508 509 509 if (ieee_val.is_special) { … … 753 753 { 754 754 /* The whole computation assumes 64bit significand. */ 755 assert(sizeof(ieee_val.pos_val.significand) == sizeof(uint64_t));755 static_assert(sizeof(ieee_val.pos_val.significand) == sizeof(uint64_t)); 756 756 757 757 if (ieee_val.is_special) { -
uspace/lib/c/generic/fibril.c
r153c7a29 r0dc2fec 114 114 fibril->waits_for = NULL; 115 115 116 futex_lock(&fibril_futex); 116 /* 117 * We are called before __tcb_set(), so we need to use 118 * futex_down/up() instead of futex_lock/unlock() that 119 * may attempt to access TLS. 120 */ 121 futex_down(&fibril_futex); 117 122 list_append(&fibril->all_link, &fibril_list); 118 futex_u nlock(&fibril_futex);123 futex_up(&fibril_futex); 119 124 120 125 return fibril; -
uspace/lib/c/generic/ieee_double.c
r153c7a29 r0dc2fec 45 45 const int exponent_bias = 1075; 46 46 47 assert(sizeof(val) == sizeof(uint64_t));47 static_assert(sizeof(val) == sizeof(uint64_t)); 48 48 49 49 union { -
uspace/lib/c/include/assert.h
r153c7a29 r0dc2fec 37 37 #define LIBC_ASSERT_H_ 38 38 39 #define static_assert(expr) _Static_assert(expr, "") 40 39 41 /** Debugging assert macro 40 42 *
Note:
See TracChangeset
for help on using the changeset viewer.