From owner-freebsd-arch Fri Oct 26 14:28:35 2001 Delivered-To: freebsd-arch@freebsd.org Received: from apollo.backplane.com (apollo.backplane.com [216.240.41.2]) by hub.freebsd.org (Postfix) with ESMTP id A1D7D37B405; Fri, 26 Oct 2001 14:28:33 -0700 (PDT) Received: (from dillon@localhost) by apollo.backplane.com (8.11.6/8.9.1) id f9QLSX838762; Fri, 26 Oct 2001 14:28:33 -0700 (PDT) (envelope-from dillon) Date: Fri, 26 Oct 2001 14:28:33 -0700 (PDT) From: Matthew Dillon Message-Id: <200110262128.f9QLSX838762@apollo.backplane.com> To: John Baldwin Cc: Bakul Shah , Peter Wemm , arch@FreeBSD.ORG, Poul-Henning Kamp Subject: Re: 64 bit times revisited.. References: Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG :>::so far for the in-kernel time keeping, IMO. :> :> And I will also note that trying to represent both seconds and sub-seconds :> in a single fixed point integer is a real bad idea. It makes life :> unnecessarily difficult for the 95% of the code that only needs the :> seconds portion. Any fractional representation should be a SEPARATE :> field. : :Err it is a separate field. You have a 128-bit counter. The high 64-bits are :the seconds portion. You just shift to get the seconds. This is not hard. :Computers have been good at doing shift right's for quite some time now. : :-- : :John Baldwin -- http://www.FreeBSD.org/~jhb/ The phrase 'no freaking way' comes to mind. You guys are outsmarting yourselves. Seconds, ok. That's it. Nothing else. The *VAST* majority of programs only need seconds, it would be utterly stupid to require that they mess around with some weird fixed point quantity when all they want is seconds, no matter how supposedly 'simple' that messing around is (i.e. '>> 64' is not acceptable). -Matt To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message