Tech Support > Microsoft Windows > Drivers > floating point math
floating point math
Posted by mingzi on May 27th, 2004


Hello

I have to use floating point math(like floor, pow in std C lib math.h) in my device driver. But I heard Win NT kernel mode driver does not support floating point math

Does anyone know how to implement floating point calculations

Thank you very much for the help

Posted by Maxim S. Shatskih on May 27th, 2004


You must surround your calculations with KeSave/RestoreFloatingPointState.

--
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
maxim@storagecraft.com
http://www.storagecraft.com


"mingzi" <dkongmike@yahoo.com> wrote in message
news:A1CB401E-9207-4839-B5F6-2EA12F82D7F0@microsoft.com...
point math.



Similar Posts