![]() |
00001 00002 00003 00004 00005 00006 00007 00008 00009 00010 00011 00012 00013 00014 00015 00016 00017 00018 00019 00020 00021 00022 00023 00024 00025 00026 00027 00028 00029 00030 00031 00032 00033 00034 00035 00036 00037 00038 #ifndef GLM_GTX_integer 00039 #define GLM_GTX_integer GLM_VERSION 00040 00041 // Dependency: 00042 #include "../glm.hpp" 00043 00044 #if(defined(GLM_MESSAGES) && !defined(glm_ext)) 00045 # pragma message("GLM: GLM_GTX_integer extension included") 00046 #endif 00047 00048 namespace glm 00049 { 00052 00055 int pow(int x, int y); 00056 00059 int sqrt(int x); 00060 00063 template <typename genIUType> 00064 genIUType log2(genIUType const & x); 00065 00068 unsigned int floor_log2(unsigned int x); 00069 00072 int mod(int x, int y); 00073 00076 template <typename genType> 00077 genType factorial(genType const & x); 00078 00081 typedef signed int sint; 00082 00085 uint pow(uint x, uint y); 00086 00089 uint sqrt(uint x); 00090 00093 uint mod(uint x, uint y); 00094 00097 uint nlz(uint x); 00098 00100 }//namespace glm 00101 00102 #include "integer.inl" 00103 00104 #endif//GLM_GTX_integer
1.7.3