[DiscordArchive] damn, ld linker is slow?
[DiscordArchive] damn, ld linker is slow?
Archived author: Tea • Posted: 2024-05-23T20:28:05.217000+00:00
Original source
from microsoft docs on BigInteger
Archived author: Tea • Posted: 2024-05-23T20:28:07.625000+00:00
Original source
> The sign of the value returned by the modulus operation depends on the sign of dividend: If dividend is positive, the modulus operation returns a positive result; if it is negative, the modulus operation returns a negative result
Archived author: Tea • Posted: 2024-05-23T20:28:44.257000+00:00
Original source
however both TC and wow client always calculate a positive result (`BN_nnmod` openssl function)
Archived author: MaxtorCoder • Posted: 2024-05-23T20:28:54.336000+00:00
Original source
<a:Susge:818138933182988298>
ES_Think:639363477458255874>
Archived author: Widget • Posted: 2024-05-23T20:36:35.072000+00:00
Original source
uh i cant wrap my head around it, so what are my realistic options? does BN_nnmod modify the dividend? or modify the result or <
ES_Think:639363477458255874>
Archived author: Tea • Posted: 2024-05-23T20:37:47.334000+00:00
Original source
BN_nnmod stores the result in its only non-const BIGNUM argument
ES_Think:639363477458255874> i think i understand whatsup now, but as u said, that only happens if dividend ( x right? ) is positive/negative, but x seems to be always positive, or at least the issue is happening even if x is positive
Archived author: Widget • Posted: 2024-05-23T20:43:55.922000+00:00
Original source
<
ES_Think:639363477458255874> i think i understand whatsup now, but as u said, that only happens if dividend ( x right? ) is positive/negative, but x seems to be always positive, or at least the issue is happening even if x is positive
Archived author: Tea • Posted: 2024-05-23T20:45:43.586000+00:00
Original source
x -= fix makes the value very much negative
Archived author: Tea • Posted: 2024-05-23T20:48:38.889000+00:00
Original source
(just look at the size of "fix", its 2^65 while x is never larger than 2^64)
Archived author: Widget • Posted: 2024-05-23T20:59:20.277000+00:00
Original source
oof, the X i get is waaaaaaaaaaay larger than 2^64