by mhh__ · 7y ago · 0 comments
This requires good planning of the game, i.e. this reduces inlining so one needs to be careful with putting the important bits in the JITted code
It might work in theory, but it increases the cost of testing too much for it to be worth it.
I saw it the other day and was amazed I hadn't seen it before.
FreeBSD kernel uses ifuncs for SMAP, XSAVE, ERMS (Enhanced REP MOVSB/STOSB), RDSEED.
Edit: I checked and they're not ifuncs