Changeset 002fd5f in mainline
- Timestamp:
- 2017-10-24T04:54:05Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- b639d56
- Parents:
- 9ddcb0b
- Files:
-
- 40 deleted
- 39 edited
Legend:
- Unmodified
- Added
- Removed
-
boot/arch/arm32/include/types.h
r9ddcb0b r002fd5f 37 37 #define BOOT_arm32_TYPES_H 38 38 39 #include < arch/common.h>39 #include <_bits/all.h> 40 40 41 41 #define TASKMAP_MAX_RECORDS 32 42 42 #define BOOTINFO_TASK_NAME_BUFLEN 32 43 44 typedef uint32_t size_t;45 typedef uint32_t uintptr_t;46 47 typedef uint32_t pfn_t;48 49 typedef int32_t ptrdiff_t;50 43 51 44 typedef struct { -
boot/arch/ia64/include/types.h
r9ddcb0b r002fd5f 30 30 #define BOOT_ia64_TYPES_H_ 31 31 32 #include < arch/common.h>32 #include <_bits/all.h> 33 33 34 34 #define TASKMAP_MAX_RECORDS 32 35 35 #define BOOTINFO_TASK_NAME_BUFLEN 32 36 36 #define MEMMAP_ITEMS 128 37 38 typedef uint64_t size_t;39 typedef uint64_t sysarg_t;40 typedef uint64_t uintptr_t;41 42 typedef int64_t ptrdiff_t;43 37 44 38 typedef struct { -
boot/arch/mips32/include/types.h
r9ddcb0b r002fd5f 30 30 #define BOOT_mips32_TYPES_H_ 31 31 32 #include < arch/common.h>32 #include <_bits/all.h> 33 33 34 34 #define TASKMAP_MAX_RECORDS 32 35 35 #define CPUMAP_MAX_RECORDS 32 36 36 #define BOOTINFO_TASK_NAME_BUFLEN 32 37 38 typedef uint32_t size_t;39 typedef uint32_t uintptr_t;40 41 typedef int32_t ptrdiff_t;42 37 43 38 typedef struct { -
boot/arch/ppc32/include/types.h
r9ddcb0b r002fd5f 30 30 #define BOOT_ppc32_TYPES_H_ 31 31 32 #include < arch/common.h>32 #include <_bits/all.h> 33 33 34 34 #define TASKMAP_MAX_RECORDS 32 35 35 #define BOOTINFO_TASK_NAME_BUFLEN 32 36 37 typedef uint32_t size_t;38 typedef uint32_t uintptr_t;39 typedef uint32_t sysarg_t;40 typedef int32_t native_t;41 42 typedef int32_t ptrdiff_t;43 36 44 37 typedef struct { -
boot/arch/riscv64/include/types.h
r9ddcb0b r002fd5f 30 30 #define BOOT_riscv64_TYPES_H_ 31 31 32 #include < arch/common.h>32 #include <_bits/all.h> 33 33 34 34 #define MEMMAP_MAX_RECORDS 32 35 35 #define TASKMAP_MAX_RECORDS 32 36 36 #define BOOTINFO_TASK_NAME_BUFLEN 32 37 38 typedef uint64_t size_t;39 typedef uint64_t uintptr_t;40 41 typedef int64_t ptrdiff_t;42 37 43 38 typedef struct { -
boot/arch/sparc64/include/types.h
r9ddcb0b r002fd5f 30 30 #define BOOT_sparc64_TYPES_H_ 31 31 32 #include < arch/common.h>32 #include <_bits/all.h> 33 33 34 34 #define TASKMAP_MAX_RECORDS 32 35 35 #define BOOTINFO_TASK_NAME_BUFLEN 32 36 37 typedef uint64_t size_t;38 typedef uint64_t uintptr_t;39 typedef uint64_t sysarg_t;40 typedef int64_t native_t;41 42 typedef int64_t ptrdiff_t;43 36 44 37 typedef struct { -
boot/generic/include/stddef.h
r9ddcb0b r002fd5f 33 33 #define BOOT_STDDEF_H_ 34 34 35 #include <arch/common.h>36 35 #include <arch/types.h> 37 36 -
boot/generic/include/stdint.h
r9ddcb0b r002fd5f 33 33 #define BOOT_STDINT_H_ 34 34 35 #include <arch/common.h>36 35 #include <arch/types.h> 37 38 #define INT8_MIN INT8_C(0x80)39 #define INT8_MAX INT8_C(0x7F)40 41 #define UINT8_MIN UINT8_C(0)42 #define UINT8_MAX UINT8_C(0xFF)43 44 #define INT16_MIN INT16_C(0x8000)45 #define INT16_MAX INT16_C(0x7FFF)46 47 #define UINT16_MIN UINT16_C(0)48 #define UINT16_MAX UINT16_C(0xFFFF)49 50 #define INT32_MIN INT32_C(0x80000000)51 #define INT32_MAX INT32_C(0x7FFFFFFF)52 53 #define UINT32_MIN UINT32_C(0)54 #define UINT32_MAX UINT32_C(0xFFFFFFFF)55 56 #define INT64_MIN INT64_C(0x8000000000000000)57 #define INT64_MAX INT64_C(0x7FFFFFFFFFFFFFFF)58 59 #define UINT64_MIN UINT64_C(0)60 #define UINT64_MAX UINT64_C(0xFFFFFFFFFFFFFFFF)61 36 62 37 #endif -
boot/generic/src/str.c
r9ddcb0b r002fd5f 104 104 105 105 /** Check the condition if wchar_t is signed */ 106 #ifdef WCHAR_IS_UNSIGNED106 #ifdef __WCHAR_UNSIGNED__ 107 107 #define WCHAR_SIGNED_CHECK(cond) (true) 108 108 #else -
kernel/arch/abs32le/include/arch/types.h
r9ddcb0b r002fd5f 36 36 #define KERN_abs32le_TYPES_H_ 37 37 38 #include <arch/common.h> 39 40 #define ATOMIC_COUNT_MIN UINT32_MIN 41 #define ATOMIC_COUNT_MAX UINT32_MAX 42 43 typedef uint32_t size_t; 44 typedef int32_t ssize_t; 45 46 typedef uint32_t uintptr_t; 47 typedef uint32_t pfn_t; 48 49 typedef uint32_t ipl_t; 50 51 typedef uint32_t sysarg_t; 52 typedef int32_t native_t; 53 typedef uint32_t atomic_count_t; 38 #include <_bits/all.h> 54 39 55 40 typedef struct { 56 41 } fncptr_t; 57 58 #define PRIdn PRId32 /**< Format for native_t. */59 #define PRIun PRIu32 /**< Format for sysarg_t. */60 #define PRIxn PRIx32 /**< Format for hexadecimal sysarg_t. */61 #define PRIua PRIu32 /**< Format for atomic_count_t. */62 42 63 43 #endif -
kernel/arch/amd64/include/arch/types.h
r9ddcb0b r002fd5f 36 36 #define KERN_amd64_TYPES_H_ 37 37 38 #include <arch/common.h> 39 40 typedef uint64_t size_t; 41 typedef int64_t ssize_t; 42 43 typedef uint64_t uintptr_t; 44 typedef uint64_t pfn_t; 45 46 typedef uint64_t ipl_t; 47 48 typedef uint64_t sysarg_t; 49 typedef int64_t native_t; 50 typedef uint64_t atomic_count_t; 38 #include <_bits/all.h> 51 39 52 40 typedef struct { 53 41 } fncptr_t; 54 55 #define PRIdn PRId64 /**< Format for native_t. */56 #define PRIun PRIu64 /**< Format for sysarg_t. */57 #define PRIxn PRIx64 /**< Format for hexadecimal sysarg_t. */58 #define PRIua PRIu64 /**< Format for atomic_count_t. */59 42 60 43 #endif -
kernel/arch/arm32/include/arch/types.h
r9ddcb0b r002fd5f 37 37 #define KERN_arm32_TYPES_H_ 38 38 39 #include <arch/common.h>40 41 39 #ifndef DOXYGEN 42 40 #define ATTRIBUTE_PACKED __attribute__((packed)) … … 45 43 #endif 46 44 47 typedef uint32_t size_t; 48 typedef int32_t ssize_t; 49 50 typedef uint32_t uintptr_t; 51 typedef uint32_t pfn_t; 52 53 typedef uint32_t ipl_t; 54 55 typedef uint32_t sysarg_t; 56 typedef int32_t native_t; 57 typedef uint32_t atomic_count_t; 45 #include <_bits/all.h> 58 46 59 47 typedef struct { 60 48 } fncptr_t; 61 62 #define PRIdn PRId32 /**< Format for native_t. */63 #define PRIun PRIu32 /**< Format for sysarg_t. */64 #define PRIxn PRIx32 /**< Format for hexadecimal sysarg_t. */65 #define PRIua PRIu32 /**< Format for atomic_count_t. */66 49 67 50 #endif -
kernel/arch/ia32/include/arch/types.h
r9ddcb0b r002fd5f 36 36 #define KERN_ia32_TYPES_H_ 37 37 38 #include <arch/common.h> 39 40 typedef uint32_t size_t; 41 typedef int32_t ssize_t; 42 43 typedef uint32_t uintptr_t; 44 typedef uint32_t pfn_t; 45 46 typedef uint32_t ipl_t; 47 48 typedef uint32_t sysarg_t; 49 typedef int32_t native_t; 50 typedef uint32_t atomic_count_t; 38 #include <_bits/all.h> 51 39 52 40 typedef struct { 53 41 } fncptr_t; 54 55 #define PRIdn PRId32 /**< Format for native_t. */56 #define PRIun PRIu32 /**< Format for sysarg_t. */57 #define PRIxn PRIx32 /**< Format for hexadecimal sysarg_t. */58 #define PRIua PRIu32 /**< Format for atomic_count_t. */59 42 60 43 #endif -
kernel/arch/ia64/include/arch/types.h
r9ddcb0b r002fd5f 36 36 #define KERN_ia64_TYPES_H_ 37 37 38 #include <arch/common.h> 39 40 typedef uint64_t size_t; 41 typedef int64_t ssize_t; 42 43 typedef uint64_t uintptr_t; 44 typedef uint64_t pfn_t; 45 46 typedef uint64_t ipl_t; 47 48 typedef uint64_t sysarg_t; 49 typedef int64_t native_t; 50 typedef uint64_t atomic_count_t; 38 #include <_bits/all.h> 51 39 52 40 typedef struct { … … 55 43 } __attribute__((may_alias)) fncptr_t; 56 44 57 #define PRIdn PRId64 /**< Format for native_t. */58 #define PRIun PRIu64 /**< Format for sysarg_t. */59 #define PRIxn PRIx64 /**< Format for hexadecimal sysarg_t. */60 #define PRIua PRIu64 /**< Format for atomic_count_t. */61 62 45 #endif 63 46 -
kernel/arch/ia64/src/interrupt.c
r9ddcb0b r002fd5f 142 142 istate->cr_isr.value, istate->cr_ipsr.value); 143 143 144 printf("cr.iip=%#0" PRIx 64", #%u\t(%s)\n",144 printf("cr.iip=%#0" PRIxPTR ", #%u\t(%s)\n", 145 145 istate->cr_iip, istate->cr_isr.ei, 146 146 symtab_fmt_name_lookup(istate->cr_iip)); 147 printf("cr.iipa=%#0" PRIx 64"\t(%s)\n", istate->cr_iipa,147 printf("cr.iipa=%#0" PRIxPTR "\t(%s)\n", istate->cr_iipa, 148 148 symtab_fmt_name_lookup(istate->cr_iipa)); 149 printf("cr.ifa=%#0" PRIx 64"\t(%s)\n", istate->cr_ifa,149 printf("cr.ifa=%#0" PRIxPTR "\t(%s)\n", istate->cr_ifa, 150 150 symtab_fmt_name_lookup(istate->cr_ifa)); 151 151 } -
kernel/arch/mips32/include/arch/types.h
r9ddcb0b r002fd5f 36 36 #define KERN_mips32_TYPES_H_ 37 37 38 #include <arch/common.h> 39 40 typedef uint32_t size_t; 41 typedef int32_t ssize_t; 42 43 typedef uint32_t uintptr_t; 44 typedef uint32_t pfn_t; 45 46 typedef uint32_t ipl_t; 47 48 typedef uint32_t sysarg_t; 49 typedef int32_t native_t; 50 typedef uint32_t atomic_count_t; 38 #include <_bits/all.h> 51 39 52 40 typedef struct { 53 41 } fncptr_t; 54 55 #define PRIdn PRId32 /**< Format for native_t. */56 #define PRIun PRIu32 /**< Format for sysarg_t. */57 #define PRIxn PRIx32 /**< Format for hexadecimal sysarg_t. */58 #define PRIua PRIu32 /**< Format for atomic_count_t. */59 42 60 43 #endif -
kernel/arch/ppc32/include/arch/types.h
r9ddcb0b r002fd5f 36 36 #define KERN_ppc32_TYPES_H_ 37 37 38 #include <arch/common.h> 39 40 typedef uint32_t size_t; 41 typedef int32_t ssize_t; 42 43 typedef uint32_t uintptr_t; 44 typedef uint32_t pfn_t; 45 46 typedef uint32_t ipl_t; 47 48 typedef uint32_t sysarg_t; 49 typedef int32_t native_t; 50 typedef uint32_t atomic_count_t; 38 #include <_bits/all.h> 51 39 52 40 typedef struct { 53 41 } fncptr_t; 54 55 #define PRIdn PRId32 /**< Format for native_t. */56 #define PRIun PRIu32 /**< Format for sysarg_t. */57 #define PRIxn PRIx32 /**< Format for hexadecimal sysarg_t. */58 #define PRIua PRIu32 /**< Format for atomic_count_t. */59 42 60 43 #endif -
kernel/arch/riscv64/include/arch/types.h
r9ddcb0b r002fd5f 36 36 #define KERN_riscv64_TYPES_H_ 37 37 38 #include <arch/common.h> 39 40 typedef uint64_t size_t; 41 typedef int64_t ssize_t; 42 43 typedef uint64_t uintptr_t; 44 typedef uint64_t pfn_t; 45 46 typedef uint64_t ipl_t; 47 48 typedef uint64_t sysarg_t; 49 typedef int64_t native_t; 50 typedef uint64_t atomic_count_t; 38 #include <_bits/all.h> 51 39 52 40 typedef struct { 53 41 } fncptr_t; 54 55 #define PRIdn PRId64 /**< Format for native_t. */56 #define PRIun PRIu64 /**< Format for sysarg_t. */57 #define PRIxn PRIx64 /**< Format for hexadecimal sysarg_t. */58 #define PRIua PRIu64 /**< Format for atomic_count_t. */59 42 60 43 #endif -
kernel/arch/sparc64/include/arch/asm.h
r9ddcb0b r002fd5f 350 350 351 351 pstate.value = pstate_read(); 352 pstate.ie = ((pstate_reg_t) ipl).ie;352 pstate.ie = ((pstate_reg_t)(uint64_t) ipl).ie; 353 353 pstate_write(pstate.value); 354 354 } -
kernel/arch/sparc64/include/arch/barrier.h
r9ddcb0b r002fd5f 37 37 38 38 #include <trace.h> 39 40 #ifdef KERNEL41 #include <arch/common.h>42 #else43 #include <libarch/common.h>44 #endif45 39 46 40 /* … … 88 82 NO_TRACE static inline void flush_pipeline(void) 89 83 { 90 u int64_tpc;84 unsigned long pc; 91 85 92 86 /* -
kernel/arch/sparc64/include/arch/mm/sun4v/tsb.h
r9ddcb0b r002fd5f 72 72 struct pte; 73 73 74 extern void tsb_invalidate(struct as *as, uintptr_t page, uint64_t pages);74 extern void tsb_invalidate(struct as *as, uintptr_t page, size_t pages); 75 75 extern void itsb_pte_copy(struct pte *t); 76 76 extern void dtsb_pte_copy(struct pte *t, bool ro); -
kernel/arch/sparc64/include/arch/types.h
r9ddcb0b r002fd5f 36 36 #define KERN_sparc64_TYPES_H_ 37 37 38 #include <arch/common.h> 39 40 typedef uint64_t size_t; 41 typedef int64_t ssize_t; 42 43 typedef uint64_t uintptr_t; 44 typedef uint64_t pfn_t; 45 46 typedef uint64_t ipl_t; 47 48 typedef uint64_t sysarg_t; 49 typedef int64_t native_t; 50 typedef uint64_t atomic_count_t; 38 #include <_bits/all.h> 51 39 52 40 typedef struct { … … 55 43 typedef uint8_t asi_t; 56 44 57 #define PRIdn PRId64 /**< Format for native_t. */58 #define PRIun PRIu64 /**< Format for sysarg_t. */59 #define PRIxn PRIx64 /**< Format for hexadecimal sysarg_t. */60 #define PRIua PRIu64 /**< Format for atomic_count_t. */61 62 45 #endif 63 46 -
kernel/generic/include/stddef.h
r9ddcb0b r002fd5f 38 38 #include <arch/types.h> 39 39 40 typedef native_t ptrdiff_t;41 42 40 #ifndef NULL 43 41 #define NULL ((void *) 0) -
kernel/generic/include/stdint.h
r9ddcb0b r002fd5f 36 36 #define KERN_STDINT_H_ 37 37 38 #include <arch/common.h> 39 40 #define INT8_MIN INT8_C(0x80) 41 #define INT8_MAX INT8_C(0x7F) 42 43 #define UINT8_MIN UINT8_C(0) 44 #define UINT8_MAX UINT8_C(0xFF) 45 46 #define INT16_MIN INT16_C(0x8000) 47 #define INT16_MAX INT16_C(0x7FFF) 48 49 #define UINT16_MIN UINT16_C(0) 50 #define UINT16_MAX UINT16_C(0xFFFF) 51 52 #define INT32_MIN INT32_C(0x80000000) 53 #define INT32_MAX INT32_C(0x7FFFFFFF) 54 55 #define UINT32_MIN UINT32_C(0) 56 #define UINT32_MAX UINT32_C(0xFFFFFFFF) 57 58 #define INT64_MIN INT64_C(0x8000000000000000) 59 #define INT64_MAX INT64_C(0x7FFFFFFFFFFFFFFF) 60 61 #define UINT64_MIN UINT64_C(0) 62 #define UINT64_MAX UINT64_C(0xFFFFFFFFFFFFFFFF) 38 #include <_bits/stdint.h> 63 39 64 40 #endif -
kernel/generic/include/typedefs.h
r9ddcb0b r002fd5f 36 36 #define KERN_TYPEDEFS_H_ 37 37 38 #include <stdint.h>39 #include <arch/common.h>40 38 #include <arch/types.h> 41 39 -
kernel/generic/src/lib/str.c
r9ddcb0b r002fd5f 114 114 115 115 /** Check the condition if wchar_t is signed */ 116 #ifdef WCHAR_IS_UNSIGNED116 #ifdef __WCHAR_UNSIGNED__ 117 117 #define WCHAR_SIGNED_CHECK(cond) (true) 118 118 #else -
uspace/lib/c/arch/ia64/include/libarch/faddr.h
r9ddcb0b r002fd5f 38 38 #include <types/common.h> 39 39 40 typedef struct { 41 uintptr_t fnc; 42 uintptr_t gp; 43 } __attribute__((may_alias)) fncptr_t; 44 40 45 /** 41 46 * -
uspace/lib/c/generic/str.c
r9ddcb0b r002fd5f 48 48 49 49 /** Check the condition if wchar_t is signed */ 50 #ifdef WCHAR_IS_UNSIGNED50 #ifdef __WCHAR_UNSIGNED__ 51 51 #define WCHAR_SIGNED_CHECK(cond) (true) 52 52 #else -
uspace/lib/c/include/inttypes.h
r9ddcb0b r002fd5f 36 36 #define LIBC_INTTYPES_H_ 37 37 38 #include <libarch/inttypes.h> 38 // TODO: Remove 39 #include <_bits/all.h> 40 41 #include <_bits/inttypes.h> 39 42 40 43 #endif -
uspace/lib/c/include/limits.h
r9ddcb0b r002fd5f 36 36 #define LIBC_LIMITS_H_ 37 37 38 /* XXX Make this more accurate */ 39 #include <stdint.h> 40 #include <libarch/stdint.h> 38 #include <_bits/limits.h> 41 39 42 40 #endif -
uspace/lib/c/include/stddef.h
r9ddcb0b r002fd5f 36 36 #define LIBC_STDDEF_H_ 37 37 38 #include <libarch/stddef.h> 38 // TODO: Remove 39 #include <_bits/all.h> 40 41 #include <_bits/size_t.h> 42 #include <_bits/ptrdiff_t.h> 43 #include <_bits/wchar_t.h> 39 44 40 45 #ifndef NULL -
uspace/lib/c/include/stdint.h
r9ddcb0b r002fd5f 36 36 #define LIBC_STDINT_H_ 37 37 38 #define INT8_MIN INT8_C(0x80) 39 # define INT8_MAX INT8_C(0x7F)38 // TODO: Remove 39 #include <_bits/all.h> 40 40 41 #define UINT8_MIN UINT8_C(0) 42 #define UINT8_MAX UINT8_C(0xFF) 43 44 #define INT16_MIN INT16_C(0x8000) 45 #define INT16_MAX INT16_C(0x7FFF) 46 47 #define UINT16_MIN UINT16_C(0) 48 #define UINT16_MAX UINT16_C(0xFFFF) 49 50 #define INT32_MIN INT32_C(0x80000000) 51 #define INT32_MAX INT32_C(0x7FFFFFFF) 52 53 #define UINT32_MIN UINT32_C(0) 54 #define UINT32_MAX UINT32_C(0xFFFFFFFF) 55 56 #define INT64_MIN INT64_C(0x8000000000000000) 57 #define INT64_MAX INT64_C(0x7FFFFFFFFFFFFFFF) 58 59 #define UINT64_MIN UINT64_C(0) 60 #define UINT64_MAX UINT64_C(0xFFFFFFFFFFFFFFFF) 61 62 #include <libarch/stdint.h> 41 #include <_bits/stdint.h> 63 42 64 43 #endif -
uspace/lib/c/include/types/common.h
r9ddcb0b r002fd5f 36 36 #define LIBC_TYPES_COMMON_H_ 37 37 38 #include <libarch/types.h> 38 #if __SIZEOF_POINTER__ == 4 39 #define __32_BITS__ 40 #elif __SIZEOF_POINTER__ == 8 41 #define __64_BITS__ 42 #else 43 #error __SIZEOF_POINTER__ is not defined. 44 #endif 45 46 #include <_bits/all.h> 39 47 40 48 #endif -
uspace/lib/drv/generic/logbuf.c
r9ddcb0b r002fd5f 31 31 */ 32 32 33 #include <libarch/common.h>34 33 #include <stdio.h> 35 34 #include <stddef.h> -
uspace/lib/drv/include/ddf/interrupt.h
r9ddcb0b r002fd5f 36 36 #define DDF_INTERRUPT_H_ 37 37 38 #include <libarch/common.h>39 38 #include <types/common.h> 40 39 #include <abi/ddi/irq.h> -
uspace/lib/math/include/mathtypes.h
r9ddcb0b r002fd5f 191 191 #endif 192 192 193 194 #if defined(FLOAT_SIZE_32) 195 196 #ifndef float32_t 197 #define float32_t float 198 #endif 199 200 #elif defined(FLOAT_SIZE_64) 201 202 #ifndef float64_t 203 #define float64_t float 204 #endif 205 206 #elif defined(FLOAT_SIZE_96) 207 208 #ifndef float96_t 209 #define float96_t float 210 #endif 211 212 #elif defined(FLOAT_SIZE_128) 213 214 #ifndef float128_t 215 #define float128_t float 216 #endif 217 218 #endif 219 220 221 #if defined(DOUBLE_SIZE_32) 222 223 #ifndef float32_t 224 #define float32_t double 225 #endif 226 227 #elif defined(DOUBLE_SIZE_64) 228 229 #ifndef float64_t 230 #define float64_t double 231 #endif 232 233 #elif defined(DOUBLE_SIZE_96) 234 235 #ifndef float96_t 236 #define float96_t double 237 #endif 238 239 #elif defined(DOUBLE_SIZE_128) 240 241 #ifndef float128_t 242 #define float128_t double 243 #endif 244 245 #endif 246 247 248 #if defined(LONG_DOUBLE_SIZE_32) 249 250 #ifndef float32_t 251 #define float32_t long double 252 #endif 253 254 #elif defined(LONG_DOUBLE_SIZE_64) 255 256 #ifndef float64_t 257 #define float64_t long double 258 #endif 259 260 #elif defined(LONG_DOUBLE_SIZE_96) 261 262 #ifndef float96_t 263 #define float96_t long double 264 #endif 265 266 #elif defined(LONG_DOUBLE_SIZE_128) 267 268 #ifndef float128_t 269 #define float128_t long double 270 #endif 271 272 #endif 273 193 #if __SIZEOF_FLOAT__ == 4 194 #define float32_t float 195 #elif __SIZEOF_DOUBLE__ == 4 196 #define float32_t double 197 #elif __SIZEOF_LONG_DOUBLE__ == 4 198 #define float32_t long double 199 #endif 200 201 #if __SIZEOF_FLOAT__ == 8 202 #define float64_t float 203 #elif __SIZEOF_DOUBLE__ == 8 204 #define float64_t double 205 #elif __SIZEOF_LONG_DOUBLE__ == 8 206 #define float64_t long double 207 #endif 208 209 #if __SIZEOF_FLOAT__ == 12 210 #define float96_t float 211 #elif __SIZEOF_DOUBLE__ == 12 212 #define float96_t double 213 #elif __SIZEOF_LONG_DOUBLE__ == 12 214 #define float96_t long double 215 #endif 216 217 #if __SIZEOF_FLOAT__ == 16 218 #define float128_t float 219 #elif __SIZEOF_DOUBLE__ == 16 220 #define float128_t double 221 #elif __SIZEOF_LONG_DOUBLE__ == 16 222 #define float128_t long double 223 #endif 274 224 275 225 #ifdef float32_t -
uspace/lib/nic/src/nic_addr_db.c
r9ddcb0b r002fd5f 36 36 */ 37 37 #include "nic_addr_db.h" 38 #include "libarch/common.h"39 38 #include <assert.h> 40 39 #include <stdlib.h> -
uspace/lib/posix/include/posix/limits.h
r9ddcb0b r002fd5f 42 42 #define PATH_MAX 256 43 43 44 /* it's probably a safe assumption */45 #undef CHAR_BIT46 #define CHAR_BIT 847 48 44 #endif /* POSIX_LIMITS_H_ */ 49 45 -
uspace/lib/posix/include/posix/stdint.h
r9ddcb0b r002fd5f 42 42 #include "libc/stdint.h" 43 43 44 #undef INT8_MAX45 #undef INT8_MIN46 #define INT8_MAX 12747 #define INT8_MIN (-128)48 49 #undef UINT8_MAX50 #undef UINT8_MIN51 #define UINT8_MAX 25552 #define UINT8_MIN 053 54 #undef INT16_MAX55 #undef INT16_MIN56 #define INT16_MAX 3276757 #define INT16_MIN (-32768)58 59 #undef UINT16_MAX60 #undef UINT16_MIN61 #define UINT16_MAX 6553562 #define UINT16_MIN 063 64 #undef INT32_MAX65 #undef INT32_MIN66 #define INT32_MAX 214748364767 #define INT32_MIN (-INT32_MAX - 1)68 69 #undef UINT32_MAX70 #undef UINT32_MIN71 #define UINT32_MAX 4294967295U72 #define UINT32_MIN 0U73 74 #undef INT64_MAX75 #undef INT64_MIN76 #define INT64_MAX 9223372036854775807LL77 #define INT64_MIN (-INT64_MAX - 1LL)78 79 #undef UINT64_MAX80 #undef UINT64_MIN81 #define UINT64_MAX 18446744073709551615ULL82 #define UINT64_MIN 0ULL83 84 44 #undef OFF64_MAX 85 45 #undef OFF64_MIN … … 92 52 #define AOFF64_MIN UINT64_MIN 93 53 94 #undef INTMAX_MIN95 #undef INTMAX_MAX96 #define INTMAX_MIN INT64_MIN97 #define INTMAX_MAX INT64_MAX98 99 #undef UINTMAX_MIN100 #undef UINTMAX_MAX101 #define UINTMAX_MIN UINT64_MIN102 #define UINTMAX_MAX UINT64_MAX103 104 /*105 * Fast* and least* integer types.106 *107 * The definitions below are correct as long as uint8/16/32/64_t are defined.108 * Considering the entire rest of the system would break down if they were not,109 * these definitions are just fine.110 */111 typedef uint8_t uint_least8_t;112 typedef uint16_t uint_least16_t;113 typedef uint32_t uint_least32_t;114 typedef uint64_t uint_least64_t;115 116 typedef int8_t int_least8_t;117 typedef int16_t int_least16_t;118 typedef int32_t int_least32_t;119 typedef int64_t int_least64_t;120 121 typedef uint8_t uint_fast8_t;122 typedef uint16_t uint_fast16_t;123 typedef uint32_t uint_fast32_t;124 typedef uint64_t uint_fast64_t;125 126 typedef int8_t int_fast8_t;127 typedef int16_t int_fast16_t;128 typedef int32_t int_fast32_t;129 typedef int64_t int_fast64_t;130 131 54 #endif /* POSIX_STDINT_H_ */ 132 55
Note:
See TracChangeset
for help on using the changeset viewer.