/third_party/mindspore/mindspore/ccsrc/minddata/mindrecord/meta/ |
D | shard_schema.cc | 60 json it_value = it.value(); in PopulateBlobFields() local 61 …if ((it_value.size() == kInt2 && it_value.find("shape") != it_value.end()) || it_value["type"] == … in PopulateBlobFields() 68 bool Schema::ValidateNumberShape(const json &it_value) { in ValidateNumberShape() argument 69 if (it_value.find("shape") == it_value.end()) { in ValidateNumberShape() 70 MS_LOG(ERROR) << "Invalid data, 'shape' object can not found in " << it_value.dump(); in ValidateNumberShape() 74 auto shape = it_value["shape"]; in ValidateNumberShape() 76 MS_LOG(ERROR) << "Invalid data, shape [" << it_value["shape"].dump() << "] is invalid."; in ValidateNumberShape() 83 … MS_LOG(ERROR) << "Invalid data, shape [" << it_value["shape"].dump() << "]dimension is invalid."; in ValidateNumberShape() 92 MS_LOG(ERROR) << "Invalid data, shape [" << it_value["shape"].dump() in ValidateNumberShape() 114 json it_value = it.value(); in Validate() local [all …]
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/timer_settime/ |
D | 9-2.c | 97 its.it_value.tv_sec = tsbefore.tv_sec + in main() 99 its.it_value.tv_nsec = tsbefore.tv_nsec + in main() 102 its.it_value.tv_sec = tsbefore.tv_sec + in main() 104 its.it_value.tv_nsec = tsbefore.tv_nsec + in main() 109 (int)its.it_value.tv_sec, (int)its.it_value.tv_nsec); in main() 128 if (tsafter.tv_sec < its.it_value.tv_sec) { in main() 130 (int)tsafter.tv_sec, (int)its.it_value.tv_sec); in main() 132 } else if (tsafter.tv_sec == its.it_value.tv_sec) { in main() 133 if (tsafter.tv_nsec < its.it_value.tv_nsec) { in main() 137 (int)its.it_value.tv_nsec); in main()
|
D | 8-2.c | 38 its.it_value.tv_sec = TIMERSEC; in main() 39 its.it_value.tv_nsec = 0; in main() 62 oits.it_value.tv_sec = 1000; in main() 63 oits.it_value.tv_nsec = 1000; in main() 72 if ((0 == oits.it_value.tv_sec) && in main() 73 (0 == oits.it_value.tv_nsec) && in main() 80 (int)oits.it_value.tv_sec, (int)oits.it_value.tv_nsec); in main()
|
D | 8-1.c | 36 its.it_value.tv_sec = TIMERSEC; in main() 37 its.it_value.tv_nsec = 0; in main() 49 if ((0 == oits.it_value.tv_sec) && in main() 50 (0 == oits.it_value.tv_nsec) && in main() 57 (int)oits.it_value.tv_sec, (int)oits.it_value.tv_nsec); in main()
|
D | 2-1.c | 73 its.it_value.tv_sec = TIMERVALUESEC; in main() 74 its.it_value.tv_nsec = 0; in main() 92 printf("Test for value %d\n", (int)its.it_value.tv_sec); in main() 120 delta = timeelapsed - its.it_value.tv_sec; in main() 123 (int)its.it_value.tv_sec); in main() 128 its.it_value.tv_sec += INCREMENT; in main()
|
D | 9-1.c | 83 its.it_value.tv_sec = timeroffsets[i][0]; in main() 84 its.it_value.tv_nsec = timeroffsets[i][1]; in main() 87 (int)its.it_value.tv_sec, (int)its.it_value.tv_nsec); in main() 111 testnsecs = (unsigned long)its.it_value.tv_sec * 1000000000 + in main() 112 its.it_value.tv_nsec; in main()
|
/third_party/musl/compat/time32/ |
D | setitimer_time32.c | 11 .it_value.tv_sec = new32->it_value.tv_sec, in __setitimer_time32() 12 .it_value.tv_usec = new32->it_value.tv_usec}), &old); in __setitimer_time32() 21 old32->it_value.tv_sec = old.it_value.tv_sec; in __setitimer_time32() 22 old32->it_value.tv_usec = old.it_value.tv_usec; in __setitimer_time32()
|
D | timerfd_settime32.c | 11 .it_value.tv_sec = val32->it_value.tv_sec, in __timerfd_settime32() 12 .it_value.tv_nsec = val32->it_value.tv_nsec}), in __timerfd_settime32() 22 old32->it_value.tv_sec = old.it_value.tv_sec; in __timerfd_settime32() 23 old32->it_value.tv_nsec = old.it_value.tv_nsec; in __timerfd_settime32()
|
D | timer_settime32.c | 10 .it_value.tv_sec = val32->it_value.tv_sec, in __timer_settime32() 11 .it_value.tv_nsec = val32->it_value.tv_nsec}), in __timer_settime32() 21 old32->it_value.tv_sec = old.it_value.tv_sec; in __timer_settime32() 22 old32->it_value.tv_nsec = old.it_value.tv_nsec; in __timer_settime32()
|
D | timerfd_gettime32.c | 13 val32->it_value.tv_sec = old.it_value.tv_sec; in __timerfd_gettime32() 14 val32->it_value.tv_nsec = old.it_value.tv_nsec; in __timerfd_gettime32()
|
D | getitimer_time32.c | 12 old32->it_value.tv_sec = old.it_value.tv_sec; in __getitimer_time32() 13 old32->it_value.tv_usec = old.it_value.tv_usec; in __getitimer_time32()
|
D | timer_gettime32.c | 12 val32->it_value.tv_sec = old.it_value.tv_sec; in __timer_gettime32() 13 val32->it_value.tv_nsec = old.it_value.tv_nsec; in __timer_gettime32()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/timer_gettime/ |
D | 1-1.c | 42 itsset.it_value.tv_sec = TIMERSEC; in main() 43 itsset.it_value.tv_nsec = 0; in main() 60 delta = itsset.it_value.tv_sec - itsget.it_value.tv_sec; in main() 64 printf("%d > %d\n", (int)itsget.it_value.tv_sec, in main() 65 (int)itsset.it_value.tv_sec); in main() 75 printf("%d !~= %d\n", (int)itsget.it_value.tv_sec, in main() 76 (int)itsset.it_value.tv_sec); in main()
|
D | 1-2.c | 44 itsset.it_value.tv_sec = TIMERSEC; in main() 45 itsset.it_value.tv_nsec = 0; in main() 67 delta = (itsset.it_value.tv_sec - SLEEPSEC) - itsget.it_value.tv_sec; in main() 71 printf("%d > %d\n", (int)itsget.it_value.tv_sec, in main() 72 (int)itsset.it_value.tv_sec - SLEEPSEC); in main() 82 printf("%d !~= %d\n", (int)itsget.it_value.tv_sec, in main() 83 (int)itsset.it_value.tv_sec - SLEEPSEC); in main()
|
D | 3-1.c | 55 itsset.it_value.tv_sec = ts.tv_sec + TIMERSEC; in main() 56 itsset.it_value.tv_nsec = ts.tv_nsec; in main() 69 delta = TIMERSEC - itsget.it_value.tv_sec; in main() 73 printf("%d > %d\n", (int)itsget.it_value.tv_sec, in main() 74 (int)itsset.it_value.tv_sec); in main() 84 printf("%d !~= %d\n", (int)itsget.it_value.tv_sec, in main() 85 (int)itsset.it_value.tv_sec); in main()
|
D | 2-2.c | 37 itsset.it_value.tv_sec = TIMERSEC; in main() 38 itsset.it_value.tv_nsec = 0; in main() 63 if (0 == itsget.it_value.tv_sec && 0 == itsget.it_value.tv_nsec) { in main() 69 (int)itsget.it_value.tv_sec, in main() 70 (int)itsget.it_value.tv_nsec); in main()
|
D | 1-4.c | 51 itsset.it_value.tv_sec = TIMERVALSEC; in main() 52 itsset.it_value.tv_nsec = 0; in main() 94 (SLEEPSEC - itsset.it_value.tv_sec); in main() 95 delta = expectedleft - itsget.it_value.tv_sec; in main() 99 printf("%d > %d\n", (int)itsget.it_value.tv_sec, expectedleft); in main() 109 printf("%d !~= %d\n", (int)itsget.it_value.tv_sec, in main() 110 (int)itsset.it_value.tv_sec - SLEEPSEC); in main()
|
D | 1-3.c | 45 itsset.it_value.tv_sec = 0; in main() 46 itsset.it_value.tv_nsec = TIMERNSEC; in main() 76 if (itsget.it_value.tv_sec) { in main() 78 itsget.it_value.tv_sec); in main() 82 deltans = (itsset.it_value.tv_nsec - ts.tv_nsec) - in main() 83 itsget.it_value.tv_nsec; in main()
|
D | 2-1.c | 43 if (0 == its.it_value.tv_sec && 0 == its.it_value.tv_nsec) { in main() 48 (int)its.it_value.tv_sec, (int)its.it_value.tv_nsec); in main()
|
/third_party/gstreamer/gstreamer/libs/gst/check/libcheck/libcompat/ |
D | timer_settime.c | 36 interval.it_value.tv_sec = new_value->it_value.tv_sec; in timer_settime() 37 interval.it_value.tv_usec = new_value->it_value.tv_nsec / 1000; in timer_settime() 43 int seconds = new_value->it_value.tv_sec; in timer_settime() 49 if (new_value->it_value.tv_nsec > 0) { in timer_settime()
|
/third_party/ltp/testcases/kernel/syscalls/timer_settime/ |
D | timer_settime03.c | 74 SAFE_CLOCK_GETTIME(CLOCK_REALTIME, &spec.it_value); in run() 77 if (nsec > spec.it_value.tv_nsec) { in run() 78 spec.it_value.tv_sec -= 1; in run() 79 spec.it_value.tv_nsec += 1000000000; in run() 84 spec.it_value.tv_sec -= handler_delay / 100000000; in run() 85 spec.it_value.tv_nsec -= nsec; in run()
|
/third_party/musl/src/linux/ |
D | timerfd.c | 15 time_t is = new->it_interval.tv_sec, vs = new->it_value.tv_sec; in timerfd_settime() 16 long ins = new->it_interval.tv_nsec, vns = new->it_value.tv_nsec; in timerfd_settime() 32 old->it_value.tv_sec = old32[2]; in timerfd_settime() 33 old->it_value.tv_nsec = old32[3]; in timerfd_settime() 53 cur->it_value.tv_sec = cur32[2]; in timerfd_gettime() 54 cur->it_value.tv_nsec = cur32[3]; in timerfd_gettime()
|
/third_party/ltp/testcases/kernel/syscalls/setitimer/ |
D | setitimer01.c | 98 value->it_value.tv_sec = SEC1; in main() 99 value->it_value.tv_usec = SEC0; in main() 119 value->it_value.tv_sec = SEC2; in main() 120 value->it_value.tv_usec = SEC0; in main() 127 if (ovalue->it_value.tv_sec <= SEC1) { in main()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/fork/ |
D | 13-1.c | 63 it.it_value.tv_sec = 10; in main() 64 it.it_value.tv_usec = 0; in main() 108 if (it.it_value.tv_sec != 0) { in main() 119 if (it.it_value.tv_sec != 0) { in main() 130 if (it.it_value.tv_sec != 0) { in main()
|
/third_party/musl/libc-test/src/functionalext/supplement/signal/ |
D | setitimer.c | 30 val.it_value.tv_sec = 0; in expireTimer() 31 val.it_value.tv_usec = 0; in expireTimer() 67 it.it_value.tv_sec = 0; in setitimer_0100() 68 it.it_value.tv_usec = 100000; in setitimer_0100()
|