src/core/math_func.hpp
branchnoai
changeset 9826 9707ad4c9b60
parent 9732 f8eb3e208514
child 9869 6404afe43575
equal deleted inserted replaced
9825:cc77111ebd85 9826:9707ad4c9b60
   167 	if (a >= (int32)0x7FFFFFFF) return 0x7FFFFFFF;
   167 	if (a >= (int32)0x7FFFFFFF) return 0x7FFFFFFF;
   168 	return (int32)a;
   168 	return (int32)a;
   169 }
   169 }
   170 
   170 
   171 /**
   171 /**
   172  * Reduce an usigned 64-bit int to an unsigned 16-bit one
   172  * Reduce an unsigned 64-bit int to an unsigned 16-bit one
   173  *
   173  *
   174  * @param a The 64-bit value to clamp
   174  * @param a The 64-bit value to clamp
   175  * @return The 64-bit value reduced to a 16-bit value
   175  * @return The 64-bit value reduced to a 16-bit value
   176  * @see ClampU(uint, uint, uint)
   176  * @see ClampU(uint, uint, uint)
   177  */
   177  */