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
utils.c
Package: SHINE.rar [view]
Upload User: shenggui01
Upload Date: 2022-01-16
Package Size: 54k
Code Size: 1k
Category:
mpeg mp3
Development Platform:
C/C++
- /* utils.c
- *
- * 32 bit fractional multiplication. Requires 64 bit integer support.
- */
- /* Fractional multiply. */
- long mul(long x, long y)
- {
- return (long)(((long long)x * (long long)y) >> 32);
- }
- /* Left justified fractional multiply. */
- long muls(long x, long y)
- {
- return (long)(((long long)x * (long long)y) >> 31);
- }
- /* Fractional multiply with rounding. */
- long mulr(long x, long y)
- {
- return (long)((((long long)x * (long long)y) + 0x80000000) >> 32);
- }
- /* Left justified fractional multiply with rounding. */
- long mulsr(long x, long y)
- {
- return (long)((((long long)x * (long long)y) + 0x40000000) >> 31);
- }