bitwise operations in obj C
bitwise operations in obj C
- Subject: bitwise operations in obj C
- From: "Erfan Aleemullah" <email@hidden>
- Date: Wed, 17 Oct 2007 12:34:26 -0400
hello all,
I have a modulus operation in my code and it runs fine, but my original
algorithm avoided division all together for speed reasons - I am using
modulus due to a change in requirements.
How exactly (or can I) use bit operations to achieve the same effect and
increase my speed here ?
Code:
line_Number++;
if(line_Number % increment == 0)
// lineNumber is any integer
value > 0, can get large w/ time - 100,000++
{ // increment is user selectable
integer from a set of given values
....
....
}
thanks.
_______________________________________________
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