ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

fmodf.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 doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.