From b179f8e1a49138c4a0e13d4a861a3f670c975386 Mon Sep 17 00:00:00 2001 From: Benoit Jacob Date: Mon, 12 Jan 2009 22:39:26 +0000 Subject: [PATCH] add NetBSD to the list of OSes on which malloc is guaranteed to be 16 byte aligned, after discussion with Mark Davies. CCMAIL: mark@ecs.vuw.ac.nz --- Eigen/src/Core/util/Memory.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Eigen/src/Core/util/Memory.h b/Eigen/src/Core/util/Memory.h index 67a023bb0..ae529797c 100644 --- a/Eigen/src/Core/util/Memory.h +++ b/Eigen/src/Core/util/Memory.h @@ -27,7 +27,8 @@ #ifndef EIGEN_MEMORY_H #define EIGEN_MEMORY_H -#if defined(__APPLE__) || defined(__FreeBSD__) || defined(_WIN64) +// for NetBSD I didn't see any clear statement in the docs, but Mark Davies is confident about this. +#if defined(__APPLE__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(_WIN64) #define EIGEN_MALLOC_ALREADY_ALIGNED 1 #else #define EIGEN_MALLOC_ALREADY_ALIGNED 0