Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> Lunatik does not support floating-point arithmetic

Assuming there is one, what's the technical reason for this?



> Kernel code is normally prohibited from using floating-point (FP) registers or instructions, including the C float and double data types. This rule reduces system call overhead, because the kernel does not need to save and restore the userspace floating-point register state.

> However, occasionally drivers or library functions may need to include FP code. This is supported by isolating the functions containing FP code to a separate translation unit (a separate source file), and saving/restoring the FP register state around calls to those functions. This creates “critical sections” of floating-point usage.

https://www.kernel.org/doc/html/next/core-api/floating-point...




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: