DriveHQ Start Menu
Cloud Drive Mapping
Folder Sync
Cloud Backup
True Drop Box
FTP/SFTP Hosting
Group Account
DriveHQ Start Menu
Online File Server
My Storage
|
Manage Shares
|
Publishes
|
Drop Boxes
|
Group Account
WebDAV Drive Mapping
Cloud Drive Home
|
WebDAV Guide
|
Drive Mapping Tool
|
Drive Mapping URL
Complete Data Backup
Backup Guide
|
Online Backup Tool
|
Cloud-to-Cloud Backup
FTP, Email & Web Service
FTP Home
|
FTP Hosting FAQ
|
Email Hosting
|
EmailManager
|
Web Hosting
Help & Resources
About
|
Enterprise Service
|
Partnership
|
Comparisons
|
Support
Quick Links
Security and Privacy
Download Software
Service Manual
Use Cases
Group Account
Online Help
Blog
Contact
Cloud Surveillance
Sign Up
Login
Features
Business Features
Online File Server
FTP Hosting
Cloud Drive Mapping
Cloud File Backup
Email Backup & Hosting
Cloud File Sharing
Folder Synchronization
Group Management
True Drop Box
Full-text Search
AD Integration/SSO
Mobile Access
IP Camera & DVR Solution
More...
Personal Features
Personal Cloud Drive
Backup All Devices
Mobile APPs
Personal Web Hosting
Sub-Account (for Kids)
Home/PC/Kids Monitoring
More...
Software
DriveHQ Drive Mapping Tool
DriveHQ FileManager
DriveHQ Online Backup
DriveHQ Mobile Apps
Pricing
Business Plans & Pricing
Personal Plans & Pricing
Price Comparison with Others
Feature Comparison with Others
Install Mobile App
Sign up
Creating account...
Invalid character in username! Only 0-9, a-z, A-Z, _, -, . allowed.
Username is required!
Invalid email address!
E-mail is required!
Password is required!
Password is invalid!
Password and confirmation do not match.
Confirm password is required!
I accept
Membership Agreement
Please read the Membership Agreement and check "I accept"!
Free Quick Sign-up
Sign-up Page
Log in
Signing in...
Username or e-mail address is required!
Password is required!
Keep me logged in
Quick Login
Forgot Password
Up
Upload
Download
Share
Publish
New Folder
New File
Copy
Cut
Delete
Paste
Rate
Upgrade
Rotate
Effect
Edit
Slide
History
// Copyright 2005-2007 Daniel James. // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) #if !defined(BOOST_FUNCTIONAL_DETAIL_FLOAT_FUNCTIONS_HPP) #define BOOST_FUNCTIONAL_DETAIL_FLOAT_FUNCTIONS_HPP #include
#if defined(_MSC_VER) && (_MSC_VER >= 1020) # pragma once #endif // The C++ standard requires that the C float functions are overloarded // for float, double and long double in the std namespace, but some of the older // library implementations don't support this. On some that don't, the C99 // float functions (frexpf, frexpl, etc.) are available. // // Some of this is based on guess work. If I don't know any better I assume that // the standard C++ overloaded functions are available. If they're not then this // means that the argument is cast to a double and back, which is inefficient // and will give pretty bad results for long doubles - so if you know better // let me know. // STLport: #if defined(__SGI_STL_PORT) || defined(_STLPORT_VERSION) # if (defined(__GNUC__) && __GNUC__ < 3 && (defined(linux) || defined(__linux) || defined(__linux__))) || defined(__DMC__) # define BOOST_HASH_USE_C99_FLOAT_FUNCS # elif defined(BOOST_MSVC) && BOOST_MSVC < 1300 # define BOOST_HASH_USE_C99_FLOAT_FUNCS # else # define BOOST_HASH_USE_OVERLOAD_FLOAT_FUNCS # endif // Roguewave: // // On borland 5.51, with roguewave 2.1.1 the standard C++ overloads aren't // defined, but for the same version of roguewave on sunpro they are. #elif defined(_RWSTD_VER) # if defined(__BORLANDC__) # define BOOST_HASH_USE_C99_FLOAT_FUNCS # define BOOST_HASH_C99_NO_FLOAT_FUNCS # elif defined(__DECCXX) # define BOOST_HASH_USE_C99_FLOAT_FUNCS # else # define BOOST_HASH_USE_OVERLOAD_FLOAT_FUNCS # endif // libstdc++ (gcc 3.0 onwards, I think) #elif defined(__GLIBCPP__) || defined(__GLIBCXX__) # define BOOST_HASH_USE_OVERLOAD_FLOAT_FUNCS // SGI: #elif defined(__STL_CONFIG_H) # if defined(linux) || defined(__linux) || defined(__linux__) # define BOOST_HASH_USE_C99_FLOAT_FUNCS # else # define BOOST_HASH_USE_OVERLOAD_FLOAT_FUNCS # endif // Dinkumware. #elif (defined(_YVALS) && !defined(__IBMCPP__)) || defined(_CPPLIB_VER) // Overloaded float functions were probably introduced in an earlier version // than this. # if defined(_CPPLIB_VER) && (_CPPLIB_VER >= 402) # define BOOST_HASH_USE_OVERLOAD_FLOAT_FUNCS # else # define BOOST_HASH_USE_C99_FLOAT_FUNCS # endif // Digital Mars #elif defined(__DMC__) # define BOOST_HASH_USE_C99_FLOAT_FUNCS // Use overloaded float functions by default. #else # define BOOST_HASH_USE_OVERLOAD_FLOAT_FUNCS #endif namespace boost { namespace hash_detail { inline float call_ldexp(float v, int exp) { using namespace std; #if defined(BOOST_HASH_USE_OVERLOAD_FLOAT_FUNCS) || \ defined(BOOST_HASH_C99_NO_FLOAT_FUNCS) return ldexp(v, exp); #else return ldexpf(v, exp); #endif } inline double call_ldexp(double v, int exp) { using namespace std; return ldexp(v, exp); } inline long double call_ldexp(long double v, int exp) { using namespace std; #if defined(BOOST_HASH_USE_OVERLOAD_FLOAT_FUNCS) return ldexp(v, exp); #else return ldexpl(v, exp); #endif } inline float call_frexp(float v, int* exp) { using namespace std; #if defined(BOOST_HASH_USE_OVERLOAD_FLOAT_FUNCS) || \ defined(BOOST_HASH_C99_NO_FLOAT_FUNCS) return frexp(v, exp); #else return frexpf(v, exp); #endif } inline double call_frexp(double v, int* exp) { using namespace std; return frexp(v, exp); } inline long double call_frexp(long double v, int* exp) { using namespace std; #if defined(BOOST_HASH_USE_OVERLOAD_FLOAT_FUNCS) return frexp(v, exp); #else return frexpl(v, exp); #endif } } } #if defined(BOOST_HASH_USE_C99_FLOAT_FUNCS) #undef BOOST_HASH_USE_C99_FLOAT_FUNCS #endif #if defined(BOOST_HASH_USE_OVERLOAD_FLOAT_FUNCS) #undef BOOST_HASH_USE_OVERLOAD_FLOAT_FUNCS #endif #if defined(BOOST_HASH_C99_NO_FLOAT_FUNCS) #undef BOOST_HASH_C99_NO_FLOAT_FUNCS #endif #endif
float_functions.hpp
Page URL
File URL
Prev
2/3
Next
Download
( 4 KB )
Note: The DriveHQ service banners will NOT be displayed if the file owner is a paid member.
Comments
Total ratings:
0
Average rating:
Not Rated
Would you like to comment?
Join DriveHQ
for a free account, or
Logon
if you are already a member.