This is the mail archive of the gsl-discuss@sources.redhat.com mailing list for the GSL project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Reading and writing GSL random number generators


On Wed, 28 May 2003, Olaf Lenz wrote:

> What type is best to use when you really need one byte (i.e. 8 bit)?
I don't know if this is even relevant but one way to make sure you are dealing
with a single byte is to define your variable as unsigned int and carry
out something like
a &= 0xFF;
every time you change the value of this variable.

ato


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]