I have found a solution - I'm not sure if this is the right one! Link the driver with libcntpr.lib. I say I'm not sure because there's no documentation from Microsoft about thislibrary, but a few posts on different newsgroups seem to indicate that it's okay to use this library in a kernel mode driver, and of course a numberof sample drivers in the DDK seem to use it! Can anybody throw some more light on this? Thanks. Devendra. At 12:57 PM 10/23/2002, Devendra Parakh wrote: Another related question: When using floating point in the driver, the compiler generates calls to the floating point library! There're references to fltused (I think I can get rid of that by defining my own fltused!), and __ftol. Why does the compiler need to call ftol - can it not use the FPU to do this? The line that seems to cause this call is: *((int *)&data) = (int)fData; where fData is a float. Please note that the following line does not require ftol, why? *((int *)&data) = (int)(float)1.0; Is there a compiler define? Or will I have to roll my own ftol! Any help would be greatly appreciated! Thanks. Devendra. At 05:48 PM 10/22/2002, Noel Cross wrote: Check out the DDK article:=20 http://msdn.microsoft.com/library/default.asp?url=3D/library/en[1] -us/kmarch[1]= / hh/kmarch/k105_91de.asp Regards, Noel Cross Development Lead, Audio/Video Devices Group This posting is provided "AS IS" with no warranties, and confers no rights. -----Original Message----- From: Devendra Parakh [mailto:parakh@xxxxxxxxxxxxxxxxxxxx]=20[2[2]] Sent: Tuesday, October 22, 2002 2:16 PM To: wdmaudiodev@xxxxxxxxxxxxx Subject: [wdmaudiodev] Floating Point in the Kernel Hi, What are the restrictions for using floating point in the kernel? All I need to do is convert between 32bit ints and 32bit floats. I think I can use FLOATOBJ, but I was hoping for a better alternative. The driver will only run under Windows XP, so ME/9x is not really a concern for me. Thanks. Devendra. Devendra Parakh Singing Electrons, Inc. http://www.singingelectrons.com[1[3[3]]] 425-889-2478=20 --- Links --- 1 http://www.singingelectrons.com/[4[4]] ****************** WDMAUDIODEV addresses: Post message: mailto:wdmaudiodev@xxxxxxxxxxxxx[5[5]] Subscribe: = mailto:wdmaudiodev-request@xxxxxxxxxxxxx?subject=3Dsubscribe[6[6]] Unsubscribe: mailto:wdmaudiodev-request@xxxxxxxxxxxxx?subject=3Dunsubscribe[7[7]] Moderator: mailto:wdmaudiodev-moderators@xxxxxxxxxxxxx[8[8]] URL to WDMAUDIODEV page: http://www.wdmaudiodev.de/[9[9]] ****************** WDMAUDIODEV addresses: Post message: mailto:wdmaudiodev@xxxxxxxxxxxxx[10[10]] Subscribe: mailto:wdmaudiodev-request@xxxxxxxxxxxxx?subject=subscribe[11[11]] Unsubscribe: mailto:wdmaudiodev-request@xxxxxxxxxxxxx?subject=unsubscribe[12[12]] Moderator: mailto:wdmaudiodev-moderators@xxxxxxxxxxxxx[13[13]] URL to WDMAUDIODEV page: http://www.wdmaudiodev.de/[14[14]] Devendra Parakh Singing Electrons, Inc. http://www.singingelectrons.com[15[15]] 425-889-2478 --- Links --- 1 http://msdn.microsoft.com/library/default.asp?url=3D/library/en-us/kmarch[16] 2 mailto:parakh@xxxxxxxxxxxxxxxxxxxx%5D=20[17] 3 http://www.singingelectrons.com[1/[18] 4 http://www.singingelectrons.com/[19] 5 mailto:wdmaudiodev@xxxxxxxxxxxxx[20] 6 mailto:wdmaudiodev-request@xxxxxxxxxxxxx%3Fsubject=3Dsubscribe[21] 7 mailto:wdmaudiodev-request@xxxxxxxxxxxxx%3Fsubject=3Dunsubscribe[22] 8 mailto:wdmaudiodev-moderators@xxxxxxxxxxxxx[23] 9 http://www.wdmaudiodev.de/[24] 10 mailto:wdmaudiodev@xxxxxxxxxxxxx[25] 11 mailto:wdmaudiodev-request@xxxxxxxxxxxxx%3Fsubject=subscribe[26] 12 mailto:wdmaudiodev-request@xxxxxxxxxxxxx%3Fsubject=unsubscribe[27] 13 mailto:wdmaudiodev-moderators@xxxxxxxxxxxxx[28] 14 http://www.wdmaudiodev.de/[29] 15 http://www.singingelectrons.com/[30] ****************** WDMAUDIODEV addresses: Post message: mailto:wdmaudiodev@xxxxxxxxxxxxx[31] Subscribe: mailto:wdmaudiodev-request@xxxxxxxxxxxxx?subject=subscribe[32] Unsubscribe: mailto:wdmaudiodev-request@xxxxxxxxxxxxx?subject=unsubscribe[33] Moderator: mailto:wdmaudiodev-moderators@xxxxxxxxxxxxx[34] URL to WDMAUDIODEV page: http://www.wdmaudiodev.de/[35] Devendra Parakh Singing Electrons, Inc. http://www.singingelectrons.com[36] 425-889-2478 --- Links --- 1 http://msdn.microsoft.com/library/default.asp?url=3D/library/en 2 mailto:parakh@xxxxxxxxxxxxxxxxxxxx%5D=20%5B2 3 http://www.singingelectrons.com[1[3/ 4 http://www.singingelectrons.com/%5B4 5 mailto:wdmaudiodev@xxxxxxxxxxxxx%5B5 6 mailto:wdmaudiodev-request@xxxxxxxxxxxxx%3Fsubject=3Dsubscribe%5B6 7 mailto:wdmaudiodev-request@xxxxxxxxxxxxx%3Fsubject=3Dunsubscribe%5B7 8 mailto:wdmaudiodev-moderators@xxxxxxxxxxxxx%5B8 9 http://www.wdmaudiodev.de/%5B9 10 mailto:wdmaudiodev@xxxxxxxxxxxxx%5B10 11 mailto:wdmaudiodev-request@xxxxxxxxxxxxx%3Fsubject=subscribe%5B11 12 mailto:wdmaudiodev-request@xxxxxxxxxxxxx%3Fsubject=unsubscribe%5B12 13 mailto:wdmaudiodev-moderators@xxxxxxxxxxxxx%5B13 14 http://www.wdmaudiodev.de/%5B14 15 http://www.singingelectrons.com[15/ 16 http://msdn.microsoft.com/library/default.asp?url=3D/library/en-us/kmarch 17 mailto:parakh@xxxxxxxxxxxxxxxxxxxx%5D=20 18 http://www.singingelectrons.com[1/ 19 http://www.singingelectrons.com/ 20 mailto:wdmaudiodev@xxxxxxxxxxxxx 21 mailto:wdmaudiodev-request@xxxxxxxxxxxxx%3Fsubject=3Dsubscribe 22 mailto:wdmaudiodev-request@xxxxxxxxxxxxx%3Fsubject=3Dunsubscribe 23 mailto:wdmaudiodev-moderators@xxxxxxxxxxxxx 24 http://www.wdmaudiodev.de/ 25 mailto:wdmaudiodev@xxxxxxxxxxxxx 26 mailto:wdmaudiodev-request@xxxxxxxxxxxxx%3Fsubject=subscribe 27 mailto:wdmaudiodev-request@xxxxxxxxxxxxx%3Fsubject=unsubscribe 28 mailto:wdmaudiodev-moderators@xxxxxxxxxxxxx 29 http://www.wdmaudiodev.de/ 30 http://www.singingelectrons.com/ 31 mailto:wdmaudiodev@xxxxxxxxxxxxx 32 mailto:wdmaudiodev-request@xxxxxxxxxxxxx%3Fsubject=subscribe 33 mailto:wdmaudiodev-request@xxxxxxxxxxxxx%3Fsubject=unsubscribe 34 mailto:wdmaudiodev-moderators@xxxxxxxxxxxxx 35 http://www.wdmaudiodev.de/ 36 http://www.singingelectrons.com/ ****************** WDMAUDIODEV addresses: Post message: mailto:wdmaudiodev@xxxxxxxxxxxxx Subscribe: mailto:wdmaudiodev-request@xxxxxxxxxxxxx?subject=subscribe Unsubscribe: mailto:wdmaudiodev-request@xxxxxxxxxxxxx?subject=unsubscribe Moderator: mailto:wdmaudiodev-moderators@xxxxxxxxxxxxx URL to WDMAUDIODEV page: http://www.wdmaudiodev.de/