On Sat, Mar 17, 2001 at 11:43:15PM +0530, Chandrashekhar S wrote: > Hi, > > My name is chandra. I have a problem in calculation of exponential and > power functions inside the kernel, because #include<math.h> is not > supported in kernel space, so I cannot use the standard built in library > functions pow() and exp(). So can you people help in how to overcome this > problem. Please send a source code to calculate exponential and power, so > that I can use it in kernel land. > > Also what about floating point calculations, How to overcome this in > kernel??? Sigh... This is supposed to be a FAQ ... "Thou shalt NOT use floating point in the kernel!" Generally speaking, doing your math in floating-point is for cases where you really need it, and fixed point, or integer approximations are not good enough. > Also qsort is not supported in kernel, Is there any method to sort > integers in kernel??? Kernel is not userspace with standard libc available to it. Now, what exactly are you aiming at ? > Regards, > Chandra /Matti Aarnio - : send the line "unsubscribe linux-net" in the body of a message to majordomo@vger.kernel.org