[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: gEDA-user: PCB Patches: Use c99 bool instead of manual typedef.
On 5/27/10 1:28 PM, Robert Spanton wrote:
> On Thu, 2010-05-27 at 13:23 -0400, Dave McGuire wrote:
>> I have it here but don't feel like digging through it, and it seems
>> like it's fresh in your mind so I'll ask...Is there anything in C99
>> that'd allow for packing bools into a byte or word value, a-la
>> Pascal's "packed array of boolean"?
>
> I think that won't give you a performance win on many targets.
Of course not...not everything has (for example) 8051's
bit-addressable space. I was just curious. :)
> bool
> should be the thing that's fastest to access on the given machine, and
> accessing single bits will often involve more than one instruction I
> think.
Absolutely.
-Dave
--
Dave McGuire
Port Charlotte, FL
_______________________________________________
geda-user mailing list
geda-user@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user