--- Log opened Sun May 31 00:00:36 2020 02:47 < elichai2> Hi, I'm not trying to be pedantic here just to understand C better :). here `n` can be a negative signed integer, isn't bitwise shifting implementation defined on negative numbers? https://github.com/bitcoin-core/secp256k1/blob/master/src/ecmult_const_impl.h#L19 02:48 < elichai2> (`n` in this macro is a int from the `wnaf_1` array, which ` * - each wnaf[i] an odd integer between -(1 << w) and (1 << w)`) 10:51 < sipa> elichai2: i think you're right 10:51 < sipa> and we're just doing it to get the sign bit 10:51 < sipa> i think this can also be done by first converting to unsigned (which is well-defined iirc) and then doing the same operation 12:31 -!- jonatack [~jon@2a01:e0a:53c:a200:bb54:3be5:c3d0:9ce5] has quit [Ping timeout: 246 seconds] 12:37 -!- jonatack [~jon@2a01:e0a:53c:a200:bb54:3be5:c3d0:9ce5] has joined #secp256k1 19:28 -!- Netsplit *.net <-> *.split quits: Lightsword 19:31 -!- Lightsword [~Lightswor@107.170.253.193] has joined #secp256k1 21:41 -!- dongcarl [~dongcarl@unaffiliated/dongcarl] has quit [Read error: Connection reset by peer] 23:29 -!- sipa [~pw@gateway/tor-sasl/sipa1024] has quit [Ping timeout: 240 seconds] 23:32 -!- sipa [~pw@gateway/tor-sasl/sipa1024] has joined #secp256k1 --- Log closed Mon Jun 01 00:00:38 2020