site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com User-agent: Thunderbird 1.5 (Macintosh/20051201) I am building one kernel extension for my device and I need do some float point arithmetic. The problem is, In my code, I have added header file #include <math.h> Cheers, Graham. [*]TS 1000, transatlantic brethren (and sistren) -- Graham Lee UNIX Systems Manager, Oxford Physics Practical Course http://users.ox.ac.uk/~wadh1342 _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... On 7/3/06 05:53, wlq wrote: And I have called some float point function pow(float, float), acos(float) etc. Actually, pow() and acos() take double arguments, though there are float equivalents. How precise and over how much of a range do you need your results? You could get away with fixed-point arithmetic or a lookup table in some circumstances (though don't wire down a 250MB lookup table; I'm speaking as a Spectrum[*] programmer :-). You don't need even 'float'-level precision for some tasks. This email sent to site_archiver@lists.apple.com