• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: why does this not work?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: why does this not work?


  • Subject: Re: why does this not work?
  • From: Brett Powley <email@hidden>
  • Date: Tue, 7 Feb 2006 21:36:55 +1100


On 07/02/2006, at 8:54 PM, Robert Dell wrote:

Nils Holland wrote:

Because the data type "bool" doesn't exist in C?
Why not make normal integers out of your booleans and then modifying your code accordingly (so, set these ints to 0 or 1 as you can't set 'em to TRUE or FALSE)?

all machines to execute this software is 32 bits long and the int is a 16 bit integer. using int to calculate things adds un- necessary cpu time to AND it with 0000ffff in order to get the int value before it checks to see if it's zero. it's much faster using long instead of int, that's why i'll be using long for the most part.

int is defined in C to the the 'natural word size of the machine' -- for most processors and compilers nowadays that's 32 bits.



-------------------------------------------------------------- Brett Powley -- PhD Candidate Centre for Language Technology, Macquarie University, Australia w: http://www.ics.mq.edu.au/~bpowley faciendi plures libros nullus est finis frequensque meditatio carnis adflictio est --------------------------------------------------------------



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >why does this not work? (From: Robert Dell <email@hidden>)
 >Re: why does this not work? (From: Nils Holland <email@hidden>)
 >Re: why does this not work? (From: Robert Dell <email@hidden>)

  • Prev by Date: Blackhole netsocket warnings
  • Next by Date: Searching for socket API thread based
  • Previous by thread: Re: why does this not work?
  • Next by thread: Re: why does this not work?
  • Index(es):
    • Date
    • Thread