Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
jackieooh
· 3y ago · 0 comments
Problem is that some registers have non-zero default values (swd debug pin functions for example) so the set() function would still need to do a read modify write operation which isn't the theoretically optimal code gen.
Comments
[–]
yakubin
3y ago
Then it’s a question of annotating this function with ALWAYS_INLINE and letting the compiler optimise it.