Skip to content

Instantly share code, notes, and snippets.

View netch80's full-sized avatar

Valentin Nechayev netch80

View GitHub Profile
// Made for https://habr.com/ru/post/522788/
#include <stdio.h>
#include <stdint.h>
#include <math.h>
#include <time.h>
#include <sys/time.h>
uint32_t getHighBit_32(uint32_t x)
{
x |= x >> 1;