We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 37a5061 commit d6f035fCopy full SHA for d6f035f
libdivide.h
@@ -513,7 +513,7 @@ static LIBDIVIDE_INLINE uint64_t libdivide_128_div_64_to_64(
513
514
// Check for overflow and divide by 0.
515
if (numhi >= den) {
516
- if (r != NULL) *r = ~0ull;
+ if (r) *r = ~0ull;
517
return ~0ull;
518
}
519
@@ -559,7 +559,7 @@ static LIBDIVIDE_INLINE uint64_t libdivide_128_div_64_to_64(
559
q0 = (uint32_t)qhat;
560
561
// Return remainder if requested.
562
- if (r != NULL) *r = (rem * b + num0 - q0 * den) >> shift;
+ if (r) *r = (rem * b + num0 - q0 * den) >> shift;
563
return ((uint64_t)q1 << 32) | q0;
564
#endif
565
0 commit comments