Changeset 18b6a88 in mainline for uspace/lib
- Timestamp:
- 2018-04-15T09:35:04Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- c1f44ca
- Parents:
- 8ebe212
- Location:
- uspace/lib
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/bithenge/src/transform.c
r8ebe212 r18b6a88 382 382 * @param node The value to store in the parameter. 383 383 * @return EOK on success or an error code from errno.h. */ 384 errno_t bithenge_scope_set_param( 384 errno_t bithenge_scope_set_param(bithenge_scope_t *scope, int i, 385 385 bithenge_node_t *node) 386 386 { … … 919 919 } 920 920 921 MAKE_UINT_TRANSFORM(uint8 ,uint8_t, uint8_t_identity, prefix_length_1);921 MAKE_UINT_TRANSFORM(uint8, uint8_t, uint8_t_identity, prefix_length_1); 922 922 MAKE_UINT_TRANSFORM(uint16le, uint16_t, uint16_t_le2host, prefix_length_2); 923 923 MAKE_UINT_TRANSFORM(uint16be, uint16_t, uint16_t_be2host, prefix_length_2); … … 1058 1058 1059 1059 static bithenge_named_transform_t primitive_transforms[] = { 1060 { "ascii", &bithenge_ascii_transform},1061 { "bit", &bithenge_bit_transform},1062 { "bits_be", &bithenge_bits_be_transform},1063 { "bits_le", &bithenge_bits_le_transform},1064 { "known_length", &bithenge_known_length_transform},1065 { "nonzero_boolean", &bithenge_nonzero_boolean_transform},1066 { "uint8", &bithenge_uint8_transform},1067 { "uint16be", &bithenge_uint16be_transform},1068 { "uint16le", &bithenge_uint16le_transform},1069 { "uint32be", &bithenge_uint32be_transform},1070 { "uint32le", &bithenge_uint32le_transform},1071 { "uint64be", &bithenge_uint64be_transform},1072 { "uint64le", &bithenge_uint64le_transform},1073 { "uint_be", &bithenge_uint_be_transform},1074 { "uint_le", &bithenge_uint_le_transform},1075 { "zero_terminated", &bithenge_zero_terminated_transform},1076 { NULL, NULL}1060 { "ascii", &bithenge_ascii_transform }, 1061 { "bit", &bithenge_bit_transform }, 1062 { "bits_be", &bithenge_bits_be_transform }, 1063 { "bits_le", &bithenge_bits_le_transform }, 1064 { "known_length", &bithenge_known_length_transform }, 1065 { "nonzero_boolean", &bithenge_nonzero_boolean_transform }, 1066 { "uint8", &bithenge_uint8_transform }, 1067 { "uint16be", &bithenge_uint16be_transform }, 1068 { "uint16le", &bithenge_uint16le_transform }, 1069 { "uint32be", &bithenge_uint32be_transform }, 1070 { "uint32le", &bithenge_uint32le_transform }, 1071 { "uint64be", &bithenge_uint64be_transform }, 1072 { "uint64le", &bithenge_uint64le_transform }, 1073 { "uint_be", &bithenge_uint_be_transform }, 1074 { "uint_le", &bithenge_uint_le_transform }, 1075 { "zero_terminated", &bithenge_zero_terminated_transform }, 1076 { NULL, NULL } 1077 1077 }; 1078 1078 -
uspace/lib/c/arch/mips32/include/libarch/tls.h
r8ebe212 r18b6a88 69 69 tp += MIPS_TP_OFFSET + sizeof(tcb_t); 70 70 71 asm volatile ("add $27, %0, $0" : : "r" (tp)); /* Move tls to K1 */71 asm volatile ("add $27, %0, $0" : : "r" (tp)); /* Move tls to K1 */ 72 72 } 73 73 74 static inline tcb_t * 74 static inline tcb_t *__tcb_get(void) 75 75 { 76 void * 76 void *retval; 77 77 78 asm volatile ("add %0, $27, $0" : "=r"(retval));78 asm volatile ("add %0, $27, $0" : "=r" (retval)); 79 79 80 80 return (tcb_t *)(retval - MIPS_TP_OFFSET - sizeof(tcb_t)); -
uspace/lib/c/arch/sparc64/include/libarch/syscall.h
r8ebe212 r18b6a88 60 60 61 61 asm volatile ( 62 63 64 65 66 62 "ta %7\n" 63 : "=r" (a1) 64 : "r" (a1), "r" (a2), "r" (a3), "r" (a4), "r" (a5), "r" (a6), 65 "i" (id) 66 : "memory" 67 67 ); 68 68 -
uspace/lib/c/generic/adt/odict.c
r8ebe212 r18b6a88 75 75 printf("[%p/%c", cur, cur->color == odc_red ? 'r' : 'b'); 76 76 if (cur->a != NULL || cur->b != NULL) { 77 putchar(' ' 77 putchar(' '); 78 78 odict_print_tree(cur->a); 79 79 putchar(','); … … 254 254 if (cur->a == NULL) { 255 255 odict_link_child_a(odlink, cur); 256 256 break; 257 257 } 258 258 cur = cur->a; … … 923 923 b->b->up = a; 924 924 925 /* Swap links going out of A and out of B */ 926 n = a->up; a->up = b->up; b->up = n; 927 n = a->a; a->a = b->a; b->a = n; 928 n = a->b; a->b = b->b; b->b = n; 929 c = a->color; a->color = b->color; b->color = c; 925 /* 926 * Swap links going out of A and out of B 927 */ 928 n = a->up; 929 a->up = b->up; 930 b->up = n; 931 932 n = a->a; 933 a->a = b->a; 934 b->a = n; 935 936 n = a->b; 937 a->b = b->b; 938 b->b = n; 939 940 c = a->color; 941 a->color = b->color; 942 b->color = c; 930 943 931 944 /* When A and B are adjacent, fix self-loops that might have arisen */ -
uspace/lib/c/generic/fibril_synch.c
r8ebe212 r18b6a88 354 354 355 355 errno_t 356 356 fibril_condvar_wait_timeout(fibril_condvar_t *fcv, fibril_mutex_t *fm, 357 357 suseconds_t timeout) 358 358 { -
uspace/lib/c/include/assert.h
r8ebe212 r18b6a88 64 64 65 65 #ifndef NDEBUG 66 66 #define assert(expr) ((expr) ? (void) 0 : __helenos_assert_abort(#expr, __FILE__, __LINE__)) 67 67 #else 68 68 #define assert(expr) ((void) 0) 69 69 #endif 70 70 … … 74 74 75 75 #ifndef NDEBUG 76 76 #define safe_assert(expr) ((expr) ? (void) 0 : __helenos_assert_quick_abort(#expr, __FILE__, __LINE__)) 77 77 #else 78 78 #define safe_assert(expr) ((void) 0) 79 79 #endif 80 80 -
uspace/lib/ieee80211/include/ieee80211.h
r8ebe212 r18b6a88 178 178 extern void ieee80211_set_specific(ieee80211_dev_t *, void *); 179 179 extern ddf_dev_t *ieee80211_get_ddf_dev(ieee80211_dev_t *); 180 extern ieee80211_operating_mode_t 181 ieee80211_ query_current_op_mode(ieee80211_dev_t *);180 extern ieee80211_operating_mode_t ieee80211_query_current_op_mode( 181 ieee80211_dev_t *); 182 182 extern uint16_t ieee80211_query_current_freq(ieee80211_dev_t *); 183 183 extern void ieee80211_query_bssid(ieee80211_dev_t *, nic_address_t *); -
uspace/lib/ieee80211/include/ieee80211_private.h
r8ebe212 r18b6a88 382 382 383 383 static inline void 384 384 ieee80211_scan_result_list_init(ieee80211_scan_result_list_t *results) 385 385 { 386 386 list_initialize(&results->list); … … 389 389 390 390 static inline void 391 391 ieee80211_scan_result_list_remove(ieee80211_scan_result_list_t *results, 392 392 ieee80211_scan_result_link_t *result) 393 393 { … … 397 397 398 398 static inline void 399 399 ieee80211_scan_result_list_append(ieee80211_scan_result_list_t *results, 400 400 ieee80211_scan_result_link_t *result) 401 401 { -
uspace/lib/ieee80211/src/ieee80211.c
r8ebe212 r18b6a88 217 217 */ 218 218 static inline bool 219 219 ieee80211_is_eapol_key_frame(ieee80211_eapol_key_frame_t *key_frame) 220 220 { 221 221 return (key_frame->packet_type == IEEE80211_EAPOL_KEY); … … 281 281 */ 282 282 ieee80211_operating_mode_t 283 283 ieee80211_query_current_op_mode(ieee80211_dev_t *ieee80211_dev) 284 284 { 285 285 fibril_mutex_lock(&ieee80211_dev->gen_mutex); -
uspace/lib/softrend/filter.c
r8ebe212 r18b6a88 106 106 float weights[4]; 107 107 weights[0] = (1 - x_delta) * (1 - y_delta); 108 weights[1] = ( x_delta)* (1 - y_delta);109 weights[2] = (1 - x_delta) * ( y_delta);110 weights[3] = ( x_delta) * ( y_delta);108 weights[1] = x_delta * (1 - y_delta); 109 weights[2] = (1 - x_delta) * y_delta; 110 weights[3] = x_delta * y_delta; 111 111 112 112 return blend_pixels(4, weights, pixels);
Note:
See TracChangeset
for help on using the changeset viewer.