Re: [AD] AL_RAND(), final round |
[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]
>> On platforms that require it, this macro does a simple shift >> transformation of the libc rand() function, in order to improve > > Not a simple shift transformation, since we use & and +. Actually it is a simple shift... Since we're going for a platform specific version of the AL_RAND() macro, the simplest solution that gives good result under OSX is ((rand() >> 16) & 0x7fff). > Please post the complete patch. Here it is. -- Angelo Mottola a.mottola@xxxxxxxxxx
Attachment:
new_rand.diff.gz
Description: Binary data
Mail converted by MHonArc 2.6.19+ | http://listengine.tuxfamily.org/ |