Skip to content

Commit 6196de8

Browse files
sygV8 LUCI CQ
authored andcommitted
[float16array] Add third_party/fp16
In prep for Float16Array implementation. Bug: v8:14012 Change-Id: I19cc596140e69d6eb95ed420f8e84364ea52149f Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/5137430 Commit-Queue: Shu-yu Guo <syg@chromium.org> Reviewed-by: Michael Achenbach <machenbach@chromium.org> Reviewed-by: Adam Klein <adamk@chromium.org> Cr-Commit-Position: refs/heads/main@{#91615}
1 parent 3254838 commit 6196de8

6 files changed

Lines changed: 51 additions & 0 deletions

File tree

BUILD.gn

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4686,6 +4686,7 @@ v8_header_set("v8_internal_headers") {
46864686
":v8_headers",
46874687
":v8_maybe_icu",
46884688
":v8_shared_internal_headers",
4689+
"//third_party/fp16",
46894690
]
46904691

46914692
deps = [

DEPS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,8 @@ deps = {
240240
},
241241
'third_party/depot_tools':
242242
Var('chromium_url') + '/chromium/tools/depot_tools.git' + '@' + '390005586bde14be9b55fde71ca4ae2107021ac9',
243+
'third_party/fp16/src':
244+
Var('chromium_url') + '/external/github.com/Maratyszcza/FP16.git' + '@' + '0a92994d729ff76a58f692d3028ca1b64b145d91',
243245
'third_party/fuchsia-gn-sdk': {
244246
'url': Var('chromium_url') + '/chromium/src/third_party/fuchsia-gn-sdk.git' + '@' + '6ad82eadcb1a4404964a8d86c544fda1dab7af94',
245247
'condition': 'checkout_fuchsia',

third_party/fp16/BUILD.gn

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Copyright 2020 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+
config("fp16_config") {
6+
include_dirs = [ "src/include" ]
7+
}
8+
9+
source_set("fp16") {
10+
public = [ "src/include/fp16.h" ]
11+
12+
configs -= [ "//build/config/compiler:chromium_code" ]
13+
configs += [ "//build/config/compiler:no_chromium_code" ]
14+
15+
public_configs = [ ":fp16_config" ]
16+
}

third_party/fp16/LICENSE

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2017 Facebook Inc.
4+
Copyright (c) 2017 Georgia Institute of Technology
5+
Copyright 2019 Google LLC
6+
7+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
8+
9+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
10+
11+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
12+

third_party/fp16/OWNERS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
file:../../COMMON_OWNERS
2+
file:../../INFRA_OWNERS

third_party/fp16/README.v8

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
Name: FP16
2+
Short Name: fp16
3+
URL: https://github.com/Maratyszcza/FP16
4+
Version: 0a92994d729ff76a58f692d3028ca1b64b145d91
5+
Date: 2022/10/24
6+
License: MIT
7+
License File: LICENSE
8+
Security Critical: Yes
9+
Shipped: yes
10+
11+
Description:
12+
Header-only library for conversion to/from half-precision floating point formats
13+
14+
This copy should be synced with chromium's copy in chromium/src/third_party/fp16
15+
16+
Local Modifications:
17+
- Included only the header files in the `include` directory in `src/`.
18+
- Extracted LICENSE file separately.

0 commit comments

Comments
 (0)