Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
fsqrt.c
Package: linux-2.4.20.tar.gz [view]
Upload User: jlfgdled
Upload Date: 2013-04-10
Package Size: 33168k
Code Size: 1k
Category:
Linux-Unix program
Development Platform:
Unix_Linux
- /*
- * BK Id: SCCS/s.fsqrt.c 1.6 05/17/01 18:14:22 cort
- */
- #include <linux/types.h>
- #include <linux/errno.h>
- #include <asm/uaccess.h>
- #include "soft-fp.h"
- #include "double.h"
- int
- fsqrt(void *frD, void *frB)
- {
- FP_DECL_D(B);
- FP_DECL_D(R);
- int ret = 0;
- #ifdef DEBUG
- printk("%s: %p %p %p %pn", __FUNCTION__, frD, frB);
- #endif
- __FP_UNPACK_D(B, frB);
- #ifdef DEBUG
- printk("B: %ld %lu %lu %ld (%ld)n", B_s, B_f1, B_f0, B_e, B_c);
- #endif
- if (B_s && B_c != FP_CLS_ZERO)
- ret |= EFLAG_VXSQRT;
- if (B_c == FP_CLS_NAN)
- ret |= EFLAG_VXSNAN;
- FP_SQRT_D(R, B);
- #ifdef DEBUG
- printk("R: %ld %lu %lu %ld (%ld)n", R_s, R_f1, R_f0, R_e, R_c);
- #endif
- return (ret | __FP_PACK_D(frD, R));
- }