Cod sursa(job #1043036)
Utilizator | Data | 27 noiembrie 2013 22:05:06 | |
---|---|---|---|
Problema | A+B | Scor | 0 |
Compilator | cpp | Status | done |
Runda | teme_upb | Marime | 0.34 kb |
#include <stdint.h>
#include <cmath>
using namespace std;
static inline uint32_t log22(const uint32_t x) {
uint32_t y;
asm ( "\tbsr %1, %0\n"
: "=r"(y)
: "r" (x)
);
return y;
}
int main(void){
for (int i = 1; i <= 1000000; ++i)
for (int j = 1; j <= 1000; ++j)
int alfa = log22(5 * i + j * 15);}