// Copyright 2023 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include <cmath> #include <cstdint> #include <limits> namespace cbor { // This is adapted from the example in RFC8949 appendix D. double DecodeHalfPrecisionFloat(uint16_t value) { … } uint16_t EncodeHalfPrecisionFloat(double input) { … } } // namespace cbor