summaryrefslogtreecommitdiffstats
path: root/common.mk
diff options
context:
space:
mode:
authorTed M Lin <tedmlin@gmail.com>2020-02-06 20:53:43 -0500
committerGitHub <noreply@github.com>2020-02-07 12:53:43 +1100
commitd84eb14b3a8516c2a16b69d09dc31e3a9f21122b (patch)
tree1b931c131e0a297aa13733b900c9b933954e0260 /common.mk
parentfe814be287bc0591df87549ea6233eae2177e062 (diff)
Use function for KEYCODE2 routines instead of macro. (#8101)
* Option to use function for KEYCODE2 routines. Convert the KEYCODE2SYSTEM and KEYCODE2CONSUMER macros to functions, defaulting to using the macros. The function form allows the compiler to optimize the switch statement itself, over the macro nested ternaries. To enable this feature, #define USE_KEYCODE2_FUNCTION. Testing against a random selection of avr-based keyboards, this increased available flash by ~500 bytes. For arm-based keyboards, the available flash increased by ~400 bytes. * Replace macro with function entirely. As zvecr states, go bold and just commit to using the function instead of the macro. * Reformat whitespace now that functional review is done Verified against clang-format output.
Diffstat (limited to 'common.mk')
0 files changed, 0 insertions, 0 deletions