Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6bb01ff8ff | ||
|
|
8ef9ec1469 |
@@ -0,0 +1,5 @@
|
||||
long divide_vars(long a, long b) {
|
||||
return a / b;
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
#include <stdint.h>
|
||||
uint16_t swap_bytes(uint16_t x) {
|
||||
return (x << 8) | (x >> 8);
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
long mul3(long x) { return x * 3; }
|
||||
long mul5(long x) { return x * 5; }
|
||||
long mul9(long x) { return x * 9; }
|
||||
@@ -0,0 +1,7 @@
|
||||
unsigned long factorial(int n) {
|
||||
unsigned long res = 1;
|
||||
for (int i = 2; i <= n; ++i) {
|
||||
res *= i;
|
||||
}
|
||||
return res;
|
||||
}
|
||||
Binary file not shown.
Reference in New Issue
Block a user