Lines Matching +full:1 +full:- +full:16
9 * Usage: valid-adjtimex
12 * $ gcc valid-adjtimex.c -o valid-adjtimex -lrt
66 -499<<16,
67 -450<<16,
68 -400<<16,
69 -350<<16,
70 -300<<16,
71 -250<<16,
72 -200<<16,
73 -150<<16,
74 -100<<16,
75 -75<<16,
76 -50<<16,
77 -25<<16,
78 -10<<16,
79 -5<<16,
80 -1<<16,
81 -1000,
82 1<<16,
83 5<<16,
84 10<<16,
85 25<<16,
86 50<<16,
87 75<<16,
88 100<<16,
89 150<<16,
90 200<<16,
91 250<<16,
92 300<<16,
93 350<<16,
94 400<<16,
95 450<<16,
96 499<<16,
100 -1000<<16,
101 -550<<16,
102 550<<16,
103 1000<<16,
106 #define LONG_MAX (~0UL>>1)
107 #define LONG_MIN (-LONG_MAX - 1)
134 printf("Error: adjtimex(ADJ_FREQ, %ld - %ld ppm\n", in validate_freq()
135 valid_freq[i], valid_freq[i]>>16); in validate_freq()
136 pass = -1; in validate_freq()
153 printf("Error: adjtimex(ADJ_FREQ, %ld - %ld ppm\n", in validate_freq()
154 outofrange_freq[i], outofrange_freq[i]>>16); in validate_freq()
155 pass = -1; in validate_freq()
164 pass = -1; in validate_freq()
179 pass = -1; in validate_freq()
209 tmx.time.tv_sec -= 1; in set_offset()
217 tmx.time.tv_sec -= 1; in set_offset()
226 return -1; in set_offset()
246 return -1; in set_bad_offset()
257 if (set_offset(NSEC_PER_SEC - 1, 1)) in validate_set_offset()
258 return -1; in validate_set_offset()
260 if (set_offset(-NSEC_PER_SEC + 1, 1)) in validate_set_offset()
261 return -1; in validate_set_offset()
263 if (set_offset(-NSEC_PER_SEC - 1, 1)) in validate_set_offset()
264 return -1; in validate_set_offset()
266 if (set_offset(5 * NSEC_PER_SEC, 1)) in validate_set_offset()
267 return -1; in validate_set_offset()
269 if (set_offset(-5 * NSEC_PER_SEC, 1)) in validate_set_offset()
270 return -1; in validate_set_offset()
272 if (set_offset(5 * NSEC_PER_SEC + NSEC_PER_SEC / 2, 1)) in validate_set_offset()
273 return -1; in validate_set_offset()
275 if (set_offset(-5 * NSEC_PER_SEC - NSEC_PER_SEC / 2, 1)) in validate_set_offset()
276 return -1; in validate_set_offset()
278 if (set_offset(USEC_PER_SEC - 1, 0)) in validate_set_offset()
279 return -1; in validate_set_offset()
281 if (set_offset(-USEC_PER_SEC + 1, 0)) in validate_set_offset()
282 return -1; in validate_set_offset()
284 if (set_offset(-USEC_PER_SEC - 1, 0)) in validate_set_offset()
285 return -1; in validate_set_offset()
288 return -1; in validate_set_offset()
290 if (set_offset(-5 * USEC_PER_SEC, 0)) in validate_set_offset()
291 return -1; in validate_set_offset()
294 return -1; in validate_set_offset()
296 if (set_offset(-5 * USEC_PER_SEC - USEC_PER_SEC / 2, 0)) in validate_set_offset()
297 return -1; in validate_set_offset()
300 if (set_bad_offset(0, -1, 1)) in validate_set_offset()
301 return -1; in validate_set_offset()
302 if (set_bad_offset(0, -1, 0)) in validate_set_offset()
303 return -1; in validate_set_offset()
304 if (set_bad_offset(0, 2 * NSEC_PER_SEC, 1)) in validate_set_offset()
305 return -1; in validate_set_offset()
307 return -1; in validate_set_offset()
308 if (set_bad_offset(0, NSEC_PER_SEC, 1)) in validate_set_offset()
309 return -1; in validate_set_offset()
311 return -1; in validate_set_offset()
312 if (set_bad_offset(0, -NSEC_PER_SEC, 1)) in validate_set_offset()
313 return -1; in validate_set_offset()
314 if (set_bad_offset(0, -USEC_PER_SEC, 0)) in validate_set_offset()
315 return -1; in validate_set_offset()