aboutsummaryrefslogtreecommitdiffstats
path: root/libj2.h
diff options
context:
space:
mode:
authorMattias Andrée <m@maandree.se>2025-12-06 10:25:40 +0100
committerMattias Andrée <m@maandree.se>2025-12-06 10:25:40 +0100
commit4c4576cd6e5d3dbf1fe584300cede2286bf1d49a (patch)
tree207f530ae80c93af172b4c0f8565a5c29b973752 /libj2.h
parentAdd overflow and underflow prediction functions (diff)
downloadlibj2-4c4576cd6e5d3dbf1fe584300cede2286bf1d49a.tar.gz
libj2-4c4576cd6e5d3dbf1fe584300cede2286bf1d49a.tar.bz2
libj2-4c4576cd6e5d3dbf1fe584300cede2286bf1d49a.tar.xz
Document in which version everything was added
Signed-off-by: Mattias Andrée <m@maandree.se>
Diffstat (limited to '')
-rw-r--r--libj2.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/libj2.h b/libj2.h
index 4130c97..bb4832b 100644
--- a/libj2.h
+++ b/libj2.h
@@ -25,11 +25,15 @@
/**
* The number of bits in an `uintmax_t`
+ *
+ * @since 1.0
*/
#define LIBJ2_JU_BIT ((unsigned)CHAR_BIT * (unsigned)sizeof(uintmax_t))
/**
* The number of bits in an `struct libj2_j2u`
+ *
+ * @since 1.0
*/
#define LIBJ2_J2U_BIT (2U * LIBJ2_JU_BIT)
@@ -38,6 +42,8 @@
* Unsigned double-maximum precision integer
*
* If `uintmax_t` is a 64-bit type, this `struct` is a 128-bit type
+ *
+ * @since 1.0
*/
struct libj2_j2u {
/**
@@ -58,6 +64,8 @@ struct libj2_j2u {
* Use by some functions for which prediction
* is costly in edge cases, and thus stopped
* as soon as such an edge case is detected
+ *
+ * @since 1.0
*/
enum libj2_overflow {
/**