https://www.betaarchive.com/wiki/index.php?title=Microsoft_KB_Archive/38831&feed=atom&action=history
Microsoft KB Archive/38831 - Revision history
2024-03-28T22:42:19Z
Revision history for this page on the wiki
MediaWiki 1.39.3
https://www.betaarchive.com/wiki/index.php?title=Microsoft_KB_Archive/38831&diff=183830&oldid=prev
3155ffGd: importing KB archive
2020-07-18T16:55:58Z
<p>importing KB archive</p>
<p><b>New page</b></p><div>{|<br />
|width="100%"|<br />
== INF: DB-LIB and Floating Point ==<br />
|}<br />
<br />
Q38831<br />
<br />
<br />
-----<br />
<br />
The information in this article applies to:<br /><br />
<br />
<br />
* Microsoft SQL Server Programmer's Toolkit, version 4.2<br />
<br />
<br />
-----<br />
<br />
<br /><br />
<br />
<br />
== SUMMARY ==<br />
<br />
This article explains how you can control whether or not DB-Library (DB-Lib) uses a coprocessor for floating-point operations.<br />
<br />
<br /><br />
<br />
<br />
== MORE INFORMATION ==<br />
<br />
DB-Lib uses floating point only if conversion or display of FLOAT data is requested. No other SQL Server data type requires floating point.<br /><br />
<br /><br />
The DLL version of DB-Lib was compiled with /FPa and linked with the alternate floating-point library. It will never use the coprocessor, even if one is present and is totally independent of the floating-point compile and link requirements of the applications that call it.<br /><br />
<br /><br />
The static-link version of DB-Lib was compiled with /FPi, which generates coprocessor floating-point instructions. This is why you will see 8087 instructions in DB-Lib code. Whether or not a coprocessor is required is determined at link time. If the application is linked with the coprocessor floating-point library (xLIBC7.LIB), DB-LIB will require a coprocessor. If the application is linked with the emulator floating-point library (xLIBCE.LIB), the coprocessor will be used if it is present. The C startup code detects whether a coprocessor is not present and sets up a handler to trap 8087 instructions and emulate them. The automatic selection of a coprocessor at run time may be overridden with the NO87 environment variable. Please refer to pages 508-512 Microsoft C/C++ &quot;Environment and Tools&quot; manual for more information on controlling floating-point options.<br />
<br />
Additional query words: dblib Windows NT<br />
<br />
Keywords : kbprogramming<br /><br />
Issue type :<br /><br />
Technology : kbSQLServSearch kbAudDeveloper kbSQLServPTK420<br />
<br />
{|<br />
|width="100%"| <br /><br />
Last Reviewed: March 24, 1999<br /><br />
<span>© 2001 Microsoft Corporation. All rights reserved. Terms of Use.</span><br /><br />
|}</div>
3155ffGd