Created on 2006-06-15.00:00:00 last changed 168 months ago
Rationale:
Toronto: C99 does not have these unsigned versions because the signed version exist just to define the implementation-defined behavior of signed integer division. Unsigned integer division has no implementation-defined behavior and thus does not need this treatment.
Proposed resolution:
Add to 26.7 [lib.c.math] paragraph 8:
struct udiv_t div(unsigned, unsigned); struct uldiv_t div(unsigned long, unsigned long); struct ulldiv_t div(unsigned long long, unsigned long long);
There is no div() function for unsigned integer types.
There are several possible resolutions. The simplest one is noted below. Other possibilities include a templated solution.
History | |||
---|---|---|---|
Date | User | Action | Args |
2011-03-05 00:04:13 | admin | set | messages: + msg5581 |
2010-10-21 18:28:33 | admin | set | messages: + msg3135 |
2006-06-15 00:00:00 | admin | create |