chromium/v8/third_party/v8/codegen/fp16-inl.h

// Copyright (c) 2017 Facebook Inc.
// Copyright (c) 2017 Georgia Institute of Technology
// Copyright 2019 Google LLC
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef THIRD_PARTY_V8_CODEGEN_FP16_INL_H_
#define THIRD_PARTY_V8_CODEGEN_FP16_INL_H_

#include "src/codegen/code-stub-assembler-inl.h"
#include "src/codegen/code-stub-assembler.h"
#include "src/codegen/tnode.h"

// The following code-stub-assembler implementation corresponds with
// third_party/fp16/includes/fp16.h to use software-implemented
// floating point conversion between float16 and float32.

namespace v8 {
namespace internal {

#include "src/codegen/define-code-stub-assembler-macros.inc"

// fp16_ieee_to_fp32_value()
TNode<Float32T> CodeStubAssembler::ChangeFloat16ToFloat32(
    TNode<Float16T> value) {}

// fp16_ieee_from_fp32_value()
TNode<Float16T> CodeStubAssembler::TruncateFloat32ToFloat16(
    TNode<Float32T> value) {}

#include "src/codegen/undef-code-stub-assembler-macros.inc"

}  // namespace internal
}  // namespace v8

#endif  // THIRD_PARTY_V8_CODEGEN_FP16_INL_H_