Home | Info | Community | Development | myReactOS | Contact Us
ReactOS Development > Doxygenfmodf.c
Go to the documentation of this file.
00001 00006 /* 00007 * Written by J.T. Conklin <jtc@netbsd.org>. 00008 * Public domain. 00009 * 00010 * Adapted for float type by Danny Smith 00011 * <dannysmith@users.sourceforge.net>. 00012 */ 00013 00014 #include <math.h> 00015 00016 float 00017 fmodf (float x, float y) 00018 { 00019 float res = 0.0F; 00020 00021 asm ("1:\tfprem\n\t" 00022 "fstsw %%ax\n\t" 00023 "sahf\n\t" 00024 "jp 1b\n\t" 00025 "fstp %%st(1)" 00026 : "=t" (res) : "0" (x), "u" (y) : "ax", "st(1)"); 00027 return res; 00028 } Generated on Sun May 27 2012 04:36:28 for ReactOS by
1.7.6.1
|