NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: lib/41931: log(-INFINITY) or log(-1.0) gives uexpected results



The following reply was made to PR lib/41931; it has been noted by GNATS.

From: Havard Eidnes <he%NetBSD.org@localhost>
To: lib-bug-people%netbsd.org@localhost
Cc: gnats-bugs%netbsd.org@localhost, netbsd-bugs%netbsd.org@localhost
Subject: Re: lib/41931: log(-INFINITY) or log(-1.0) gives uexpected results
Date: Tue, 25 Aug 2009 00:39:21 +0200 (CEST)

 SGksDQoNCm1vcmUgaW5mbyBvbiB0aGlzLiAgSSB0aGluayBJJ3ZlIGNvbWUgYSBiaXQgY2xvc2Vy
 IHRvIHVuZGVyc3RhbmRpbmcNCndoYXQncyBoYXBwZW5pbmcuDQoNCkFjY29yZGluZyB0byBsaWIv
 bGlibS9NYWtlZmlsZSwgZm9yIG5vbi12YXggaG9zdHMsIGEgX01VTFRJX0xJQk0NCmlzIGJ1aWx0
 LCBhbmQgaXQncyBvZiB0aGUgX1BPU0lYX01PREUgdmFyaWV0eS4NCg0KVGhpcyBtZWFucyB0aGF0
 IGxpYi9saWJtL3NyYy93X2xvZy5jIGJ1aWxkcyB0aGUgImxvbmdlciIgdmVyc2lvbiwNCndoaWNo
 IGxvb2tzIGxpa2UgdGhpczoNCg0KICAgICAgICBkb3VibGUgejsNCiAgICAgICAgeiA9IF9faWVl
 ZTc1NF9sb2coeCk7DQogICAgICAgIGlmKF9MSUJfVkVSU0lPTiA9PSBfSUVFRV8gfHwgaXNuYW4o
 eCkgfHwgeCA+IDAuMCkgcmV0dXJuIHo7DQogICAgICAgIGlmKHg9PTAuMCkNCiAgICAgICAgICAg
 IHJldHVybiBfX2tlcm5lbF9zdGFuZGFyZCh4LHgsMTYpOyAvKiBsb2coMCkgKi8NCiAgICAgICAg
 ZWxzZQ0KICAgICAgICAgICAgcmV0dXJuIF9fa2VybmVsX3N0YW5kYXJkKHgseCwxNyk7IC8qIGxv
 Zyh4PDApICovDQoNCi4uLmFhbmQuLi4gX19rZXJuZWxfc3RhbmRhcmQoeCx4LDE3KSBicmluZ3Mg
 dXMgdG86DQoNCiAgICAgICAgICAgIGNhc2UgMTc6DQogICAgICAgICAgICBjYXNlIDExNzoNCiAg
 ICAgICAgICAgICAgICAvKiBsb2coeDwwKSAqLw0KICAgICAgICAgICAgICAgIGV4Yy50eXBlID0g
 RE9NQUlOOw0KICAgICAgICAgICAgICAgIGV4Yy5uYW1lID0gdHlwZSA8IDEwMCA/ICJsb2ciIDog
 ImxvZ2YiOw0KICAgICAgICAgICAgICAgIGlmIChfTElCX1ZFUlNJT04gPT0gX1NWSURfKQ0KICAg
 ICAgICAgICAgICAgICAgZXhjLnJldHZhbCA9IC1IVUdFOw0KICAgICAgICAgICAgICAgIGVsc2UN
 CiAgICAgICAgICAgICAgICAgIGV4Yy5yZXR2YWwgPSAtSFVHRV9WQUw7DQogICAgICAgICAgICAg
 ICAgaWYgKF9MSUJfVkVSU0lPTiA9PSBfUE9TSVhfKQ0KICAgICAgICAgICAgICAgICAgZXJybm8g
 PSBFRE9NOw0KICAgICAgICAgICAgICAgIGVsc2UgaWYgKCFtYXRoZXJyKCZleGMpKSB7DQogICAg
 ICAgICAgICAgICAgICBpZiAoX0xJQl9WRVJTSU9OID09IF9TVklEXykgew0KICAgICAgICAgICAg
 ICAgICAgICAgICAgKHZvaWQpIFdSSVRFMigibG9nOiBET01BSU4gZXJyb3JcbiIsIDE4KTsNCiAg
 ICAgICAgICAgICAgICAgICAgICB9DQogICAgICAgICAgICAgICAgICBlcnJubyA9IEVET007DQog
 ICAgICAgICAgICAgICAgfQ0KICAgICAgICAgICAgICAgIGJyZWFrOw0KDQphbmQgc2luY2Ugd2Un
 cmUgbm90IHVzaW5nIHRoZSBfU1ZJRF8gdmFyaWFudCwgLUhVR0VfVkFMLA0KYWthLiAtSU5GSU5J
 VFkgaXMgcmV0dXJuZWQuDQoNCk5vdywgSSBob25lc3RseSBkb24ndCBxdWl0ZSBr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