/
nerfur
/
openbsd-src
Обзор
Документация
Войти
/
nerfur
/
openbsd-src
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
lib/libc/time/difftime.c
13 строк
357 B
millert
Merge remaining parts of tzcode2013d.
21 май 2025, 04:27
21 май 2025, 04:27
1c23c81
Код
Авторство
О чём код?
/* $OpenBSD: difftime.c,v 1.13 2025/05/21 01:27:29 millert Exp $ */ /* This file is placed in the public domain by Matthew Dempsky. */ #include "private.h" #define HI(t) ((double)(t & 0xffffffff00000000LL)) #define LO(t) ((double)(t & 0x00000000ffffffffLL)) double __pure difftime(time_t t1, time_t t0) { return (HI(t1) - HI(t0)) + (LO(t1) - LO(t0)); }