source: trunk/src/lol/base/types.h @ 2816

Last change on this file since 2816 was 2816, checked in by lolbot, 7 years ago

fixed 542 files out of 2754:

  • removed 0 CR characters
  • removed 0 trailing whitespaces
  • replaced 0 tabs with spaces
  • fixed 542 svn:eol-style properties
  • Property svn:eol-style set to LF
  • Property svn:keywords set to Id
File size: 1005 bytes
Line 
1//
2// Lol Engine
3//
4// Copyright: (c) 2010-2013 Sam Hocevar <sam@hocevar.net>
5//   This program is free software; you can redistribute it and/or
6//   modify it under the terms of the Do What The Fuck You Want To
7//   Public License, Version 2, as published by Sam Hocevar. See
8//   http://www.wtfpl.net/ for more details.
9//
10
11#if !defined __LOL_BASE_TYPES_H__
12#define __LOL_BASE_TYPES_H__
13
14namespace lol
15{
16
17/* There are many reasons for wanting single-word type names, the most
18 * important one being compilation speedups in our vector.h: we can hide
19 * some global methods in namespaces that contain the name of the type,
20 * but namespaces cannot have spaces in their names. */
21typedef long double ldouble;
22
23/* The “real” type used for real numbers. It’s a specialisation of the
24 * “Real” template class. */
25template<int N> class Real;
26typedef Real<16> real;
27
28/* The “half” type used for 16-bit floating point numbers. */
29class half;
30
31} /* namespace lol */
32
33#endif // __LOL_BASE_TYPES_H__
34
Note: See TracBrowser for help on using the repository browser.