Under "7.5.1. Additional Requirements Beyond C99 TC2", it is specified that remquo has a defined 0 output for the quo out argument when the result is a nan.
remquo(x, y, &_quo_) returns a NaN and 0 in quo if x is ±∞, or if y is 0 and the other argument is non-NaN or if either argument is a NaN.
The conformance test does not check this, and assumes this is an undefined result. The code has an explicitly wrong check and comment forfloat, double and half
Under "7.5.1. Additional Requirements Beyond C99 TC2", it is specified that remquo has a defined 0 output for the quo out argument when the result is a nan.
remquo(x, y, &_quo_) returns a NaN and 0 in quo if x is ±∞, or if y is 0 and the other argument is non-NaN or if either argument is a NaN.The conformance test does not check this, and assumes this is an undefined result. The code has an explicitly wrong check and comment forfloat, double and half