1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-01 12:19:28 +00:00

Make Bruce happy removing the "LL abomination" from time.h

It's not necessary in all the three instances because
they already have the correct type on all the supported
arches.

Requested by:	bde
This commit is contained in:
Davide Italiano 2014-08-20 16:32:02 +00:00
parent e6e574516a
commit d0091d6625
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=270227

View File

@ -129,7 +129,7 @@ bintime_shift(struct bintime *_bt, int _exp)
#define SBT_1MS (SBT_1S / 1000)
#define SBT_1US (SBT_1S / 1000000)
#define SBT_1NS (SBT_1S / 1000000000)
#define SBT_MAX 0x7fffffffffffffffLL
#define SBT_MAX 0x7fffffffffffffff
static __inline int
sbintime_getsec(sbintime_t _sbt)
@ -184,7 +184,7 @@ timespec2bintime(const struct timespec *_ts, struct bintime *_bt)
_bt->sec = _ts->tv_sec;
/* 18446744073 = int(2^64 / 1000000000) */
_bt->frac = _ts->tv_nsec * (uint64_t)18446744073LL;
_bt->frac = _ts->tv_nsec * (uint64_t)18446744073;
}
static __inline void
@ -201,7 +201,7 @@ timeval2bintime(const struct timeval *_tv, struct bintime *_bt)
_bt->sec = _tv->tv_sec;
/* 18446744073709 = int(2^64 / 1000000) */
_bt->frac = _tv->tv_usec * (uint64_t)18446744073709LL;
_bt->frac = _tv->tv_usec * (uint64_t)18446744073709;
}
static __inline struct timespec