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 #29847 is a reply to message #29820] Mon, 22 November 2010 09:09 Go to previous messageGo to previous message
mr_ped is currently offline  mr_ped
Messages: 825
Registered: November 2005
Location: Czech Republic - Praha
Experienced Contributor
inline int roundeven(int val)	{return ((1+val)&(~1);}
//for completeness also rounding to odd numbers:
inline int roundodd(int val)	{return val|1;}


golfing, aren't we? Smile
 
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: Fri Nov 01 00:13:05 CET 2024

Total time taken to generate the page: 0.01399 seconds