home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / talk / bizarre / 26759 < prev    next >
Encoding:
Text File  |  1992-08-19  |  1.0 KB  |  32 lines

  1. Newsgroups: talk.bizarre
  2. Path: sparky!uunet!iWarp.intel.com|ichips!sedona!bhoughto
  3. From: bhoughto@sedona.intel.com (Blair P. Houghton)
  4. Subject: Re: Top tips
  5. Message-ID: <1992Aug20.062132.29517@ichips.intel.com>
  6. Keywords: Olivia Newton-John, Linda Ronstadt
  7. Sender: news@ichips.intel.com (News Account)
  8. Organization: Intel Corp., Chandler, Arizona
  9. References: <MJD.92Aug18180241@saul.cis.upenn.edu> <Bt8q6u.AGD@news.cso.uiuc.edu> <Bt9CHq.36D@jfwhome.FUNHOUSE.COM>
  10. Date: Thu, 20 Aug 1992 06:21:32 GMT
  11. Lines: 19
  12.  
  13. In article <Bt9CHq.36D@jfwhome.FUNHOUSE.COM> jfw@jfwhome.FUNHOUSE.COM (John F. Woods) writes:
  14. >Important trivium:  every UNIX(X)* program that uses the famous
  15. >#define    isleap(x) ((x%4)==0 && ((x%100) != 0 || (x%400) == 0))
  16. >on UNIX(X) time_t values (32-bit integer seconds since 00:00 Jan 1 1970 GMT)
  17. >is wasting its time
  18.  
  19.  
  20. >because
  21.  
  22.  
  23. >there are no years within the 32-bit UNIX(X)
  24. >time span for which
  25. >#define isleap(x) ((x%4)==0)
  26. >is incorrect.
  27.  
  28. Can I interest you in an optimizing compiler?
  29.  
  30.                 --Blair
  31.                   "Neural networks done newt-cheap."
  32.