Update all header guards.
[tinc] / src / ed25519 / fixedint.h
index d03e4bd..e9f973c 100644 (file)
@@ -1,3 +1,6 @@
+#ifndef TINC_FIXEDINT_H
+#define TINC_FIXEDINT_H
+
 /*
     Portable header to provide the 32 and 64 bits type.
 
         #define INT64_C(v) v ##I64
     #endif
 #endif
+
+static inline unsigned char shlu8(unsigned char a, uint32_t b) {
+       return a << b;
+}
+
+static inline int32_t shl32(uint32_t a, uint32_t b) {
+       return a << b;
+}
+
+static inline int64_t shl64(uint64_t a, uint32_t b) {
+       return a << b;
+}
+
+static inline uint64_t shlu64(uint64_t a, uint32_t b) {
+       return a << b;
+}
+
+#endif