Can likely/unlikely macros be used in user-space code?

Viewed 13972

I came across these 2 macros in Linux kernel code. I know they are instructions to compiler (gcc) for optimizations in case of branching. My question is, can we use these macros in user space code? Will it give any optimization? Any example will be very helpful.

3 Answers
Related