I searched a lot of other questions inside StackOverflow, but none of them really solved my problem.
I am writing a linux kernel module and I need to compute a percentage value by diving an integer number by another integer number in order to get a float value ranging between 0 and 100:
int v1 = 5;
int v2 = 25;
float perc = v1 / v2;
For all the reasons we already know, when I try to compile it I get the "SSE register return with SSE disabled" error.
Is there a workaround to compute such division inside a Linux Kernel Module?
Thank you so much. Antonio