delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/08/29/14:17:52

From: Vik Heyndrickx <Vik DOT Heyndrickx AT rug DOT ac DOT be>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: drand48, srand48??
Date: Fri, 29 Aug 1997 13:17:18 +0200
Organization: University of Ghent, Belgium
Lines: 18
Message-ID: <3406AFBE.40E3@rug.ac.be>
References: <3404708E DOT 4A01 AT nortel DOT com>
NNTP-Posting-Host: eduserv1.rug.ac.be
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Shane Crowe wrote:
> 
> Our GNU C compiler setup for Unix has support for drand48 and
> srand48 functions. The 48 is for 48-bit math. Does this exist
> for djgpp? If so, where? This would make porting stuff over to
> DOS easier.

Not AFAIK, since djgpp has 32 bit and 64 bit integers and no 48 bit
integers this would be not very useful. Maybe look at the implementation
of rand and write your own one. Is it really that important the rand
function are 48 bit?

Bye,

-- 
+----------------+
| Vik Heyndrickx |
+----------------+

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019