Author: tkreuzer
Date: Tue Oct 2 21:43:47 2012
New Revision: 57460
URL:
http://svn.reactos.org/svn/reactos?rev=57460&view=rev
Log:
[LIBCNTPR] Add atan2
[WIN32K] Remove duplicated floating point math functions
[CPORTLIB] Fix an MSVC warning
Removed:
trunk/reactos/win32ss/user/ntuser/misc/i386/
Modified:
trunk/reactos/lib/cportlib/cport.c
trunk/reactos/lib/sdk/crt/libcntpr.cmake
trunk/reactos/win32ss/CMakeLists.txt
Modified: trunk/reactos/lib/cportlib/cport.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/cportlib/cport.c?rev=5…
==============================================================================
--- trunk/reactos/lib/cportlib/cport.c [iso-8859-1] (original)
+++ trunk/reactos/lib/cportlib/cport.c [iso-8859-1] Tue Oct 2 21:43:47 2012
@@ -23,7 +23,7 @@
- Make this serial-port specific (NS16550 vs other serial port types)
- Get x64 KDCOM, KDBG, FREELDR, and other current code to use this
*/
-
+
/* INCLUDES *******************************************************************/
#include <cportlib/cportlib.h>
@@ -76,18 +76,18 @@
/*
* See "Building Hardware and Firmware to Complement Microsoft Windows Headless
Operation"
* Out-of-Band Management Port Device Requirements:
- * The device must act as a 16550 or 16450 UART.
+ * The device must act as a 16550 or 16450 UART.
* Windows Server 2003 will test this device using the following process.
* 1. Save off the current modem status register.
* 2. Place the UART into diagnostic mode (The UART is placed into loopback mode
* by writing SERIAL_MCR_LOOP to the modem control register).
* 3. The modem status register is read and the high bits are checked. This means
- * SERIAL_MSR_CTS, SERIAL_MSR_DSR, SERIAL_MSR_RI and SERIAL_MSR_DCD should
+ * SERIAL_MSR_CTS, SERIAL_MSR_DSR, SERIAL_MSR_RI and SERIAL_MSR_DCD should
* all be clear.
* 4. Place the UART in diagnostic mode and turn on OUTPUT (Loopback Mode and
* OUTPUT are both turned on by writing (SERIAL_MCR_LOOP | SERIAL_MCR_OUT1)
* to the modem control register).
- * 5. The modem status register is read and the ring indicator is checked.
+ * 5. The modem status register is read and the ring indicator is checked.
* This means SERIAL_MSR_RI should be set.
* 6. Restore original modem status register.
*/
@@ -144,7 +144,7 @@
WRITE_PORT_UCHAR(Port->Address + LINE_CONTROL_REGISTER, Lcr | SERIAL_LCR_DLAB);
/* Set baud rate */
- Mode = 115200 / Rate;
+ Mode = (USHORT)(115200 / Rate);
WRITE_PORT_UCHAR(Port->Address + DIVISOR_LATCH_MSB, (UCHAR)((Mode >> 8)
& 0xff));
WRITE_PORT_UCHAR(Port->Address + DIVISOR_LATCH_LSB, (UCHAR)(Mode & 0xff));
@@ -168,7 +168,7 @@
/* Handle early read-before-init */
if (!Port->Address) return CP_GET_NODATA;
-
+
/* If "wait" mode enabled, spin many times, otherwise attempt just once */
i = Wait ? 204800 : 1;
while (i--)
Modified: trunk/reactos/lib/sdk/crt/libcntpr.cmake
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/sdk/crt/libcntpr.cmake…
==============================================================================
--- trunk/reactos/lib/sdk/crt/libcntpr.cmake [iso-8859-1] (original)
+++ trunk/reactos/lib/sdk/crt/libcntpr.cmake [iso-8859-1] Tue Oct 2 21:43:47 2012
@@ -80,6 +80,7 @@
math/i386/allshl_asm.s
math/i386/allshr_asm.s
math/i386/atan_asm.s
+ math/i386/atan2_asm.s
math/i386/aulldiv_asm.s
math/i386/aulldvrm_asm.s
math/i386/aullrem_asm.s
Modified: trunk/reactos/win32ss/CMakeLists.txt
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/CMakeLists.txt?rev…
==============================================================================
--- trunk/reactos/win32ss/CMakeLists.txt [iso-8859-1] (original)
+++ trunk/reactos/win32ss/CMakeLists.txt [iso-8859-1] Tue Oct 2 21:43:47 2012
@@ -194,12 +194,7 @@
gdi/dib/i386/dib24bpp_hline.s
gdi/dib/i386/dib32bpp_hline.s
gdi/dib/i386/dib32bpp_colorfill.s
- gdi/eng/i386/floatobj.S
- user/ntuser/misc/i386/cos_asm.s
- user/ntuser/misc/i386/sin_asm.s
- user/ntuser/misc/i386/atan2_asm.s
- user/ntuser/misc/i386/floor_asm.s
- user/ntuser/misc/i386/ceil_asm.s)
+ gdi/eng/i386/floatobj.S)
else()
list(APPEND SOURCE
gdi/dib/dib24bppc.c