• Dick Hollenbeck's avatar
    I was disappointed when I disassembled the code using the KiROUND() inline function · e3b6385c
    Dick Hollenbeck authored
    solution to see that it was not pre-computing constants when used in static initializers.
    
    So we have two use cases, and need two solutions to be optimal, since the compiler 
    is too stupid to do the right thing.
    
    I think we need something else for compile time computable constants, to be optimal 
    in both use cases.  There is quite a bit of code savings by using a macro for that 
    situation from my testing.  To fully capitalize on this, we need to go back and make 
    Mm2mils() and what not macros also, or have MACRO versions of them too.
    e3b6385c
Name
Last commit
Last update
3d-viewer Loading commit data...
CMakeModules Loading commit data...
Documentation Loading commit data...
bitmap2component Loading commit data...
bitmaps_png Loading commit data...
common Loading commit data...
cvpcb Loading commit data...
demos Loading commit data...
eeschema Loading commit data...
gerbview Loading commit data...
helpers/tools_to_build_newstroke-font Loading commit data...
include Loading commit data...
kicad Loading commit data...
new Loading commit data...
packaging Loading commit data...
pcb_calculator Loading commit data...
pcbnew Loading commit data...
polygon Loading commit data...
potrace Loading commit data...
resources Loading commit data...
scripts Loading commit data...
template Loading commit data...
tools Loading commit data...
.bzrignore Loading commit data...
AUTHORS.txt Loading commit data...
CHANGELOG.txt Loading commit data...
CMakeLists.txt Loading commit data...
COPYRIGHT.txt Loading commit data...
CTestConfig.cmake Loading commit data...
Doxyfile Loading commit data...
HOW_TO_CONTRIBUTE.txt Loading commit data...
INSTALL.txt Loading commit data...
README.txt Loading commit data...
TODO.txt Loading commit data...
copyright.h Loading commit data...
license_for_documentation.txt Loading commit data...
notes_about_pcbnew_new_file_format.odt Loading commit data...
uncrustify.cfg Loading commit data...
version.txt Loading commit data...