Move function nan_value to POSIX platform file
Strictly speaking NAN from math.h is not in a POSIX standard but in C99. However it seems that all our POSIX platforms have it. Review URL: http://codereview.chromium.org/464015 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@3405 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
parent
14066c0e0e
commit
2cfb4941a1
@ -89,11 +89,6 @@ uint64_t OS::CpuFeaturesImpliedByPlatform() {
|
||||
}
|
||||
|
||||
|
||||
double OS::nan_value() {
|
||||
return NAN;
|
||||
}
|
||||
|
||||
|
||||
int OS::ActivationFrameAlignment() {
|
||||
// 16 byte alignment on FreeBSD
|
||||
return 16;
|
||||
|
@ -95,11 +95,6 @@ uint64_t OS::CpuFeaturesImpliedByPlatform() {
|
||||
}
|
||||
|
||||
|
||||
double OS::nan_value() {
|
||||
return NAN;
|
||||
}
|
||||
|
||||
|
||||
#ifdef __arm__
|
||||
bool OS::ArmCpuHasFeature(CpuFeature feature) {
|
||||
const char* search_string = NULL;
|
||||
|
@ -252,11 +252,6 @@ uint64_t OS::CpuFeaturesImpliedByPlatform() {
|
||||
}
|
||||
|
||||
|
||||
double OS::nan_value() {
|
||||
return NAN;
|
||||
}
|
||||
|
||||
|
||||
int OS::ActivationFrameAlignment() {
|
||||
// OS X activation frames must be 16 byte-aligned; see "Mac OS X ABI
|
||||
// Function Call Guide".
|
||||
|
@ -88,11 +88,6 @@ uint64_t OS::CpuFeaturesImpliedByPlatform() {
|
||||
}
|
||||
|
||||
|
||||
double OS::nan_value() {
|
||||
return NAN;
|
||||
}
|
||||
|
||||
|
||||
int OS::ActivationFrameAlignment() {
|
||||
// 16 byte alignment on OpenBSD
|
||||
return 16;
|
||||
|
@ -61,6 +61,13 @@ double modulo(double x, double y) {
|
||||
return fmod(x, y);
|
||||
}
|
||||
|
||||
|
||||
double OS::nan_value() {
|
||||
// NAN from math.h is defined in C99 and not in POSIX.
|
||||
return NAN;
|
||||
}
|
||||
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// POSIX date/time support.
|
||||
//
|
||||
|
Loading…
Reference in New Issue
Block a user