Subject: Re: I don't understand alpha/alpha/disksubr.c:178
To: Christos Zoulas <email@example.com>
From: Simon Burge <firstname.lastname@example.org>
Date: 03/05/2002 20:24:41
Christos Zoulas wrote:
> Yes, clearly the long cast is not correct. There is a comment in libkern.h
> about ffs being part of gcc-3.0. What's the signature of that?
It seems that it's been a builtin for a while - egcs 1.1.2 and gcc
2.95.2 have it too. The info page for egcs says:
The `ffs' built-in function of C always uses the mode which
corresponds to the C data type `int'.
I _think_ that means it operates on an int, and a comment in the gcc
source shows that:
/* The ffs function operates on `int'. */
Simon Burge <email@example.com>
NetBSD CDs, Support and Service: http://www.wasabisystems.com/