Sha256: c466291c6e7d230e8b76b725cdad1ed82c249bf01f5ec3bcb6f3f6501ed0ff97

Contents?: true

Size: 900 Bytes

Versions: 40

Compression:

Stored size: 900 Bytes

Contents

// This file is part of Eigen, a lightweight C++ template library
// for linear algebra.
//
// This Source Code Form is subject to the terms of the Mozilla
// Public License v. 2.0. If a copy of the MPL was not distributed
// with this file, You can obtain one at http://mozilla.org/MPL/2.0/.

#ifndef EIGEN_QTMALLOC_MODULE_H
#define EIGEN_QTMALLOC_MODULE_H

#include "Core"

#if (!EIGEN_MALLOC_ALREADY_ALIGNED)

#include "src/Core/util/DisableStupidWarnings.h"

void *qMalloc(std::size_t size)
{
  return Eigen::internal::aligned_malloc(size);
}

void qFree(void *ptr)
{
  Eigen::internal::aligned_free(ptr);
}

void *qRealloc(void *ptr, std::size_t size)
{
  void* newPtr = Eigen::internal::aligned_malloc(size);
  std::memcpy(newPtr, ptr, size);
  Eigen::internal::aligned_free(ptr);
  return newPtr;
}

#include "src/Core/util/ReenableStupidWarnings.h"

#endif

#endif // EIGEN_QTMALLOC_MODULE_H

Version data entries

40 entries across 40 versions & 2 rubygems

Version Path
tomoto-0.5.1-x86_64-linux vendor/eigen/Eigen/QtAlignedMalloc
tomoto-0.5.1-x86_64-darwin vendor/eigen/Eigen/QtAlignedMalloc
tomoto-0.5.1-arm64-darwin vendor/eigen/Eigen/QtAlignedMalloc
tomoto-0.5.1-aarch64-linux vendor/eigen/Eigen/QtAlignedMalloc
tomoto-0.5.1 vendor/eigen/Eigen/QtAlignedMalloc
tomoto-0.5.0-x86_64-linux vendor/eigen/Eigen/QtAlignedMalloc
tomoto-0.5.0-x86_64-darwin vendor/eigen/Eigen/QtAlignedMalloc
tomoto-0.5.0-arm64-darwin vendor/eigen/Eigen/QtAlignedMalloc
tomoto-0.5.0-aarch64-linux vendor/eigen/Eigen/QtAlignedMalloc
tomoto-0.5.0 vendor/eigen/Eigen/QtAlignedMalloc
tomoto-0.4.1-x86_64-linux vendor/eigen/Eigen/QtAlignedMalloc
tomoto-0.4.1-x86_64-darwin vendor/eigen/Eigen/QtAlignedMalloc
tomoto-0.4.1-arm64-darwin vendor/eigen/Eigen/QtAlignedMalloc
tomoto-0.4.1-aarch64-linux vendor/eigen/Eigen/QtAlignedMalloc
tomoto-0.4.1 vendor/eigen/Eigen/QtAlignedMalloc
umappp-0.2.0 vendor/Eigen/QtAlignedMalloc
tomoto-0.4.0-x86_64-linux vendor/eigen/Eigen/QtAlignedMalloc
tomoto-0.4.0-x86_64-darwin vendor/eigen/Eigen/QtAlignedMalloc
tomoto-0.4.0-arm64-darwin vendor/eigen/Eigen/QtAlignedMalloc
tomoto-0.4.0-aarch64-linux vendor/eigen/Eigen/QtAlignedMalloc