Changeset 1cf26ab in mainline for uspace/lib
- Timestamp:
- 2016-05-14T06:44:37Z (10 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 362654a
- Parents:
- 1023758
- Location:
- uspace/lib
- Files:
-
- 7 edited
-
c/generic/double_to_str.c (modified) (2 diffs)
-
c/generic/ieee_double.c (modified) (1 diff)
-
c/include/assert.h (modified) (1 diff)
-
posix/source/fnmatch.c (modified) (1 diff)
-
usbdev/include/usb/dev/request.h (modified) (1 diff)
-
usbdev/src/pipesinit.c (modified) (1 diff)
-
usbdev/src/request.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/double_to_str.c
r1023758 r1cf26ab 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/ieee_double.c
r1023758 r1cf26ab 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
r1023758 r1cf26ab 37 37 #define LIBC_ASSERT_H_ 38 38 39 #define static_assert(expr) _Static_assert(expr, "") 40 39 41 /** Debugging assert macro 40 42 * -
uspace/lib/posix/source/fnmatch.c
r1023758 r1cf26ab 640 640 #define nomatch(s1, s2, flags) assert(posix_fnmatch(s1, s2, flags) == FNM_NOMATCH) 641 641 642 assert(FNM_PATHNAME == FNM_FILE_NAME);642 static_assert(FNM_PATHNAME == FNM_FILE_NAME); 643 643 match("", "", 0); 644 644 match("*", "hello", 0); -
uspace/lib/usbdev/include/usb/dev/request.h
r1023758 r1cf26ab 109 109 } __attribute__ ((packed)) usb_device_request_setup_packet_t; 110 110 111 int assert[(sizeof(usb_device_request_setup_packet_t) == 8) ? 1: -1];112 113 111 int usb_control_request_set(usb_pipe_t *, 114 112 usb_request_type_t, usb_request_recipient_t, uint8_t, -
uspace/lib/usbdev/src/pipesinit.c
r1023758 r1cf26ab 340 340 { 341 341 assert(pipe); 342 assert(DEV_DESCR_MAX_PACKET_SIZE_OFFSET < CTRL_PIPE_MIN_PACKET_SIZE);342 static_assert(DEV_DESCR_MAX_PACKET_SIZE_OFFSET < CTRL_PIPE_MIN_PACKET_SIZE); 343 343 344 344 if ((pipe->direction != USB_DIRECTION_BOTH) || -
uspace/lib/usbdev/src/request.c
r1023758 r1cf26ab 39 39 40 40 #define MAX_DATA_LENGTH ((size_t)(0xFFFF)) 41 42 static_assert(sizeof(usb_device_request_setup_packet_t) == 8); 41 43 42 44 /** Generic wrapper for SET requests using standard control request format.
Note:
See TracChangeset
for help on using the changeset viewer.
