V8 Project
platform-solaris.cc File Reference
#include <dlfcn.h>
#include <errno.h>
#include <ieeefp.h>
#include <pthread.h>
#include <semaphore.h>
#include <signal.h>
#include <sys/mman.h>
#include <sys/regset.h>
#include <sys/stack.h>
#include <sys/time.h>
#include <time.h>
#include <ucontext.h>
#include <unistd.h>
#include <cmath>
#include "src/base/macros.h"
#include "src/base/platform/platform.h"
+ Include dependency graph for platform-solaris.cc:

Go to the source code of this file.

Classes

class  v8::base::PosixMemoryMappedFile
 

Namespaces

 v8
 Debugger support for the V8 JavaScript engine.
 
 v8::base
 

Functions

int std::signbit (double x)
 

Variables

static const int v8::base::kMmapFd = -1
 
static const int v8::base::kMmapFdOffset = 0
 

Function Documentation

◆ signbit()

int std::signbit ( double  x)

Definition at line 40 of file platform-solaris.cc.

40  {
41  // We need to take care of the special case of both positive and negative
42  // versions of zero.
43  if (x == 0) {
44  return fpclass(x) & FP_NZERO;
45  } else {
46  // This won't detect negative NaN but that should be okay since we don't
47  // assume that behavior.
48  return x < 0;
49  }
50 }

References std::signbit().

Referenced by std::fpclassify(), and std::signbit().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: