Re: [AD] AL_RAND(), final round

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


> Here's a proposed new definition to be placed on the docs, so I can apply
> the patch and we can close this topic.
> It's a little modification of Peter's proposal:
>
> <b>AL_RAND</b><br>

Missing parentheses.

>    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 +.

>    the perceived randomness of the output series in the lower 16 bits.
>    Where not required, it directly translates into a rand() call.
>
> Please give me a "go" if it's ok.

Please post the complete patch.

> On other news, the MacOS X port now features a working joystick driver,
> which makes it feature complete :)

Nice!

-- 
Eric Botcazou




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/