Lines Matching +full:32 +full:- +full:bit
1 // SPDX-License-Identifier: GPL-2.0
28 #define LOWER_MSB_1 (-(UPPER_MSB_0) - 1L) /* avoid overflow */
33 #define UPPER_MSB_1 (-1L)
38 #define MAX_NANOSECONDS ((1L << 30) - 1)
43 "1901-12-13 Lower bound of 32bit < 0 timestamp, no extra bits"
45 "1969-12-31 Upper bound of 32bit < 0 timestamp, no extra bits"
47 "1970-01-01 Lower bound of 32bit >=0 timestamp, no extra bits"
49 "2038-01-19 Upper bound of 32bit >=0 timestamp, no extra bits"
51 "2038-01-19 Lower bound of 32bit <0 timestamp, lo extra sec bit on"
53 "2106-02-07 Upper bound of 32bit <0 timestamp, lo extra sec bit on"
55 "2106-02-07 Lower bound of 32bit >=0 timestamp, lo extra sec bit on"
57 "2174-02-25 Upper bound of 32bit >=0 timestamp, lo extra sec bit on"
59 "2174-02-25 Lower bound of 32bit <0 timestamp, hi extra sec bit on"
61 "2242-03-16 Upper bound of 32bit <0 timestamp, hi extra sec bit on"
63 "2242-03-16 Lower bound of 32bit >=0 timestamp, hi extra sec bit on"
65 "2310-04-04 Upper bound of 32bit >=0 timestamp, hi extra sec bit on"
67 "2310-04-04 Upper bound of 32bit>=0 timestamp, hi extra sec bit 1. 1 ns"
69 "2378-04-22 Lower bound of 32bit>= timestamp. Extra sec bits 1. Max ns"
71 "2378-04-22 Lower bound of 32bit >=0 timestamp. All extra sec bits on"
73 "2446-05-10 Upper bound of 32bit >=0 timestamp. All extra sec bits on"
89 .expected = {.tv_sec = -0x80000000LL, .tv_nsec = 0L},
97 .expected = {.tv_sec = -1LL, .tv_nsec = 0L},
217 strscpy(desc, t->test_case_name, KUNIT_PARAM_DESC_SIZE); in timestamp_expectation_to_desc()
224 if (test->msb_set) { in get_32bit_time()
225 if (test->lower_bound) in get_32bit_time()
231 if (test->lower_bound) in get_32bit_time()
246 (struct timestamp_expectation *)(test->param_value); in inode_test_xtimestamp_decoding()
250 cpu_to_le32(test_param->extra_bits)); in inode_test_xtimestamp_decoding()
253 test_param->expected.tv_sec, in inode_test_xtimestamp_decoding()
256 test_param->test_case_name, in inode_test_xtimestamp_decoding()
257 test_param->msb_set, in inode_test_xtimestamp_decoding()
258 test_param->lower_bound, in inode_test_xtimestamp_decoding()
259 test_param->extra_bits); in inode_test_xtimestamp_decoding()
261 test_param->expected.tv_nsec, in inode_test_xtimestamp_decoding()
264 test_param->test_case_name, in inode_test_xtimestamp_decoding()
265 test_param->msb_set, in inode_test_xtimestamp_decoding()
266 test_param->lower_bound, in inode_test_xtimestamp_decoding()
267 test_param->extra_bits); in inode_test_xtimestamp_decoding()