• 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: beginner question, NSNumber, NSDecimalAsNumber
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: beginner question, NSNumber, NSDecimalAsNumber


  • Subject: Re: beginner question, NSNumber, NSDecimalAsNumber
  • From: Thomas Wetmore <email@hidden>
  • Date: Mon, 09 Nov 2009 11:42:52 -0500

These functions return how many one bits there are in a number, not how many bit positions are needed to represent the number as a bit- string with no leading zeros. They are fun but have no utility in solving the OP's question.

TW

There are some examples of how to do this here, including some really, really clever methods.

http://gurmeetsingh.wordpress.com/2008/08/05/fast-bit-counting-routines/

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: beginner question, NSNumber, NSDecimalAsNumber
      • From: Alastair Houghton <email@hidden>
References: 
 >beginner question, NSNumber, NSDecimalAsNumber (From: Jay Swartzfeger <email@hidden>)
 >Re: beginner question, NSNumber, NSDecimalAsNumber (From: Ron Fleckner <email@hidden>)
 >Re: beginner question, NSNumber, NSDecimalAsNumber (From: Graham Cox <email@hidden>)
 >Re: beginner question, NSNumber, NSDecimalAsNumber (From: Thomas Wetmore <email@hidden>)
 >Re: beginner question, NSNumber, NSDecimalAsNumber (From: Alastair Houghton <email@hidden>)
 >Re: beginner question, NSNumber, NSDecimalAsNumber (From: Graham Cox <email@hidden>)
 >Re: beginner question, NSNumber, NSDecimalAsNumber (From: Alastair Houghton <email@hidden>)

  • Prev by Date: Re: iPhone: NSOperation and UITableVIews
  • Next by Date: Re: NSString of selected text in NSTextView
  • Previous by thread: Re: beginner question, NSNumber, NSDecimalAsNumber
  • Next by thread: Re: beginner question, NSNumber, NSDecimalAsNumber
  • Index(es):
    • Date
    • Thread