summaryrefslogtreecommitdiff
path: root/src/pk.h
diff options
context:
space:
mode:
authorJonathan Bradley <jcb@pikum.xyz>2025-04-10 11:14:28 -0400
committerJonathan Bradley <jcb@pikum.xyz>2025-04-10 11:14:28 -0400
commit3fbf01b3466bb94a730cc94fea72ea661ffb9759 (patch)
tree14ac2456f6fa2d15a61184c19737a4e88eb2044d /src/pk.h
parent496637b40ec3b241a0b09ed909dd3d26f68520ab (diff)
pk.h: update to 0.4.7
Diffstat (limited to 'src/pk.h')
-rw-r--r--src/pk.h46
1 files changed, 23 insertions, 23 deletions
diff --git a/src/pk.h b/src/pk.h
index 587c05b..74b5a8d 100644
--- a/src/pk.h
+++ b/src/pk.h
@@ -1,7 +1,7 @@
#ifndef PK_SINGLE_HEADER_FILE_H
#define PK_SINGLE_HEADER_FILE_H
/*******************************************************************************
-* PK Single-Header-Library V0.4.6
+* PK Single-Header-Library V0.4.7
*
* Author: Jonathan Bradley
* Copyright: © 2024-2025 Jonathan Bradley
@@ -254,7 +254,7 @@
*
*******************************************************************************/
-#define PK_VERSION "0.4.6"
+#define PK_VERSION "0.4.7"
#ifdef PK_IMPL_ALL
# ifndef PK_IMPL_MEM_TYPES
@@ -366,78 +366,78 @@
TypeName operator^=(TypeName& a, const TypeName& b); \
TypeName operator~(TypeName& a);
#define TypeSafeInt2_B(TypeName, TypeName_T) \
- inline TypeName operator+(const TypeName& a, const TypeName& b) { \
+ TypeName operator+(const TypeName& a, const TypeName& b) { \
return TypeName(static_cast<TypeName_T>(a) + static_cast<TypeName_T>(b)); \
} \
- inline TypeName operator-(const TypeName& a, const TypeName& b) { \
+ TypeName operator-(const TypeName& a, const TypeName& b) { \
return TypeName(static_cast<TypeName_T>(a) - static_cast<TypeName_T>(b)); \
} \
- inline TypeName operator*(const TypeName& a, const TypeName& b) { \
+ TypeName operator*(const TypeName& a, const TypeName& b) { \
return TypeName(static_cast<TypeName_T>(a) * static_cast<TypeName_T>(b)); \
} \
- inline TypeName operator/(const TypeName& a, const TypeName& b) { \
+ TypeName operator/(const TypeName& a, const TypeName& b) { \
return TypeName(static_cast<TypeName_T>(a) / static_cast<TypeName_T>(b)); \
} \
- inline TypeName operator&(const TypeName& a, const TypeName& b) { \
+ TypeName operator&(const TypeName& a, const TypeName& b) { \
return TypeName(static_cast<TypeName_T>(a) & static_cast<TypeName_T>(b)); \
} \
- inline TypeName operator|(const TypeName& a, const TypeName& b) { \
+ TypeName operator|(const TypeName& a, const TypeName& b) { \
return TypeName(static_cast<TypeName_T>(a) | static_cast<TypeName_T>(b)); \
} \
- inline TypeName operator^(const TypeName& a, const TypeName& b) { \
+ TypeName operator^(const TypeName& a, const TypeName& b) { \
return TypeName(static_cast<TypeName_T>(a) ^ static_cast<TypeName_T>(b)); \
} \
- inline TypeName& operator++(TypeName& a) { \
+ TypeName& operator++(TypeName& a) { \
a = a + TypeName{1}; \
return a; \
} \
- inline TypeName& operator--(TypeName& a) { \
+ TypeName& operator--(TypeName& a) { \
a = a - TypeName{1}; \
return a; \
}; \
- inline TypeName operator++(TypeName& a, int) { \
+ TypeName operator++(TypeName& a, int) { \
a = a + TypeName{1}; \
return a; \
} \
- inline TypeName operator--(TypeName& a, int) { \
+ TypeName operator--(TypeName& a, int) { \
a = a - TypeName{1}; \
return a; \
}; \
- inline TypeName operator<<(const TypeName& a, const TypeName& b) { \
+ TypeName operator<<(const TypeName& a, const TypeName& b) { \
return TypeName(static_cast<TypeName_T>(a) << static_cast<TypeName_T>(b)); \
}; \
- inline TypeName operator>>(const TypeName& a, const TypeName& b) { \
+ TypeName operator>>(const TypeName& a, const TypeName& b) { \
return TypeName(static_cast<TypeName_T>(a) >> static_cast<TypeName_T>(b)); \
}; \
- inline TypeName operator+=(TypeName& a, const TypeName& b) { \
+ TypeName operator+=(TypeName& a, const TypeName& b) { \
a = TypeName{a + b}; \
return a; \
}; \
- inline TypeName operator-=(TypeName& a, const TypeName& b) { \
+ TypeName operator-=(TypeName& a, const TypeName& b) { \
a = TypeName{a - b}; \
return a; \
}; \
- inline TypeName operator*=(TypeName& a, const TypeName& b) { \
+ TypeName operator*=(TypeName& a, const TypeName& b) { \
a = TypeName{a * b}; \
return a; \
}; \
- inline TypeName operator/=(TypeName& a, const TypeName& b) { \
+ TypeName operator/=(TypeName& a, const TypeName& b) { \
a = TypeName{a / b}; \
return a; \
}; \
- inline TypeName operator&=(TypeName& a, const TypeName& b) { \
+ TypeName operator&=(TypeName& a, const TypeName& b) { \
a = TypeName{a & b}; \
return a; \
}; \
- inline TypeName operator|=(TypeName& a, const TypeName& b) { \
+ TypeName operator|=(TypeName& a, const TypeName& b) { \
a = TypeName{a | b}; \
return a; \
}; \
- inline TypeName operator^=(TypeName& a, const TypeName& b) { \
+ TypeName operator^=(TypeName& a, const TypeName& b) { \
a = TypeName{a ^ b}; \
return a; \
}; \
- inline TypeName operator~(TypeName& a) { \
+ TypeName operator~(TypeName& a) { \
a = static_cast<TypeName>(~static_cast<TypeName_T>(a)); \
return a; \
};