-
-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
Looking at the output of cargo asm on my application I can see function calls being generated from the nonzero macro

We could possibly add an #[inline(always)] but I dont think that will necessarily be enough, there might be more logic included.
To ensure it is actually zero cost we will need to make the macro generate code within a const context via rust-lang/rust#76001 once that is stabilized.
dzmitry-lahoda
Metadata
Metadata
Assignees
Labels
No labels