U++ framework
Do not panic. Ask here before giving up.

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: 740
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: Mon Jul 06 01:58:22 GMT+2 2026

Total time taken to generate the page: 0.00482 seconds