Changeset 1920


Ignore:
Timestamp:
Sep 16, 2012, 6:48:16 PM (7 years ago)
Author:
sam
Message:

core: use "f128" as the long double prefix for vectors, even if it's
not always really a 128-bit type.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lol/math/vector.h

    r1833 r1920  
    4040#endif
    4141
     42/* Hack for compilation speedups: we can hide some of our global methods in
     43 * namespaces. We therefore want "long_double" to be a single-word name */
     44typedef long double long_double;
     45
    4246#define DECLARE_VECTOR_TYPEDEFS(tname, suffix) \
    4347    template <typename T> struct tname; \
     
    4549    typedef tname<float> suffix; \
    4650    typedef tname<double> d##suffix; \
     51    typedef tname<long_double> f128##suffix; \
    4752    typedef tname<int8_t> i8##suffix; \
    4853    typedef tname<uint8_t> u8##suffix; \
     
    13371342DECLARE_ALL_VECTOR_OPS(float)
    13381343DECLARE_ALL_VECTOR_OPS(double)
     1344DECLARE_ALL_VECTOR_OPS(long_double)
    13391345DECLARE_ALL_VECTOR_OPS(int8_t)
    13401346DECLARE_ALL_VECTOR_OPS(uint8_t)
     
    13641370#   pragma warning(disable: 4018)
    13651371#endif
    1366 
    1367 /* Hack for compilation speedups: we can hide some of our global methods in
    1368  * namespaces. We therefore want "long_double" to be a single-word name */
    1369 typedef long double long_double;
    13701372
    13711373/* Apply the same coercion rules as in the C++ standard. However, instead
Note: See TracChangeset for help on using the changeset viewer.