Home | Info | Community | Development | myReactOS | Contact Us
ReactOS Development > Doxygenlogb.c
Go to the documentation of this file.
00001 /* Math functions for i387. 00002 Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc. 00003 This file is part of the GNU C Library. 00004 Contributed by John C. Bowman <bowman@ipp-garching.mpg.de>, 1995. 00005 00006 The GNU C Library is free software; you can redistribute it and/or 00007 modify it under the terms of the GNU Lesser General Public 00008 License as published by the Free Software Foundation; either 00009 version 2.1 of the License, or (at your option) any later version. 00010 00011 The GNU C Library is distributed in the hope that it will be useful, 00012 but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00014 Lesser General Public License for more details. 00015 00016 You should have received a copy of the GNU Lesser General Public 00017 License along with the GNU C Library; if not, write to the Free 00018 Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 00019 Boston, MA 02110-1301, USA. 00020 */ 00021 00022 #include <precomp.h> 00023 00024 double _logb (double __x) 00025 { 00026 register double __val; 00027 #ifdef __GNUC__ 00028 register double __junk; 00029 __asm __volatile__ 00030 ("fxtract\n\t" 00031 : "=t" (__junk), "=u" (__val) : "0" (__x)); 00032 #else 00033 #pragma message ("REVIEW ME") 00034 __asm fld [__x]; 00035 __asm fxtract; 00036 __asm fstp st(0); 00037 __asm fstp [__val]; 00038 #endif /*__GNUC__*/ 00039 return __val; 00040 } Generated on Fri May 25 2012 04:34:54 for ReactOS by
1.7.6.1
|