This commit is contained in:
zxc
2026-09-10 18:52:30 +03:00
parent 00436d6847
commit e22570be2b
14 changed files with 26 additions and 0 deletions
+3
View File
@@ -0,0 +1,3 @@
int signed_divide(int a, int b) {
return a / b;
}
BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

+3
View File
@@ -0,0 +1,3 @@
unsigned short swap_bytes(unsigned short n) {
return ((n & 0x1234) << 8) | ((n & 0x3412) >> 8);
}
BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

+3
View File
@@ -0,0 +1,3 @@
long signed_divide(long s, long d) {
return s / d;
}
BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

+10
View File
@@ -0,0 +1,10 @@
//потому что она аппаратно создана для вычисления адресов памяти в формате «База + Индекс × Масштаб + Смещение».
int mul3(int a) {
return a * 3;
}
int mul5(int a) {
return a * 5;
}
int mul9(int a) {
return a * 9;
}
BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 62 KiB

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 68 KiB

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 71 KiB

+7
View File
@@ -0,0 +1,7 @@
unsigned long long factorial(int a) {
unsigned long long c = 2;
for (int i = 1; i <= a; ++i) {
c *= i;
}
return c;
}
BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 88 KiB

Binary file not shown.