v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
math_constants.h
Go to the documentation of this file.
1
// Copyright 2017 The Chromium Authors
2
// Use of this source code is governed by a BSD-style license that can be
3
// found in the LICENSE file.
4
5
// Slightly adapted for inclusion in V8.
6
// Copyright 2025 the V8 project authors. All rights reserved.
7
8
#ifndef V8_BASE_NUMERICS_MATH_CONSTANTS_H_
9
#define V8_BASE_NUMERICS_MATH_CONSTANTS_H_
10
11
namespace
v8::base
{
12
// The mean acceleration due to gravity on Earth in m/s^2.
13
constexpr
double
kMeanGravityDouble
= 9.80665;
14
constexpr
float
kMeanGravityFloat
= 9.80665f;
15
16
}
// namespace v8::base
17
18
#endif
// V8_BASE_NUMERICS_MATH_CONSTANTS_H_
v8::base
Definition
scopes.h:26
v8::base::kMeanGravityFloat
constexpr float kMeanGravityFloat
Definition
math_constants.h:14
v8::base::kMeanGravityDouble
constexpr double kMeanGravityDouble
Definition
math_constants.h:13
src
base
numerics
math_constants.h
Generated on Sun Apr 6 2025 21:08:50 for v8 by
1.12.0