godot/thirdparty/graphite/src/inc/Compression.h

// SPDX-License-Identifier: MIT OR MPL-2.0 OR LGPL-2.1-or-later OR GPL-2.0-or-later
// Copyright 2015, SIL International, All rights reserved.


#pragma once

#include <cassert>
#include <cstddef>
#include <cstring>

namespace
{

#if defined(_MSC_VER)
typedef unsigned __int8 u8;
typedef unsigned __int16 u16;
typedef unsigned __int32 u32;
typedef unsigned __int64 u64;
#else
#include <stdint.h>
u8;
u16;
u32;
u64;
#endif

ptrdiff_t const     MINMATCH =,
                    LASTLITERALS =,
                    MINCODA  =,
                    MINSRCSIZE =;

template<int S>
inline
void unaligned_copy(void * d, void const * s) {}

inline
size_t align(size_t p) {}

inline
u8 * safe_copy(u8 * d, u8 const * s, size_t n) {}

inline
u8 * overrun_copy(u8 * d, u8 const * s, size_t n) {}


inline
u8 * fast_copy(u8 * d, u8 const * s, size_t n) {}


} // end of anonymous namespace