Changeset 34120f10 in mainline for common/include
- Timestamp:
- 2023-10-27T19:38:31Z (2 years ago)
- Branches:
- master, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 63ed840
- Parents:
- c89ae25 (diff), 694ca3d6 (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:
- common/include
- Files:
-
- 19 moved
-
adt/bitmap.h (moved) (moved from kernel/generic/include/adt/bitmap.h )
-
adt/checksum.h (moved) (moved from uspace/lib/c/include/adt/checksum.h )
-
adt/circ_buf.h (moved) (moved from uspace/lib/c/include/adt/circ_buf.h )
-
adt/fifo.h (moved) (moved from uspace/lib/c/include/adt/fifo.h )
-
adt/gcdlcm.h (moved) (moved from uspace/lib/c/include/adt/gcdlcm.h )
-
adt/hash.h (moved) (moved from uspace/lib/c/include/adt/hash.h ) (2 diffs)
-
adt/hash_table.h (moved) (moved from uspace/lib/c/include/adt/hash_table.h )
-
adt/list.h (moved) (moved from uspace/lib/c/include/adt/list.h )
-
adt/odict.h (moved) (moved from kernel/generic/include/adt/odict.h )
-
adt/prodcons.h (moved) (moved from uspace/lib/c/include/adt/prodcons.h )
-
bsearch.h (moved) (moved from uspace/lib/c/include/bsearch.h )
-
ctype.h (moved) (moved from uspace/lib/c/include/ctype.h )
-
gsort.h (moved) (moved from uspace/lib/c/include/gsort.h )
-
mem.h (moved) (moved from uspace/lib/c/include/mem.h ) (1 diff)
-
printf_core.h (moved) (moved from uspace/lib/c/include/io/printf_core.h )
-
qsort.h (moved) (moved from uspace/lib/c/include/qsort.h )
-
stdlib.h (moved) (moved from uspace/lib/c/include/stdlib.h ) (2 diffs)
-
str.h (moved) (moved from uspace/lib/c/include/str.h ) (2 diffs)
-
str_error.h (moved) (moved from uspace/lib/c/include/str_error.h )
Legend:
- Unmodified
- Added
- Removed
-
common/include/adt/hash.h
rc89ae25 r34120f10 35 35 #define _LIBC_ADT_HASH_H_ 36 36 37 #include <stddef.h> 37 38 #include <stdint.h> 38 #include <types/common.h>39 39 40 40 /** Produces a uniform hash affecting all output bits from the skewed input. */ … … 78 78 static inline size_t hash_mix(size_t hash) 79 79 { 80 #ifdef __32_BITS__ 81 return hash_mix32(hash); 82 #elif defined(__64_BITS__) 83 return hash_mix64(hash); 84 #else 85 #error Unknown size_t size - cannot select proper hash mix function. 86 #endif 80 if (sizeof(long) == 4) 81 return hash_mix32(hash); 82 else 83 return hash_mix64(hash); 87 84 } 88 85 -
common/include/mem.h
rc89ae25 r34120f10 55 55 __C_DECLS_END; 56 56 57 #if !__STDC_HOSTED__ 58 #define memset(dst, val, cnt) __builtin_memset((dst), (val), (cnt)) 59 #define memcpy(dst, src, cnt) __builtin_memcpy((dst), (src), (cnt)) 60 #define memcmp(s1, s2, cnt) __builtin_memcmp((s1), (s2), (cnt)) 61 #define memmove(dst, src, cnt) __builtin_memmove((dst), (src), (cnt)) 62 #define memchr(s, c, cnt) __builtin_memchr((s), (c), (cnt)) 63 #endif 64 57 65 #endif 58 66 -
common/include/stdlib.h
rc89ae25 r34120f10 41 41 #include <_bits/decls.h> 42 42 #include <bsearch.h> 43 #include <malloc.h>44 43 #include <qsort.h> 45 44 … … 109 108 extern lldiv_t lldiv(long long, long long); 110 109 110 extern void *malloc(size_t size) 111 __attribute__((malloc)); 112 extern void *calloc(size_t nmemb, size_t size) 113 __attribute__((malloc)); 114 extern void *realloc(void *addr, size_t size) 115 __attribute__((warn_unused_result)); 116 extern void free(void *addr); 117 118 #ifdef _HELENOS_SOURCE 119 __HELENOS_DECLS_BEGIN; 120 121 extern void *memalign(size_t align, size_t size) 122 __attribute__((malloc)); 123 124 __HELENOS_DECLS_END; 125 #endif 126 111 127 __C_DECLS_END; 112 128 -
common/include/str.h
rc89ae25 r34120f10 45 45 #include <mem.h> 46 46 #include <_bits/decls.h> 47 #include <_bits/uchar.h> 47 48 48 49 #ifndef __cplusplus … … 50 51 /* Common Unicode characters */ 51 52 #define U_SPECIAL '?' 53 54 #define U_LEFT_ARROW 0x2190 55 #define U_UP_ARROW 0x2191 56 #define U_RIGHT_ARROW 0x2192 57 #define U_DOWN_ARROW 0x2193 58 59 #define U_PAGE_UP 0x21de 60 #define U_PAGE_DOWN 0x21df 61 62 #define U_HOME_ARROW 0x21f1 63 #define U_END_ARROW 0x21f2 64 65 #define U_NULL 0x2400 66 #define U_ESCAPE 0x241b 67 #define U_DELETE 0x2421 68 69 #define U_CURSOR 0x2588 52 70 53 71 /** No size limit constant */
Note:
See TracChangeset
for help on using the changeset viewer.
