mirror of
https://hub.njuu.cf/TheAlgorithms/C-Plus-Plus.git
synced 2023-10-11 13:05:55 +08:00
Update math/inv_sqrt.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
This commit is contained in:
parent
2ca08fe23e
commit
42958bcedb
@ -60,7 +60,10 @@ T Standard_InvSqrt(T number) {
|
|||||||
return 1.0f / squareRoot;
|
return 1.0f / squareRoot;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** main function */
|
/**
|
||||||
|
* @brief Main function
|
||||||
|
* @returns 0 on exit
|
||||||
|
*/
|
||||||
int main() {
|
int main() {
|
||||||
std::cout << "The Fast inverse square root of 36 is: "
|
std::cout << "The Fast inverse square root of 36 is: "
|
||||||
<< Fast_InvSqrt<float, 1>(36.0f) << std::endl;
|
<< Fast_InvSqrt<float, 1>(36.0f) << std::endl;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user