v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
ieee754.h
Go to the documentation of this file.
1
// Copyright 2011 the V8 project authors. All rights reserved.
2
// Use of this source code is governed by a BSD-style license that can be
3
// found in the LICENSE file.
4
5
#ifndef V8_NUMBERS_IEEE754_H_
6
#define V8_NUMBERS_IEEE754_H_
7
8
#include "
src/base/macros.h
"
9
namespace
v8::internal::math
{
10
11
// Returns |x| to the power of |y|.
12
// The result of base ** exponent when base is 1 or -1 and exponent is
13
// +Infinity or -Infinity differs from IEEE 754-2008. The first edition
14
// of ECMAScript specified a result of NaN for this operation, whereas
15
// later versions of IEEE 754-2008 specified 1. The historical ECMAScript
16
// behaviour is preserved for compatibility reasons.
17
V8_EXPORT_PRIVATE
double
pow
(
double
x
,
double
y
);
18
19
}
// namespace v8::internal::math
20
21
#endif
// V8_NUMBERS_IEEE754_H_
x
int x
Definition
liveedit-diff.cc:60
v8::internal::math
Definition
ieee754.cc:12
v8::internal::math::pow
double pow(double x, double y)
Definition
ieee754.cc:14
v8::internal::y
double y
Definition
external-reference.cc:1650
macros.h
V8_EXPORT_PRIVATE
#define V8_EXPORT_PRIVATE
Definition
macros.h:460
src
numbers
ieee754.h
Generated on Sun Apr 6 2025 21:08:50 for v8 by
1.12.0