Hi all,

Sometimes in geeqie code I find things like this:
In pan-util.c ; pan_calendar_computer function

dt -= 60 * 60 * 24;

That could be substituted by a constant ( 86400).
I suppose that's left that way to help programmers to understand the code.
But it implies CPU time to do the calculation.
Maybe compiler when reaches that line, automatically do the calculating, so
in execution time that instruction is always processed as dt -= 86400. I
don't know.

Should I leave that way, or now that I'm 'doxygenating' some code, could I
substitute it for dt -= 86400 /** 60 * 60 * 24 */  ?
------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Geeqie-devel mailing list
Geeqie-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geeqie-devel

Reply via email to