From 7d751128292f51821c64a25668419853cafc4180 Mon Sep 17 00:00:00 2001 From: github-actions <${GITHUB_ACTOR}@users.noreply.github.com> Date: Thu, 10 Feb 2022 14:07:44 +0000 Subject: [PATCH] Documentation for 27ced495bf1e79b2b208d55069a2b432cb3c2faf --- d4/d38/power__of__two_8cpp.html | 135 +++++++++++++++--- d4/d38/power__of__two_8cpp.js | 4 +- ...8dca7b867074164d5f45b0f3851269d_cgraph.map | 4 + ...8dca7b867074164d5f45b0f3851269d_cgraph.md5 | 1 + ...8dca7b867074164d5f45b0f3851269d_cgraph.svg | 37 +++++ ...fd6be45be425ae28c62ce3bfb4b40dc_cgraph.map | 5 + ...fd6be45be425ae28c62ce3bfb4b40dc_cgraph.md5 | 1 + ...fd6be45be425ae28c62ce3bfb4b40dc_cgraph.svg | 52 +++++++ ...66f6b31b5ad750f1fe042a706a4e3d4_cgraph.map | 6 +- ...66f6b31b5ad750f1fe042a706a4e3d4_cgraph.md5 | 2 +- ...66f6b31b5ad750f1fe042a706a4e3d4_cgraph.svg | 36 ++--- dd/d47/namespacemath.html | 52 +++---- dd/d47/namespacemath.js | 2 +- dd/dad/power__of__two_8cpp__incl.map | 5 +- dd/dad/power__of__two_8cpp__incl.md5 | 2 +- dd/dad/power__of__two_8cpp__incl.svg | 33 +++-- globals_func_s.html | 2 +- globals_func_t.html | 2 +- globals_func_u.html | 1 + globals_p.html | 2 +- globals_s.html | 2 +- globals_t.html | 2 +- globals_u.html | 1 + namespacemembers.html | 2 +- namespacemembers_func.html | 2 +- navtreedata.js | 20 +-- navtreeindex0.js | 62 ++++---- navtreeindex1.js | 40 +++--- navtreeindex10.js | 64 ++++----- navtreeindex11.js | 30 ++-- navtreeindex12.js | 58 ++++---- navtreeindex13.js | 50 +++---- navtreeindex14.js | 40 +++--- navtreeindex15.js | 76 +++++----- navtreeindex2.js | 64 ++++----- navtreeindex3.js | 48 +++---- navtreeindex4.js | 76 +++++----- navtreeindex5.js | 62 ++++---- navtreeindex6.js | 64 ++++----- navtreeindex7.js | 38 ++--- navtreeindex8.js | 60 ++++---- navtreeindex9.js | 52 +++---- search/all_11.js | 6 +- search/all_14.js | 4 +- search/all_15.js | 6 +- search/all_16.js | 13 +- search/functions_10.js | 2 +- search/functions_13.js | 4 +- search/functions_14.js | 2 +- search/functions_15.js | 7 +- 50 files changed, 777 insertions(+), 564 deletions(-) create mode 100644 d4/d38/power__of__two_8cpp_aa8dca7b867074164d5f45b0f3851269d_cgraph.map create mode 100644 d4/d38/power__of__two_8cpp_aa8dca7b867074164d5f45b0f3851269d_cgraph.md5 create mode 100644 d4/d38/power__of__two_8cpp_aa8dca7b867074164d5f45b0f3851269d_cgraph.svg create mode 100644 d4/d38/power__of__two_8cpp_adfd6be45be425ae28c62ce3bfb4b40dc_cgraph.map create mode 100644 d4/d38/power__of__two_8cpp_adfd6be45be425ae28c62ce3bfb4b40dc_cgraph.md5 create mode 100644 d4/d38/power__of__two_8cpp_adfd6be45be425ae28c62ce3bfb4b40dc_cgraph.svg diff --git a/d4/d38/power__of__two_8cpp.html b/d4/d38/power__of__two_8cpp.html index ff2b58d95..393d80eb6 100644 --- a/d4/d38/power__of__two_8cpp.html +++ b/d4/d38/power__of__two_8cpp.html @@ -100,10 +100,11 @@ $(document).ready(function(){initNavTree('d4/d38/power__of__two_8cpp.html','../.
Implementation to check whether a number is a power of 2 or not. More...
#include <iostream>#include <cassert>Functions | ||||||
| void | math::power_of_two (int n) | |||||
| Function to test above algorithm. More... | ||||||
| int | math::power_of_two (int n) | |||||
| This function finds whether a number is power of 2 or not. More... | ||||||
| static void | test () | |||||
| Self-test implementations. More... | ||||||
| void | user_input_test () | |||||
| Take user input in the test cases (optional; currently commented) More... | ||||||
| int | main () | |||||
| Main function. More... | ||||||
+
|
+ +static | +
Self-test implementations.
+| void user_input_test | +( | +) | ++ |
Take user input in the test cases (optional; currently commented)
+function call with
| n |
| void math::power_of_two | +int math::power_of_two | ( | int | n | ) | @@ -1228,38 +1228,28 @@ Here is the call graph for this function:
Function to test above algorithm.
+This function finds whether a number is power of 2 or not.
| n | description |
| n | value for which we want to check prints the result, as "Yes, the number n is a power of 2" or "No, the number is not a power of 2" without quotes |
This function finds whether a number is power of 2 or not
| n | value for which we want to check prints the result, as "Yes, the number n is a power of 2" or "No, the number is not a power of 2" without quotes |
result stores the bitwise and of n and n-1
-n IS the power of 2 result stores the bitwise and of n and n-1
+