V8 Project
v8::internal::compiler::StaticParameterTraits< double > Struct Reference

#include <operator.h>

+ Collaboration diagram for v8::internal::compiler::StaticParameterTraits< double >:

Static Public Member Functions

static OStreamPrintTo (OStream &os, double val)
 
static int HashCode (double a)
 
static bool Equals (double a, double b)
 

Detailed Description

Definition at line 157 of file operator.h.

Member Function Documentation

◆ Equals()

static bool v8::internal::compiler::StaticParameterTraits< double >::Equals ( double  a,
double  b 
)
inlinestatic

Definition at line 164 of file operator.h.

164  {
165  return bit_cast<int64_t>(a) == bit_cast<int64_t>(b);
166  }

◆ HashCode()

static int v8::internal::compiler::StaticParameterTraits< double >::HashCode ( double  a)
inlinestatic

Definition at line 161 of file operator.h.

161  {
162  return static_cast<int>(bit_cast<int64_t>(a));
163  }

◆ PrintTo()

static OStream& v8::internal::compiler::StaticParameterTraits< double >::PrintTo ( OStream os,
double  val 
)
inlinestatic

Definition at line 158 of file operator.h.

158  { // NOLINT
159  return os << val;
160  }

The documentation for this struct was generated from the following file: