[PATCH 20/265] ANSI-fied libX11

Daniel Stone daniel at fooishbar.org
Thu Apr 26 18:17:00 PDT 2007


On Thu, Apr 26, 2007 at 08:06:34PM -0500, Pat Kane wrote:
> >+       register Display *dpy,
> 
> Are those "register"  keywords still useful?

No.

> I have always been a bit ignorant on what "register" means,
> is it a hint to the compiler or a hard requirement?

It's a hint to the compiler that it's frequently used, and should occupy
its own registers.  Luckily, compilers are actually now smart enough to
work out access patterns, so it hasn't mattered since the egcs fork, or
possibly a while before that.

Cheers,
Daniel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.x.org/archives/xorg/attachments/20070427/daf70ebd/attachment.pgp>


More information about the xorg mailing list