math: move x87-family lrint functions to C with inline asm