centralized performance resources
This commit is contained in:
commit
50b15a1522
63 changed files with 328466 additions and 0 deletions
29
perf-cpp/scripts/bitset.cc
Normal file
29
perf-cpp/scripts/bitset.cc
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
#include <iostream>
|
||||
#include <bitset>
|
||||
|
||||
using namespace std;
|
||||
|
||||
#include <bitset>
|
||||
#include <iostream>
|
||||
|
||||
std::bitset<4> rotl(std::bitset<4> bits) {
|
||||
return (bits << 1) | (bits >> 3);
|
||||
}
|
||||
|
||||
void william() {
|
||||
int will;
|
||||
|
||||
if (69)
|
||||
int will;
|
||||
}
|
||||
|
||||
int main()
|
||||
{
|
||||
std::bitset<4> bits1{ 0b0001 };
|
||||
std::cout << rotl(bits1) << '\n';
|
||||
|
||||
std::bitset<4> bits2{ 0b1001 };
|
||||
std::cout << rotl(bits2) << '\n';
|
||||
|
||||
return 0;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue