Commit c45f6b37 authored by Martin Storsjö's avatar Martin Storsjö

Remove leading double underscores from include guard defines

A symbol starting with two leading underscores is reserved for
the compiler/standard library implementation.

Also remove the trailing two double underscores for consistency
and symmetry.
parent 53025a2b
......@@ -25,8 +25,8 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef __DAV1D_COMMON_ATTRIBUTES_H__
#define __DAV1D_COMMON_ATTRIBUTES_H__
#ifndef DAV1D_COMMON_ATTRIBUTES_H
#define DAV1D_COMMON_ATTRIBUTES_H
#include "config.h"
......@@ -139,4 +139,4 @@ static inline int clzll(const unsigned long long mask) {
}
#endif /* !_MSC_VER */
#endif /* __DAV1D_COMMON_ATTRIBUTES_H__ */
#endif /* DAV1D_COMMON_ATTRIBUTES_H */
......@@ -25,8 +25,8 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef __DAV1D_COMMON_BITDEPTH_H__
#define __DAV1D_COMMON_BITDEPTH_H__
#ifndef DAV1D_COMMON_BITDEPTH_H
#define DAV1D_COMMON_BITDEPTH_H
#include <stdint.h>
#include <string.h>
......@@ -77,4 +77,4 @@ static inline void pixel_set(pixel *const dst, const int val, const int num) {
name##_8bpc(__VA_ARGS__); \
name##_16bpc(__VA_ARGS__)
#endif /* __DAV1D_COMMON_BITDEPTH_H__ */
#endif /* DAV1D_COMMON_BITDEPTH_H */
......@@ -25,8 +25,8 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef __DAV1D_COMMON_DUMP_H__
#define __DAV1D_COMMON_DUMP_H__
#ifndef DAV1D_COMMON_DUMP_H
#define DAV1D_COMMON_DUMP_H
#include <stddef.h>
#include <stdint.h>
......@@ -83,4 +83,4 @@ static inline void ac_dump(const int16_t *buf, int w, int h, const char *what)
}
}
#endif /* __DAV1D_COMMON_DUMP_H__ */
#endif /* DAV1D_COMMON_DUMP_H */
......@@ -25,8 +25,8 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef __DAV1D_COMMON_INTOPS_H__
#define __DAV1D_COMMON_INTOPS_H__
#ifndef DAV1D_COMMON_INTOPS_H
#define DAV1D_COMMON_INTOPS_H
#include <stdint.h>
......@@ -73,4 +73,4 @@ static inline unsigned inv_recenter(const unsigned r, const unsigned v) {
return r - ((v + 1) >> 1);
}
#endif /* __DAV1D_COMMON_INTOPS_H__ */
#endif /* DAV1D_COMMON_INTOPS_H */
......@@ -25,8 +25,8 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef __DAV1D_COMMON_MEM_H__
#define __DAV1D_COMMON_MEM_H__
#ifndef DAV1D_COMMON_MEM_H
#define DAV1D_COMMON_MEM_H
#include <assert.h>
#include <stdlib.h>
......@@ -80,4 +80,4 @@ static inline void freep(void *ptr) {
}
}
#endif /* __DAV1D_COMMON_MEM_H__ */
#endif /* DAV1D_COMMON_MEM_H */
......@@ -25,8 +25,8 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef __DAV1D_COMMON_VALIDATE_H__
#define __DAV1D_COMMON_VALIDATE_H__
#ifndef DAV1D_COMMON_VALIDATE_H
#define DAV1D_COMMON_VALIDATE_H
#include <stdio.h>
#include <stdlib.h>
......@@ -56,4 +56,4 @@
#define validate_input(x) validate_input_or_ret(x, )
#endif /* __DAV1D_COMMON_VALIDATE_H__ */
#endif /* DAV1D_COMMON_VALIDATE_H */
......@@ -25,8 +25,8 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef __DAV1D_COMMON_H__
#define __DAV1D_COMMON_H__
#ifndef DAV1D_COMMON_H
#define DAV1D_COMMON_H
#include <stddef.h>
#include <stdint.h>
......@@ -67,4 +67,4 @@ typedef struct Dav1dDataProps {
struct Dav1dUserData user_data; ///< user-configurable data, default NULL members
} Dav1dDataProps;
#endif /* __DAV1D_COMMON_H__ */
#endif /* DAV1D_COMMON_H */
......@@ -25,8 +25,8 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef __DAV1D_DATA_H__
#define __DAV1D_DATA_H__
#ifndef DAV1D_DATA_H
#define DAV1D_DATA_H
#include <stddef.h>
#include <stdint.h>
......@@ -106,4 +106,4 @@ DAV1D_API int dav1d_data_wrap_user_data(Dav1dData *data,
*/
DAV1D_API void dav1d_data_unref(Dav1dData *data);
#endif /* __DAV1D_DATA_H__ */
#endif /* DAV1D_DATA_H */
......@@ -25,8 +25,8 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef __DAV1D_H__
#define __DAV1D_H__
#ifndef DAV1D_H
#define DAV1D_H
#ifdef __cplusplus
extern "C" {
......@@ -201,4 +201,4 @@ DAV1D_API void dav1d_flush(Dav1dContext *c);
}
# endif
#endif /* __DAV1D_H__ */
#endif /* DAV1D_H */
......@@ -25,8 +25,8 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef __DAV1D_HEADERS_H__
#define __DAV1D_HEADERS_H__
#ifndef DAV1D_HEADERS_H
#define DAV1D_HEADERS_H
// Constants from Section 3. "Symbols and abbreviated terms"
#define DAV1D_MAX_CDEF_STRENGTHS 8
......@@ -382,4 +382,4 @@ typedef struct Dav1dFrameHeader {
Dav1dWarpedMotionParams gmv[DAV1D_REFS_PER_FRAME];
} Dav1dFrameHeader;
#endif /* __DAV1D_HEADERS_H__ */
#endif /* DAV1D_HEADERS_H */
......@@ -25,8 +25,8 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef __DAV1D_PICTURE_H__
#define __DAV1D_PICTURE_H__
#ifndef DAV1D_PICTURE_H
#define DAV1D_PICTURE_H
#include <stddef.h>
#include <stdint.h>
......@@ -108,4 +108,4 @@ typedef struct Dav1dPicAllocator {
*/
DAV1D_API void dav1d_picture_unref(Dav1dPicture *p);
#endif /* __DAV1D_PICTURE_H__ */
#endif /* DAV1D_PICTURE_H */
......@@ -26,8 +26,8 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*****************************************************************************/
#ifndef __DAVID_SRC_ARM_32_UTIL_S__
#define __DAVID_SRC_ARM_32_UTIL_S__
#ifndef DAVID_SRC_ARM_32_UTIL_S
#define DAVID_SRC_ARM_32_UTIL_S
#include "config.h"
#include "src/arm/asm.S"
......@@ -63,4 +63,4 @@
#endif
.endm
#endif /* __DAVID_SRC_ARM_32_UTIL_S__ */
#endif /* DAVID_SRC_ARM_32_UTIL_S */
......@@ -26,8 +26,8 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*****************************************************************************/
#ifndef __DAVID_SRC_ARM_64_UTIL_S__
#define __DAVID_SRC_ARM_64_UTIL_S__
#ifndef DAVID_SRC_ARM_64_UTIL_S
#define DAVID_SRC_ARM_64_UTIL_S
#include "config.h"
#include "src/arm/asm.S"
......@@ -59,4 +59,4 @@
#endif
.endm
#endif /* __DAVID_SRC_ARM_64_UTIL_S__ */
#endif /* DAVID_SRC_ARM_64_UTIL_S */
......@@ -25,8 +25,8 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef __DAV1D_SRC_ARM_ASM_S__
#define __DAV1D_SRC_ARM_ASM_S__
#ifndef DAV1D_SRC_ARM_ASM_S
#define DAV1D_SRC_ARM_ASM_S
#include "config.h"
......@@ -134,4 +134,4 @@ EXTERN\name:
#define X(x) CONCAT(EXTERN, x)
#endif /* __DAV1D_SRC_ARM_ASM_S__ */
#endif /* DAV1D_SRC_ARM_ASM_S */
......@@ -25,8 +25,8 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef __DAV1D_SRC_ARM_CPU_H__
#define __DAV1D_SRC_ARM_CPU_H__
#ifndef DAV1D_SRC_ARM_CPU_H
#define DAV1D_SRC_ARM_CPU_H
enum CpuFlags {
DAV1D_ARM_CPU_FLAG_NEON = 1 << 0,
......@@ -34,4 +34,4 @@ enum CpuFlags {
unsigned dav1d_get_cpu_flags_arm(void);
#endif /* __DAV1D_SRC_ARM_CPU_H__ */
#endif /* DAV1D_SRC_ARM_CPU_H */
......@@ -25,8 +25,8 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef __DAV1D_SRC_CDEF_H__
#define __DAV1D_SRC_CDEF_H__
#ifndef DAV1D_SRC_CDEF_H
#define DAV1D_SRC_CDEF_H
#include <stddef.h>
#include <stdint.h>
......@@ -69,4 +69,4 @@ bitfn_decls(void dav1d_cdef_dsp_init, Dav1dCdefDSPContext *c);
bitfn_decls(void dav1d_cdef_dsp_init_arm, Dav1dCdefDSPContext *c);
bitfn_decls(void dav1d_cdef_dsp_init_x86, Dav1dCdefDSPContext *c);
#endif /* __DAV1D_SRC_CDEF_H__ */
#endif /* DAV1D_SRC_CDEF_H */
......@@ -25,8 +25,8 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef __DAV1D_SRC_CDEF_APPLY_H__
#define __DAV1D_SRC_CDEF_APPLY_H__
#ifndef DAV1D_SRC_CDEF_APPLY_H
#define DAV1D_SRC_CDEF_APPLY_H
#include "common/bitdepth.h"
......@@ -35,4 +35,4 @@
void bytefn(dav1d_cdef_brow)(Dav1dFrameContext *f, pixel *const p[3],
const Av1Filter *lflvl, int by_start, int by_end);
#endif /* __DAV1D_SRC_CDEF_APPLY_H__ */
#endif /* DAV1D_SRC_CDEF_APPLY_H */
......@@ -25,8 +25,8 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef __DAV1D_SRC_CDF_H__
#define __DAV1D_SRC_CDF_H__
#ifndef DAV1D_SRC_CDF_H
#define DAV1D_SRC_CDF_H
#include <stdint.h>
......@@ -148,4 +148,4 @@ void dav1d_cdf_thread_update(const Dav1dFrameHeader *hdr, CdfContext *dst,
void dav1d_cdf_thread_wait(CdfThreadContext *cdf);
void dav1d_cdf_thread_signal(CdfThreadContext *cdf);
#endif /* __DAV1D_SRC_CDF_H__ */
#endif /* DAV1D_SRC_CDF_H */
......@@ -25,8 +25,8 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef __DAV1D_SRC_CPU_H__
#define __DAV1D_SRC_CPU_H__
#ifndef DAV1D_SRC_CPU_H
#define DAV1D_SRC_CPU_H
#include "config.h"
......@@ -41,4 +41,4 @@
unsigned dav1d_get_cpu_flags(void);
DAV1D_API void dav1d_set_cpu_flags_mask(const unsigned mask);
#endif /* __DAV1D_SRC_CPU_H__ */
#endif /* DAV1D_SRC_CPU_H */
......@@ -25,8 +25,8 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef __DAV1D_SRC_CTX_H__
#define __DAV1D_SRC_CTX_H__
#ifndef DAV1D_SRC_CTX_H
#define DAV1D_SRC_CTX_H
#include <stdint.h>
......@@ -88,4 +88,4 @@ union alias8 { uint8_t u8; } ATTR_ALIAS;
default: default_memset(dir, diridx, off, var); break; \
}
#endif /* __DAV1D_SRC_CTX_H__ */
#endif /* DAV1D_SRC_CTX_H */
......@@ -25,8 +25,8 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef __DAV1D_SRC_DATA_H__
#define __DAV1D_SRC_DATA_H__
#ifndef DAV1D_SRC_DATA_H
#define DAV1D_SRC_DATA_H
#include "dav1d/data.h"
......@@ -57,4 +57,4 @@ int dav1d_data_wrap_user_data_internal(Dav1dData *buf,
void *cookie);
void dav1d_data_unref_internal(Dav1dData *buf);
#endif /* __DAV1D_SRC_DATA_H__ */
#endif /* DAV1D_SRC_DATA_H */
......@@ -25,11 +25,11 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef __DAV1D_SRC_DECODE_H__
#define __DAV1D_SRC_DECODE_H__
#ifndef DAV1D_SRC_DECODE_H
#define DAV1D_SRC_DECODE_H
#include "src/internal.h"
int dav1d_submit_frame(Dav1dContext *c);
#endif /* __DAV1D_SRC_DECODE_H__ */
#endif /* DAV1D_SRC_DECODE_H */
......@@ -25,8 +25,8 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef __DAV1D_SRC_DEQUANT_TABLES_H__
#define __DAV1D_SRC_DEQUANT_TABLES_H__
#ifndef DAV1D_SRC_DEQUANT_TABLES_H
#define DAV1D_SRC_DEQUANT_TABLES_H
#include <stdint.h>
......@@ -34,4 +34,4 @@
extern const uint16_t dav1d_dq_tbl[][QINDEX_RANGE][2];
#endif /* __DAV1D_SRC_DEQUANT_TABLES_H__ */
#endif /* DAV1D_SRC_DEQUANT_TABLES_H */
......@@ -25,8 +25,8 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef __DAV1D_SRC_ENV_H__
#define __DAV1D_SRC_ENV_H__
#ifndef DAV1D_SRC_ENV_H
#define DAV1D_SRC_ENV_H
#include <assert.h>
#include <stddef.h>
......@@ -754,4 +754,4 @@ static inline mv get_gmv_2d(const Dav1dWarpedMotionParams *const gmv,
}
}
#endif /* __DAV1D_SRC_ENV_H__ */
#endif /* DAV1D_SRC_ENV_H */
......@@ -25,12 +25,12 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef __DAV1D_SRC_FILM_GRAIN_H__
#define __DAV1D_SRC_FILM_GRAIN_H__
#ifndef DAV1D_SRC_FILM_GRAIN_H
#define DAV1D_SRC_FILM_GRAIN_H
#include "dav1d/dav1d.h"
bitfn_decls(void dav1d_apply_grain, Dav1dPicture *const out,
const Dav1dPicture *const in);
#endif /* __DAV1D_SRC_FILM_GRAIN_H__ */
#endif /* DAV1D_SRC_FILM_GRAIN_H */
......@@ -25,8 +25,8 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef __DAV1D_SRC_GETBITS_H__
#define __DAV1D_SRC_GETBITS_H__
#ifndef DAV1D_SRC_GETBITS_H
#define DAV1D_SRC_GETBITS_H
#include <stddef.h>
#include <stdint.h>
......@@ -55,4 +55,4 @@ static inline unsigned dav1d_get_bits_pos(const GetBits *c) {
return (unsigned) (c->ptr - c->ptr_start) * 8 - c->bits_left;
}
#endif /* __DAV1D_SRC_GETBITS_H__ */
#endif /* DAV1D_SRC_GETBITS_H */
......@@ -25,8 +25,8 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef __DAV1D_SRC_INTERNAL_H__
#define __DAV1D_SRC_INTERNAL_H__
#ifndef DAV1D_SRC_INTERNAL_H
#define DAV1D_SRC_INTERNAL_H
#include <stdatomic.h>
......@@ -301,4 +301,4 @@ struct Dav1dTileContext {
} tile_thread;
};
#endif /* __DAV1D_SRC_INTERNAL_H__ */
#endif /* DAV1D_SRC_INTERNAL_H */
......@@ -25,8 +25,8 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef __DAV1D_SRC_INTRA_EDGE_H__
#define __DAV1D_SRC_INTRA_EDGE_H__
#ifndef DAV1D_SRC_INTRA_EDGE_H
#define DAV1D_SRC_INTRA_EDGE_H
enum EdgeFlags {
EDGE_I444_TOP_HAS_RIGHT = 1 << 0,
......@@ -54,4 +54,4 @@ typedef struct EdgeBranch {
void dav1d_init_mode_tree(EdgeNode *const root, EdgeTip *const nt,
const int allow_sb128);
#endif /* __DAV1D_SRC_INTRA_EDGE_H__ */
#endif /* DAV1D_SRC_INTRA_EDGE_H */
......@@ -25,8 +25,8 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef __DAV1D_SRC_IPRED_H__
#define __DAV1D_SRC_IPRED_H__
#ifndef DAV1D_SRC_IPRED_H
#define DAV1D_SRC_IPRED_H
#include <stddef.h>
......@@ -91,4 +91,4 @@ typedef struct Dav1dIntraPredDSPContext {
bitfn_decls(void dav1d_intra_pred_dsp_init, Dav1dIntraPredDSPContext *c);
bitfn_decls(void dav1d_intra_pred_dsp_init_x86, Dav1dIntraPredDSPContext *c);
#endif /* __DAV1D_SRC_IPRED_H__ */
#endif /* DAV1D_SRC_IPRED_H */
......@@ -25,8 +25,8 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef __DAV1D_SRC_IPRED_PREPARE_H__
#define __DAV1D_SRC_IPRED_PREPARE_H__
#ifndef DAV1D_SRC_IPRED_PREPARE_H
#define DAV1D_SRC_IPRED_PREPARE_H
#include <stddef.h>
#include <stdint.h>
......@@ -105,4 +105,4 @@ static inline int sm_uv_flag(const BlockContext *const b, const int idx) {
m == SMOOTH_V_PRED) ? ANGLE_SMOOTH_EDGE_FLAG : 0;
}
#endif /* __DAV1D_SRC_IPRED_PREPARE_H__ */
#endif /* DAV1D_SRC_IPRED_PREPARE_H */
......@@ -25,8 +25,8 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef __DAV1D_SRC_ITX_H__
#define __DAV1D_SRC_ITX_H__
#ifndef DAV1D_SRC_ITX_H
#define DAV1D_SRC_ITX_H
#include <stddef.h>
......@@ -46,4 +46,4 @@ typedef struct Dav1dInvTxfmDSPContext {
bitfn_decls(void dav1d_itx_dsp_init, Dav1dInvTxfmDSPContext *c);
bitfn_decls(void dav1d_itx_dsp_init_x86, Dav1dInvTxfmDSPContext *c);
#endif /* __DAV1D_SRC_ITX_H__ */
#endif /* DAV1D_SRC_ITX_H */
......@@ -25,8 +25,8 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef __DAV1D_SRC_LEVELS_H__
#define __DAV1D_SRC_LEVELS_H__
#ifndef DAV1D_SRC_LEVELS_H
#define DAV1D_SRC_LEVELS_H
#include <stdint.h>
......@@ -281,4 +281,4 @@ typedef struct Av1Block {
};
} Av1Block;
#endif /* __DAV1D_SRC_LEVELS_H__ */
#endif /* DAV1D_SRC_LEVELS_H */
......@@ -25,8 +25,8 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef __DAV1D_SRC_LF_APPLY_H__
#define __DAV1D_SRC_LF_APPLY_H__
#ifndef DAV1D_SRC_LF_APPLY_H
#define DAV1D_SRC_LF_APPLY_H
#include <stdint.h>
......@@ -39,4 +39,4 @@ void bytefn(dav1d_loopfilter_sbrow)(const Dav1dFrameContext *f,
pixel *const p[3], Av1Filter *lflvl,
int sby, int start_of_tile_row);
#endif /* __DAV1D_SRC_LF_APPLY_H__ */
#endif /* DAV1D_SRC_LF_APPLY_H */
......@@ -25,8 +25,8 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef __DAV1D_SRC_LF_MASK_H__
#define __DAV1D_SRC_LF_MASK_H__
#ifndef DAV1D_SRC_LF_MASK_H
#define DAV1D_SRC_LF_MASK_H
#include <stddef.h>
#include <stdint.h>
......@@ -82,4 +82,4 @@ void dav1d_calc_eih(Av1FilterLUT *lim_lut, int filter_sharpness);
void dav1d_calc_lf_values(uint8_t (*values)[4][8][2], const Dav1dFrameHeader *hdr,
const int8_t lf_delta[4]);
#endif /* __DAV1D_SRC_LF_MASK_H__ */
#endif /* DAV1D_SRC_LF_MASK_H */
......@@ -24,8 +24,8 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef __DAV1D_SRC_LOG_H__
#define __DAV1D_SRC_LOG_H__
#ifndef DAV1D_SRC_LOG_H
#define DAV1D_SRC_LOG_H
#include "config.h"
......@@ -44,4 +44,4 @@ void dav1d_log(Dav1dContext *c, const char *format, ...) ATTR_FORMAT_PRINTF(2, 3
#define dav1d_log(...) do { } while(0)
#endif
#endif /* __DAV1D_SRC_LOG_H__ */
#endif /* DAV1D_SRC_LOG_H */
......@@ -25,8 +25,8 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef __DAV1D_SRC_LOOPFILTER_H__
#define __DAV1D_SRC_LOOPFILTER_H__
#ifndef DAV1D_SRC_LOOPFILTER_H
#define DAV1D_SRC_LOOPFILTER_H
#include <stdint.h>
#include <stddef.h>
......@@ -55,4 +55,4 @@ typedef struct Dav1dLoopFilterDSPContext {
bitfn_decls(void dav1d_loop_filter_dsp_init, Dav1dLoopFilterDSPContext *c);
bitfn_decls(void dav1d_loop_filter_dsp_init_x86, Dav1dLoopFilterDSPContext *c);
#endif /* __DAV1D_SRC_LOOPFILTER_H__ */
#endif /* DAV1D_SRC_LOOPFILTER_H */
......@@ -25,8 +25,8 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef __DAV1D_SRC_LOOPRESTORATION_H__
#define __DAV1D_SRC_LOOPRESTORATION_H__
#ifndef DAV1D_SRC_LOOPRESTORATION_H
#define DAV1D_SRC_LOOPRESTORATION_H
#include <stdint.h>
#include <stddef.h>
......@@ -76,4 +76,4 @@ bitfn_decls(void dav1d_loop_restoration_dsp_init, Dav1dLoopRestorationDSPContext
bitfn_decls(void dav1d_loop_restoration_dsp_init_arm, Dav1dLoopRestorationDSPContext *c);
bitfn_decls(void dav1d_loop_restoration_dsp_init_x86, Dav1dLoopRestorationDSPContext *c);
#endif /* __DAV1D_SRC_LOOPRESTORATION_H__ */
#endif /* DAV1D_SRC_LOOPRESTORATION_H */
......@@ -25,8 +25,8 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef __DAV1D_SRC_LR_APPLY_H__
#define __DAV1D_SRC_LR_APPLY_H__
#ifndef DAV1D_SRC_LR_APPLY_H
#define DAV1D_SRC_LR_APPLY_H
#include <stdint.h>
#include <stddef.h>
......@@ -41,4 +41,4 @@ void bytefn(dav1d_lr_copy_lpf)(Dav1dFrameContext *const f,
void bytefn(dav1d_lr_sbrow)(Dav1dFrameContext *const f, pixel *const dst[3],
int sby);
#endif /* __DAV1D_SRC_LR_APPLY_H__ */
#endif /* DAV1D_SRC_LR_APPLY_H */
......@@ -25,8 +25,8 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef __DAV1D_SRC_MC_H__
#define __DAV1D_SRC_MC_H__
#ifndef DAV1D_SRC_MC_H
#define DAV1D_SRC_MC_H
#include <stdint.h>
#include <stddef.h>
......@@ -135,4 +135,4 @@ bitfn_decls(void dav1d_mc_dsp_init, Dav1dMCDSPContext *c);
bitfn_decls(void dav1d_mc_dsp_init_arm, Dav1dMCDSPContext *c);
bitfn_decls(void dav1d_mc_dsp_init_x86, Dav1dMCDSPContext *c);
#endif /* __DAV1D_SRC_MC_H__ */
#endif /* DAV1D_SRC_MC_H */
......@@ -25,8 +25,8 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef __DAV1D_SRC_MSAC_H__
#define __DAV1D_SRC_MSAC_H__
#ifndef DAV1D_SRC_MSAC_H
#define DAV1D_SRC_MSAC_H
#include <stdint.h>
#include <stdlib.h>
......@@ -55,4 +55,4 @@ unsigned msac_decode_bools(MsacContext *c, unsigned l);
int msac_decode_subexp(MsacContext *c, int ref, int n, unsigned k);
int msac_decode_uniform(MsacContext *c, unsigned n);
#endif /* __DAV1D_SRC_MSAC_H__ */
#endif /* DAV1D_SRC_MSAC_H */
......@@ -25,12 +25,12 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef __DAV1D_SRC_OBU_H__
#define __DAV1D_SRC_OBU_H__
#ifndef DAV1D_SRC_OBU_H
#define DAV1D_SRC_OBU_H
#include "dav1d/data.h"
#include "src/internal.h"
int dav1d_parse_obus(Dav1dContext *c, Dav1dData *in, int global);
#endif /* __DAV1D_SRC_OBU_H__ */
#endif /* DAV1D_SRC_OBU_H */
......@@ -25,8 +25,8 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef __DAV1D_SRC_PICTURE_H__
#define __DAV1D_SRC_PICTURE_H__
#ifndef DAV1D_SRC_PICTURE_H
#define DAV1D_SRC_PICTURE_H
#include <stdatomic.h>
......@@ -109,4 +109,4 @@ int default_picture_allocator(Dav1dPicture *, void *cookie);
void default_picture_release(Dav1dPicture *, void *cookie);
void dav1d_picture_unref_internal(Dav1dPicture *p);
#endif /* __DAV1D_SRC_PICTURE_H__ */
#endif /* DAV1D_SRC_PICTURE_H */
......@@ -25,8 +25,8 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef __DAV1D_SRC_QM_H__
#define __DAV1D_SRC_QM_H__
#ifndef DAV1D_SRC_QM_H
#define DAV1D_SRC_QM_H
#include "src/levels.h"
......@@ -34,4 +34,4 @@ extern const uint8_t *dav1d_qm_tbl[16][2][N_RECT_TX_SIZES];
void dav1d_init_qm_tables(void);
#endif /* __DAV1D_SRC_QM_H__ */
#endif /* DAV1D_SRC_QM_H */
......@@ -25,8 +25,8 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef __DAV1D_SRC_RECON_H__
#define __DAV1D_SRC_RECON_H__
#ifndef DAV1D_SRC_RECON_H
#define DAV1D_SRC_RECON_H
#include "src/internal.h"
#include "src/levels.h"
......@@ -72,4 +72,4 @@ decl_backup_ipred_edge_fn(dav1d_backup_ipred_edge_16bpc);
decl_read_coef_blocks_fn(dav1d_read_coef_blocks_8bpc);
decl_read_coef_blocks_fn(dav1d_read_coef_blocks_16bpc);
#endif /* __DAV1D_SRC_RECON_H__ */
#endif /* DAV1D_SRC_RECON_H */
......@@ -25,8 +25,8 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef __DAV1D_SRC_REF_H__
#define __DAV1D_SRC_REF_H__
#ifndef DAV1D_SRC_REF_H
#define DAV1D_SRC_REF_H
#include "dav1d/dav1d.h"
......@@ -50,4 +50,4 @@ void dav1d_ref_dec(Dav1dRef **ref);
int dav1d_ref_is_writable(Dav1dRef *ref);
#endif /* __DAV1D_SRC_REF_H__ */
#endif /* DAV1D_SRC_REF_H */
......@@ -9,8 +9,8 @@
* PATENTS file, you can obtain it at www.aomedia.org/license/patent.
*/
#ifndef __DAV1D_SRC_REF_MVS_H__
#define __DAV1D_SRC_REF_MVS_H__
#ifndef DAV1D_SRC_REF_MVS_H
#define DAV1D_SRC_REF_MVS_H