Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!bloom-beacon!gatech!udel!rochester!cornell!batcomputer!tedcrane From: tedcrane@batcomputer.tn.cornell.edu (Ted Crane) Newsgroups: comp.os.vms Subject: Re: Wanted: quadword addition algoritm Message-ID: <2366@batcomputer.tn.cornell.edu> Date: Thu, 17-Sep-87 12:30:42 EDT Article-I.D.: batcompu.2366 Posted: Thu Sep 17 12:30:42 1987 Date-Received: Sat, 19-Sep-87 14:54:40 EDT References: <8709031922.AA02189@mitre-bedford.ARPA> Reply-To: tedcrane@tcgould.tn.cornell.edu (Ted Crane) Organization: Tompkins County Computing, Ithaca, NY Lines: 19 In article <8709031922.AA02189@mitre-bedford.ARPA> ted@MITRE-BEDFORD.ARPA writes: >I'm using $GETTIM and $SETIMR to read the system time and set an event >flag. The result comes back in a quadword as the number of 100ns >intervals since 17-NOV-1858. (Did they have vaxes back then? :-). >Does anyone have a routine, or know of a language that does/has >operations? (Sample code would be wonderful, any language will do. Would the run-time library routines LIB$ADDX, etc., satisfy your need for operations? I've found that they do fine for most things, since you only need to do simple operations on the quadword values and then either use the results directly or convert them to (and from) ASCII for display (SYS$BINTIM and SYS$ASCTIM, LIB$SYS_ASCTIM, among others). Hope that helps, ted. -ted tedcrane@tcgould.tn.cornell.edu BITNET: tedcrane@CRNLTHRY {decvax!ucbvax}!tcgould.tn.cornell.edu!tedcrane DECnet: GOPHER::THC