mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-01-31 19:43:32 +00:00
e56a9d0e23
This change brings page faults for precompressed static asset serving down from 27 to 20 (or fewer) after fork. This is more of an art than science. Hopefully Blinkenlights can visualize page faults soon.
9 lines
299 B
C
9 lines
299 B
C
#ifndef COSMOPOLITAN_LIBC_DOS_H_
|
|
#define COSMOPOLITAN_LIBC_DOS_H_
|
|
|
|
#define DOS_DATE(YEAR, MONTH_IDX1, DAY_IDX1) \
|
|
(((YEAR)-1980) << 9 | (MONTH_IDX1) << 5 | (DAY_IDX1))
|
|
#define DOS_TIME(HOUR, MINUTE, SECOND) \
|
|
((HOUR) << 11 | (MINUTE) << 5 | (SECOND) >> 1)
|
|
|
|
#endif /* COSMOPOLITAN_LIBC_DOS_H_ */
|