diff options
| author | Mattias Andrée <m@maandree.se> | 2026-02-22 14:13:56 +0100 |
|---|---|---|
| committer | Mattias Andrée <m@maandree.se> | 2026-02-22 14:13:56 +0100 |
| commit | 4304409e940efe5783bcf20382f6faa6c6f25e10 (patch) | |
| tree | 2b63a4b3304035b85180b8bb597be74782b142e9 /libj2.h | |
| parent | Add subtraction and addition with carry/borrow and add abs_diff (diff) | |
| download | libj2-4304409e940efe5783bcf20382f6faa6c6f25e10.tar.gz libj2-4304409e940efe5783bcf20382f6faa6c6f25e10.tar.bz2 libj2-4304409e940efe5783bcf20382f6faa6c6f25e10.tar.xz | |
Signed-off-by: Mattias Andrée <m@maandree.se>
Diffstat (limited to '')
| -rw-r--r-- | libj2.h | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -83,7 +83,7 @@ struct libj2_j2u { * libj2 does not implement bitwise operations, * bit-scanning, or bit-rotation operations * for this type, but a `struct libj2_j2i *` - * can safetly be casted to `struct libj2_j2u *` + * can safely be cast to `struct libj2_j2u *` * for such operators as well as the for * unsigned bit shifting operations * @@ -110,7 +110,7 @@ struct libj2_j2i { /** * Arithmetic overflow prediction result * - * Use by some functions for which prediction + * Used by some functions for which prediction * is costly in edge cases, and thus stopped * as soon as such an edge case is detected * @@ -120,12 +120,12 @@ struct libj2_j2i { */ enum libj2_overflow { /** - * Where will not be an overflow + * There will be no overflow */ LIBJ2_NO_OVERFLOW = 0, /** - * Where will be a positive overflow + * There will be a positive overflow */ LIBJ2_POSITIVE_OVERFLOW = 1, #define LIBJ2_OVERFLOW LIBJ2_POSITIVE_OVERFLOW @@ -139,7 +139,7 @@ enum libj2_overflow { #define LIBJ2_OVERFLOW_UNKNOWN LIBJ2_POSITIVE_OVERFLOW_UNKNOWN /** - * Where will be a positive overflow + * There will be a negative overflow */ LIBJ2_NEGATIVE_OVERFLOW = -1, |
