Changeset 1059
- Timestamp:
- Nov 11, 2011, 2:10:15 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/matrix.h
r1052 r1059 29 29 typedef tname<half> f16##suffix; \ 30 30 typedef tname<float> suffix; \ 31 typedef tname<double> f64##suffix; \ 31 32 typedef tname<int8_t> i8##suffix; \ 32 33 typedef tname<uint8_t> u8##suffix; \ … … 111 112 } \ 112 113 \ 113 inline floatlen() const \114 inline double len() const \ 114 115 { \ 115 116 using namespace std; \ 116 return sqrt f((float)sqlen()); \117 return sqrt((double)sqlen()); \ 117 118 } \ 118 119 \ … … 447 448 #define SCALAR_GLOBAL2(tname, op) \ 448 449 SCALAR_GLOBAL(tname, op, int) \ 449 SCALAR_GLOBAL(tname, op, float) 450 SCALAR_GLOBAL(tname, op, float) \ 451 SCALAR_GLOBAL(tname, op, double) 450 452 451 453 #define GLOBALS(tname) \
Note: See TracChangeset
for help on using the changeset viewer.