Searched refs:type_max (Results 1 - 12 of 12) sorted by relevance
/linux-master/include/linux/ |
H A D | overflow.h | 15 * #define type_max(T) (T)(is_signed_type(T) ? ((T)1 << (8*sizeof(T)-1)) - 1 : ~(T)0) 19 * the type_max expression (but not if -fsanitize=undefined is in 35 #define type_max(t) __type_max(typeof(t)) macro 36 #define __type_min(T) ((T)((T)-type_max(T)-(T)1)) 212 (x) > type_max(T) : \ 214 (x) < 0 || (x) > type_max(T) : \ 215 (x) < type_min(T) || (x) > type_max(T))
|
H A D | fs.h | 1070 #define OFFSET_MAX type_max(loff_t) 1071 #define OFFT_OFFSET_MAX type_max(off_t)
|
/linux-master/tools/include/linux/ |
H A D | overflow.h | 13 * #define type_max(T) (T)(is_signed_type(T) ? ((T)1 << (8*sizeof(T)-1)) - 1 : ~(T)0) 17 * the type_max expression (but not if -fsanitize=undefined is in 33 #define type_max(T) ((T)((__type_half_max(T) - 1) + __type_half_max(T))) macro 34 #define type_min(T) ((T)((T)-type_max(T)-(T)1))
|
/linux-master/lib/ |
H A D | overflow_kunit.c | 1015 typeof(t1) __t1h = type_max(t1); \ 1017 typeof(t2) __t2h = type_max(t2); \ 1115 TEST_CASTABLE_TO_TYPE(type_max(u ## width), u ## width, true); \ 1117 TEST_CASTABLE_TO_TYPE(type_max(u ## width), u ## width ## var, true); \ 1119 TEST_CASTABLE_TO_TYPE(type_max(s ## width), s ## width, true); \ 1121 TEST_CASTABLE_TO_TYPE(type_max(s ## width), s ## width ## var, true); \ 1124 TEST_CASTABLE_TO_TYPE(type_max(u ## width), s ## width, false); \ 1125 TEST_CASTABLE_TO_TYPE(type_max(u ## width), s ## width ## var, false); \
|
H A D | test_scanf.c | 189 ? ((long long)(val) >= type_min(T)) && ((long long)(val) <= type_max(T)) \ 190 : ((unsigned long long)(val) <= type_max(T)))
|
/linux-master/include/rdma/ |
H A D | uverbs_ioctl.h | 962 type_max(typeof(*(_to))), NULL); \ 972 type_max(typeof(*(_to))), NULL); \ 984 type_max(typeof(*(_to))), &_def_val); \ 995 type_max(typeof(*(_to))), &_def_val); \
|
/linux-master/drivers/vfio/pci/nvgrace-gpu/ |
H A D | main.c | 727 if (*pmemphys > type_max(phys_addr_t)) 735 if (*pmemlength > type_max(size_t))
|
/linux-master/include/net/ |
H A D | xdp.h | 374 meta_max = type_max(typeof_member(struct skb_shared_info, meta_len));
|
/linux-master/drivers/infiniband/hw/qib/ |
H A D | qib_user_sdma.c | 884 bytes_togo > type_max(typeof(pkt->bytes_togo))) { 937 addrlimit > type_max(typeof(pkt->addrlimit))) {
|
/linux-master/drivers/s390/scsi/ |
H A D | zfcp_fc.c | 907 type_max(typeof(rspn_req->rspn.fr_name_len)) + 1);
|
/linux-master/drivers/iommu/iommufd/ |
H A D | pages.c | 352 const unsigned int MAX_NPFNS = type_max(typeof(*batch->npfns));
|
/linux-master/tools/net/ynl/ |
H A D | ynl-gen-c.py | 1511 type_max = struct.attr_set.max_name 1512 cw.block_start(line=f'struct ynl_policy_attr {struct.render_name}_policy[{type_max} + 1] =') 1521 cw.p(f'.max_attr = {type_max},')
|
Completed in 180 milliseconds