]>
Dogcows Code - chaz/yoink/blob - src/moof/cml/defaults.h
1 /* -*- C++ -*- ------------------------------------------------------------
3 Copyright (c) 2007 Jesse Anders and Demian Nave http://cmldev.net/
5 The Configurable Math Library (CML) is distributed under the terms of the
6 Boost Software License, v1.0 (see cml/LICENSE for details).
8 *-----------------------------------------------------------------------*/
10 * @brief Default values for certain parameters.
20 /* Ignore "C4003: not enough actual parameters for macro": */
21 #pragma warning (disable: 4003)
23 /* This one is odd, but apparently harmless (but should be fixed!):
24 * "C4348: redefinition of default parameter"
26 #pragma warning (disable: 4348)
32 /* The default vector unroll limit: */
33 #if !defined(CML_VECTOR_UNROLL_LIMIT)
34 #define CML_VECTOR_UNROLL_LIMIT 8
37 /* Don't unroll matrix operations by default: */
38 #if !defined(CML_2D_UNROLLER) && !defined(CML_NO_2D_UNROLLER)
39 #define CML_NO_2D_UNROLLER
42 /* The default vector dot() unroll limit: */
43 #if !defined(CML_VECTOR_DOT_UNROLL_LIMIT)
44 #define CML_VECTOR_DOT_UNROLL_LIMIT CML_VECTOR_UNROLL_LIMIT
47 /* The default array layout is the C/C++ row-major array layout: */
48 #if !defined(CML_DEFAULT_ARRAY_LAYOUT)
49 #define CML_DEFAULT_ARRAY_LAYOUT cml::row_major
52 /* The default basis orientation: */
53 #if !defined(CML_DEFAULT_BASIS_ORIENTATION)
54 #define CML_DEFAULT_BASIS_ORIENTATION cml::col_basis
57 /* Always use the default layout in promotions, by default: */
58 #if !defined(CML_ALWAYS_PROMOTE_TO_DEFAULT_LAYOUT)
59 #define CML_ALWAYS_PROMOTE_TO_DEFAULT_LAYOUT
62 /* The default memory allocator is std::allocator<void>: */
63 #if !defined(CML_DEFAULT_ARRAY_ALLOC)
64 #include <memory> // for std::allocator
65 #define CML_DEFAULT_ARRAY_ALLOC std::allocator<void>
68 /* By default, automatically resize dynamic vectors and matrices: */
69 #if !defined(CML_AUTOMATIC_VECTOR_RESIZE_ON_ASSIGNMENT)
70 #define CML_AUTOMATIC_VECTOR_RESIZE_ON_ASSIGNMENT
73 #if !defined(CML_AUTOMATIC_MATRIX_RESIZE_ON_ASSIGNMENT)
74 #define CML_AUTOMATIC_MATRIX_RESIZE_ON_ASSIGNMENT
77 /* By default, check vector and matrix sizes: */
78 #if !defined(CML_CHECK_VECTOR_EXPR_SIZES)
79 #define CML_CHECK_VECTOR_EXPR_SIZES
82 #if !defined(CML_CHECK_MATRIX_EXPR_SIZES)
83 #define CML_CHECK_MATRIX_EXPR_SIZES
88 // -------------------------------------------------------------------------
This page took 0.037899 seconds and 4 git commands to generate.