Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Developing U++ » U++ Developers corner » Some new functions
Re: Some new functions [message #29822 is a reply to message #29820] Sat, 20 November 2010 17:22 Go to previous messageGo to previous message
Didier is currently offline  Didier
Messages: 680
Registered: November 2008
Location: France
Contributor
Hi Koldo,

I think the Odd() function would be faster this way (although the compiler might already optimize it this way):

inline bool Odd(int val) {return (val & 0x1);}

Not a big optimization, rather a very tiny one. But with drops you can fill the sea Very Happy
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: How to commit on svn ?
Next Topic: FileSel change
Goto Forum:
  


Current Time: Thu May 16 08:16:47 CEST 2024

Total time taken to generate the page: 0.02123 seconds