Searched refs:time2 (Results 1 – 4 of 4) sorted by relevance
/device/google/contexthub/firmware/os/algos/ |
D | time_sync.c | 47 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/ |
D | time_sync.h | 33 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/ |
D | timegm.c | 82 time2(struct tm * const tmp, void (* const funcp)(const time_t*, long, struct tm*), 108 t = time2(tmp, gmtsub, 0, &okay); in timegm()
|
D | Time.c | 402 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()
|