chromium/third_party/libvpx/source/libvpx/vpx_mem/vpx_mem.c

/*
 *  Copyright (c) 2010 The WebM project authors. All Rights Reserved.
 *
 *  Use of this source code is governed by a BSD-style license
 *  that can be found in the LICENSE file in the root of the source
 *  tree. An additional intellectual property rights grant can be found
 *  in the file PATENTS.  All contributing project authors may
 *  be found in the AUTHORS file in the root of the source tree.
 */

#include "vpx_mem.h"
#include <limits.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "include/vpx_mem_intrnl.h"
#include "vpx/vpx_integer.h"

#if !defined(VPX_MAX_ALLOCABLE_MEMORY)
#if SIZE_MAX > (1ULL << 40)
#define VPX_MAX_ALLOCABLE_MEMORY
#else
// For 32-bit targets keep this below INT_MAX to avoid valgrind warnings.
#define VPX_MAX_ALLOCABLE_MEMORY
#endif
#endif

// Returns 0 in case of overflow of nmemb * size.
static int check_size_argument_overflow(uint64_t nmemb, uint64_t size) {}

static size_t *get_malloc_address_location(void *const mem) {}

static uint64_t get_aligned_malloc_size(size_t size, size_t align) {}

static void set_actual_malloc_address(void *const mem,
                                      const void *const malloc_addr) {}

static void *get_actual_malloc_address(void *const mem) {}

void *vpx_memalign(size_t align, size_t size) {}

void *vpx_malloc(size_t size) {}

void *vpx_calloc(size_t num, size_t size) {}

void vpx_free(void *memblk) {}