Changeset 0a520db in mainline
- Timestamp:
- 2019-01-10T18:39:16Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- a91b828
- Parents:
- f47c2dc1
- git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2019-01-10 18:38:24)
- git-committer:
- Jiří Zárevúcky <zarevucky.jiri@…> (2019-01-10 18:39:16)
- Location:
- uspace
- Files:
-
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/sbi/src/bigint.c
rf47c2dc1 r0a520db 379 379 printf("Convert bigint to string.\n"); 380 380 #endif 381 static_assert(BIGINT_BASE >= 10 );381 static_assert(BIGINT_BASE >= 10, ""); 382 382 383 383 /* Compute number of characters. */ -
uspace/drv/bus/usb/ehci/hw_struct/transfer_descriptor.h
rf47c2dc1 r0a520db 88 88 #define TD_BUFFER_POINTER_OFFSET_MASK 0xfff 89 89 90 static_assert(sizeof(td_t) % 32 == 0 );90 static_assert(sizeof(td_t) % 32 == 0, ""); 91 91 92 92 static inline bool td_active(const td_t *td) -
uspace/drv/bus/usb/ohci/hw_struct/hcca.h
rf47c2dc1 r0a520db 61 61 } hcca_t; 62 62 63 static_assert(sizeof(hcca_t) == 256 );63 static_assert(sizeof(hcca_t) == 256, ""); 64 64 65 65 /** Allocate properly aligned structure. -
uspace/drv/bus/usb/uhci/uhci_batch.c
rf47c2dc1 r0a520db 96 96 int uhci_transfer_batch_prepare(uhci_transfer_batch_t *uhci_batch) 97 97 { 98 static_assert((sizeof(td_t) % 16) == 0 );98 static_assert((sizeof(td_t) % 16) == 0, ""); 99 99 100 100 usb_transfer_batch_t *usb_batch = &uhci_batch->base; -
uspace/drv/bus/usb/xhci/trb_ring.c
rf47c2dc1 r0a520db 53 53 } __attribute__((aligned(PAGE_SIZE))); 54 54 55 static_assert(sizeof(trb_segment_t) == PAGE_SIZE );55 static_assert(sizeof(trb_segment_t) == PAGE_SIZE, ""); 56 56 57 57 /** -
uspace/lib/c/generic/double_to_str.c
rf47c2dc1 r0a520db 503 503 { 504 504 /* The whole computation assumes 64bit significand. */ 505 static_assert(sizeof(ieee_val.pos_val.significand) == sizeof(uint64_t) );505 static_assert(sizeof(ieee_val.pos_val.significand) == sizeof(uint64_t), ""); 506 506 507 507 if (ieee_val.is_special) { … … 754 754 { 755 755 /* The whole computation assumes 64bit significand. */ 756 static_assert(sizeof(ieee_val.pos_val.significand) == sizeof(uint64_t) );756 static_assert(sizeof(ieee_val.pos_val.significand) == sizeof(uint64_t), ""); 757 757 758 758 if (ieee_val.is_special) { -
uspace/lib/c/generic/ieee_double.c
rf47c2dc1 r0a520db 45 45 const int exponent_bias = 1075; 46 46 47 static_assert(sizeof(val) == sizeof(uint64_t) );47 static_assert(sizeof(val) == sizeof(uint64_t), ""); 48 48 49 49 union { -
uspace/lib/c/generic/time.c
rf47c2dc1 r0a520db 79 79 clock_t clock(void) 80 80 { 81 static_assert(CLOCKS_PER_SEC == 1000000 );81 static_assert(CLOCKS_PER_SEC == 1000000, ""); 82 82 83 83 size_t count; -
uspace/lib/c/include/assert.h
rf47c2dc1 r0a520db 42 42 43 43 #ifndef __cplusplus 44 #define static_assert (expr) _Static_assert(expr, "")44 #define static_assert _Static_assert 45 45 #endif 46 46 -
uspace/lib/usb/include/usb/request.h
rf47c2dc1 r0a520db 117 117 } __attribute__((packed)) usb_device_request_setup_packet_t; 118 118 119 static_assert(sizeof(usb_device_request_setup_packet_t) == USB_SETUP_PACKET_SIZE );119 static_assert(sizeof(usb_device_request_setup_packet_t) == USB_SETUP_PACKET_SIZE, ""); 120 120 121 121 #define GET_DEVICE_DESC(size) \ -
uspace/lib/usbdev/src/request.c
rf47c2dc1 r0a520db 45 45 #define MAX_DATA_LENGTH ((size_t)(0xFFFF)) 46 46 47 static_assert(sizeof(usb_device_request_setup_packet_t) == 8 );47 static_assert(sizeof(usb_device_request_setup_packet_t) == 8, ""); 48 48 49 49 /** Generic wrapper for SET requests using standard control request format. -
uspace/srv/locsrv/locsrv.c
rf47c2dc1 r0a520db 1409 1409 */ 1410 1410 static_assert((INTERFACE_LOC_SUPPLIER & IFACE_EXCHANGE_MASK) == 1411 IFACE_EXCHANGE_SERIALIZE );1411 IFACE_EXCHANGE_SERIALIZE, ""); 1412 1412 1413 1413 loc_server_t *server = loc_server_register(); -
uspace/srv/net/inetsrv/pdu.c
rf47c2dc1 r0a520db 224 224 return EINVAL; 225 225 226 static_assert(sizeof(ip6_header_t) % 8 == 0 );226 static_assert(sizeof(ip6_header_t) % 8 == 0, ""); 227 227 assert(hdr_size % 8 == 0); 228 228 assert(offs % FRAG_OFFS_UNIT == 0);
Note:
See TracChangeset
for help on using the changeset viewer.