diff options
author | 2018-08-12 18:46:50 -0400 | |
---|---|---|
committer | 2018-08-12 18:46:50 -0400 | |
commit | 73e0b2a25d1766debe4f603dd13a732de2f1993d (patch) | |
tree | d574ed4dee9ba3bc9ec195f6cb31b1c567226d83 /cortex-m-rt/examples/main.rs | |
parent | 743b8fc282f16ab54ff9ff2540f8db337f3562ad (diff) | |
download | cortex-m-73e0b2a25d1766debe4f603dd13a732de2f1993d.tar.gz cortex-m-73e0b2a25d1766debe4f603dd13a732de2f1993d.tar.zst cortex-m-73e0b2a25d1766debe4f603dd13a732de2f1993d.zip |
Change pre-init to use an empty function that is overwridden instead of a sentinel
Using a sentinel creates a conditional branch that cannot be optimized out
whereas an empty default function keeps the codepath linear and can be optimized
out in the best case.
Signed-off-by: Gabriel Smith <ga29smith@gmail.com>
Diffstat (limited to 'cortex-m-rt/examples/main.rs')
0 files changed, 0 insertions, 0 deletions