// Copyright 2024 The PDFium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CORE_FXCRT_NUMERICS_SAFE_CONVERSIONS_IMPL_H_ #define CORE_FXCRT_NUMERICS_SAFE_CONVERSIONS_IMPL_H_ #include <stdint.h> #include <limits> #include <type_traits> #if defined(__GNUC__) || defined(__clang__) #define BASE_NUMERICS_LIKELY(x) … #define BASE_NUMERICS_UNLIKELY(x) … #else #define BASE_NUMERICS_LIKELY … #define BASE_NUMERICS_UNLIKELY … #endif namespace pdfium { internal // namespace internal } // namespace pdfium #endif // CORE_FXCRT_NUMERICS_SAFE_CONVERSIONS_IMPL_H_