/kernel/linux/linux-6.6/lib/ |
H A D | is_signed_type_kunit.c | 3 * ./tools/testing/kunit/kunit.py run is_signed_type [--raw_output] 21 KUNIT_EXPECT_EQ(test, is_signed_type(bool), false); in is_signed_type_test() 22 KUNIT_EXPECT_EQ(test, is_signed_type(signed char), true); in is_signed_type_test() 23 KUNIT_EXPECT_EQ(test, is_signed_type(unsigned char), false); in is_signed_type_test() 24 KUNIT_EXPECT_EQ(test, is_signed_type(char), false); in is_signed_type_test() 25 KUNIT_EXPECT_EQ(test, is_signed_type(int), true); in is_signed_type_test() 26 KUNIT_EXPECT_EQ(test, is_signed_type(unsigned int), false); in is_signed_type_test() 27 KUNIT_EXPECT_EQ(test, is_signed_type(long), true); in is_signed_type_test() 28 KUNIT_EXPECT_EQ(test, is_signed_type(unsigned long), false); in is_signed_type_test() 29 KUNIT_EXPECT_EQ(test, is_signed_type(lon in is_signed_type_test() [all...] |
H A D | test_scanf.c | 188 (is_signed_type(T) \ 304 if (is_signed_type(typeof((arr)[0])) && (neg_pattern & 1)) \ 715 if (is_signed_type(T)) \
|
/kernel/linux/linux-6.6/include/trace/stages/ |
H A D | stage4_event_fields.h | 11 .is_signed = is_signed_type(_type), .filter_type = _filter_type }, 29 .is_signed = is_signed_type(_type), .filter_type = FILTER_OTHER,\ 36 .is_signed = is_signed_type(_type), .filter_type = FILTER_OTHER }, 63 .is_signed = is_signed_type(_type), .filter_type = FILTER_OTHER },
|
/kernel/linux/linux-5.10/tools/include/linux/ |
H A D | overflow.h | 15 * #define type_min(T) (T)(is_signed_type(T) ? (T)1 << (8*sizeof(T)-1) : 0) 16 * #define type_max(T) (T)(is_signed_type(T) ? ((T)1 << (8*sizeof(T)-1)) - 1 : ~(T)0) 34 #define is_signed_type(type) (((type)(-1)) < (type)1) macro 35 #define __type_half_max(type) ((type)1 << (8*sizeof(type) - 1 - is_signed_type(type))) 188 __builtin_choose_expr(is_signed_type(typeof(a)), \ 193 __builtin_choose_expr(is_signed_type(typeof(a)), \ 198 __builtin_choose_expr(is_signed_type(typeof(a)), \
|
/kernel/linux/linux-5.10/kernel/trace/ |
H A D | trace_export.c | 89 is_signed_type(_type), .filter_type = _filter_type }, 96 is_signed_type(_type), .filter_type = _filter_type }, 114 is_signed_type(_type), .filter_type = FILTER_OTHER }, 123 is_signed_type(_type), .filter_type = FILTER_OTHER },
|
H A D | trace_syscalls.c | 209 .is_signed = is_signed_type(_type), .filter_type = FILTER_OTHER }
|
H A D | ring_buffer.c | 391 (unsigned int)is_signed_type(u64)); in ring_buffer_print_page_header() 397 (unsigned int)is_signed_type(long)); in ring_buffer_print_page_header() 403 (unsigned int)is_signed_type(long)); in ring_buffer_print_page_header() 409 (unsigned int)is_signed_type(char)); in ring_buffer_print_page_header()
|
H A D | trace_events.c | 151 #item, 0, 0, is_signed_type(type), \ 161 is_signed_type(type), FILTER_OTHER); \
|
/kernel/linux/linux-6.6/kernel/trace/ |
H A D | trace_export.c | 92 is_signed_type(_type), .filter_type = _filter_type }, 99 is_signed_type(_type), .filter_type = _filter_type }, 117 is_signed_type(_type), .filter_type = FILTER_OTHER, \ 130 is_signed_type(_type), .filter_type = FILTER_OTHER },
|
H A D | trace_syscalls.c | 207 .is_signed = is_signed_type(_type), .filter_type = FILTER_OTHER }
|
H A D | ring_buffer.c | 388 (unsigned int)is_signed_type(u64)); in ring_buffer_print_page_header() 394 (unsigned int)is_signed_type(long)); in ring_buffer_print_page_header() 400 (unsigned int)is_signed_type(long)); in ring_buffer_print_page_header() 406 (unsigned int)is_signed_type(char)); in ring_buffer_print_page_header()
|
H A D | trace_events.c | 174 #item, 0, 0, is_signed_type(type), \ 184 is_signed_type(type), FILTER_OTHER, 0); \
|
/kernel/linux/linux-5.10/include/linux/ |
H A D | overflow.h | 16 * #define type_min(T) (T)(is_signed_type(T) ? (T)1 << (8*sizeof(T)-1) : 0) 17 * #define type_max(T) (T)(is_signed_type(T) ? ((T)1 << (8*sizeof(T)-1)) - 1 : ~(T)0) 35 #define is_signed_type(type) (((type)(-1)) < (type)1) macro 36 #define __type_half_max(type) ((type)1 << (8*sizeof(type) - 1 - is_signed_type(type))) 205 __builtin_choose_expr(is_signed_type(typeof(a)), \ 210 __builtin_choose_expr(is_signed_type(typeof(a)), \ 215 __builtin_choose_expr(is_signed_type(typeof(a)), \
|
H A D | trace_events.h | 703 #define is_signed_type(type) (((type)(-1)) < (type)1) macro
|
/kernel/linux/linux-6.6/include/linux/ |
H A D | compiler.h | 237 #define is_signed_type(type) (((type)(-1)) < (__force type)1) macro 238 #define is_unsigned_type(type) (!is_signed_type(type))
|
H A D | minmax.h | 29 /* is_signed_type() isn't a constexpr for pointer types */ 31 __builtin_choose_expr(__is_constexpr(is_signed_type(typeof(x))), \ 32 is_signed_type(typeof(x)), 0)
|
H A D | overflow.h | 14 * #define type_min(T) (T)(is_signed_type(T) ? (T)1 << (8*sizeof(T)-1) : 0) 15 * #define type_max(T) (T)(is_signed_type(T) ? ((T)1 << (8*sizeof(T)-1)) - 1 : ~(T)0) 33 #define __type_half_max(type) ((type)1 << (8*sizeof(type) - 1 - is_signed_type(type)))
|
/kernel/linux/linux-6.6/tools/include/linux/ |
H A D | overflow.h | 12 * #define type_min(T) (T)(is_signed_type(T) ? (T)1 << (8*sizeof(T)-1) : 0) 13 * #define type_max(T) (T)(is_signed_type(T) ? ((T)1 << (8*sizeof(T)-1)) - 1 : ~(T)0) 31 #define is_signed_type(type) (((type)(-1)) < (type)1) macro 32 #define __type_half_max(type) ((type)1 << (8*sizeof(type) - 1 - is_signed_type(type)))
|
/kernel/linux/linux-5.10/tools/testing/selftests/ |
H A D | kselftest_harness.h | 687 #define is_signed_type(var) (!!(((__typeof__(var))(-1)) < (__typeof__(var))1)) macro 696 switch (is_signed_type(__exp) * 2 + is_signed_type(__seen)) { \
|
/kernel/linux/linux-5.10/include/trace/ |
H A D | trace_events.h | 409 .is_signed = is_signed_type(_type), .filter_type = _filter_type }, 427 .is_signed = is_signed_type(_type), .filter_type = FILTER_OTHER }, 433 .is_signed = is_signed_type(_type), .filter_type = FILTER_OTHER },
|
/kernel/linux/linux-6.6/tools/testing/selftests/ |
H A D | kselftest_harness.h | 702 #define is_signed_type(var) (!!(((__typeof__(var))(-1)) < (__typeof__(var))1)) macro 711 switch (is_signed_type(__exp) * 2 + is_signed_type(__seen)) { \
|
/kernel/linux/linux-6.6/include/rdma/ |
H A D | uverbs_ioctl.h | 999 (is_signed_type(typeof(*(_to))) ? \ 1004 (is_signed_type(typeof(*(_to))) ? \
|