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"
9namespace 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.
17V8_EXPORT_PRIVATE double pow(double x, double y);
18
19} // namespace v8::internal::math
20
21#endif // V8_NUMBERS_IEEE754_H_
int x
double pow(double x, double y)
Definition ieee754.cc:14
#define V8_EXPORT_PRIVATE
Definition macros.h:460