Home
last modified time | relevance | path

Searched refs:time2 (Results 1 – 4 of 4) sorted by relevance

/device/google/contexthub/firmware/os/algos/
Dtime_sync.c47 uint64_t tmp2 = sync->time2[0]; in time_sync_truncate()
51 sync->time2[m] = sync->time2[m + 1]; in time_sync_truncate()
54 sync->time2[NUM_TIME_SYNC_DATAPOINTS - 1] = tmp2; in time_sync_truncate()
60 bool time_sync_add(time_sync_t *sync, uint64_t time1, uint64_t time2) { in time_sync_add() argument
64 sync->time2[i] = time2; in time_sync_add()
87 bool time_sync_estimate_time1(time_sync_t *sync, uint64_t time2, uint64_t *time1) in time_sync_estimate_time1() argument
109 uint64_t time2_base = sync->time2[i]; in time_sync_estimate_time1()
120 mean_x += floatFromUint64(sync->time2[ii] - time2_base) * invN; in time_sync_estimate_time1()
135 float x = floatFromUint64(sync->time2[ii] - time2_base) - mean_x; in time_sync_estimate_time1()
156 …*time1 = sync->time1_base + floatToInt64(sync->alpha + sync->beta * floatFromInt64(time2 - sync->t… in time_sync_estimate_time1()
/device/google/contexthub/firmware/os/inc/algos/
Dtime_sync.h33 uint64_t time2[NUM_TIME_SYNC_DATAPOINTS]; member
50 bool time_sync_add(time_sync_t *sync, uint64_t time1, uint64_t time2);
51 bool time_sync_estimate_time1(time_sync_t *sync, uint64_t time2, uint64_t *time1);
/device/linaro/bootloader/edk2/StdLib/LibC/Time/
Dtimegm.c82 time2(struct tm * const tmp, void (* const funcp)(const time_t*, long, struct tm*),
108 t = time2(tmp, gmtsub, 0, &okay); in timegm()
DTime.c402 time2(struct tm * const tmp, void (* const funcp)(const time_t*, long, struct tm*), in time2() function
435 t = time2(tmp, funcp, offset, &okay); in time1()
483 t = time2(tmp, funcp, offset, &okay); in time1()