# isqrt **Repository Path**: alpbrook/isqrt ## Basic Information - **Project Name**: isqrt - **Description**: https://github.com/itarient/isqrt.git - **Primary Language**: C++ - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-08-05 - **Last Updated**: 2021-08-05 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # isqrt This is a short example how we can compute the integer part of the square root of an integer value at run time and at compile time. There are two implementations here. The first uses C++ temlates, the second uses pure C/C++ function style. These implementations have two foundamental limitations. 1) They consider only unsigned data types (and no other integer types are possible). 2) The largest value from which the integer part of the square root can be computed is (2 * 0x10000) - 1 = (2 * 65536) - 1 = 131071. # Build mkdir build ; cd ./build cmake .. make # Run ./isqrt