Skip to content

Hw12 Double micro#10

Open
DolzhenkoAlexa wants to merge 4 commits intomainfrom
HW12_Dolzhenko_DoubleMicro
Open

Hw12 Double micro#10
DolzhenkoAlexa wants to merge 4 commits intomainfrom
HW12_Dolzhenko_DoubleMicro

Conversation

@DolzhenkoAlexa
Copy link
Owner

Добавлены файлы для дз Double под микроскопом

Долженко

@@ -0,0 +1,76 @@
#include "doubleExp.h"
#include <stdio.h>
#include "doubleExp.h"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Вот это лишнее


int exp = 0;
for (int i = 62; i >= 52; i--) {
exp = (exp << 1) | getBitI(&d, i);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Здесь удобнее было бы воспользоваться константными масками (или двумя сдвигами на нужную величину), а не собирать число по одному биту

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants