chromium/third_party/distributed_point_functions/code/dpf/internal/value_type_helpers.cc

// Copyright 2021 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//      http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

#include "dpf/internal/value_type_helpers.h"

#include <stdint.h>

#include <cmath>
#include <string>

#include "absl/numeric/int128.h"
#include "absl/status/status.h"
#include "absl/status/statusor.h"
#include "absl/strings/str_cat.h"
#include "dpf/distributed_point_function.pb.h"
#include "dpf/int_mod_n.h"
#include "dpf/status_macros.h"

namespace distributed_point_functions {
namespace dpf_internal {

absl::StatusOr<bool> ValueTypesAreEqual(const ValueType& lhs,
                                        const ValueType& rhs) {}

absl::StatusOr<int> BitsNeeded(const ValueType& value_type,
                               double security_parameter) {}

// Integer Helpers

Value::Integer Uint128ToValueInteger(absl::uint128 input) {}

absl::StatusOr<absl::uint128> ValueIntegerToUint128(const Value::Integer& in) {}

}  // namespace dpf_internal
}  // namespace distributed_point_functions