bit shifting over numbers #337

Closed
opened 2021-08-14 04:14:52 +09:00 by zxq9 · 2 comments
zxq9 commented 2021-08-14 04:14:52 +09:00 (Migrated from gitlab.com)

Created by: bogdan-manole

I'm trying to implement some similar contracts from uniswap into aesophia. There are a lot of bitwise operations there, like: left shift , right shift over integer types. I think it will be helpful if we could have functions as shl, shr, not over bits type and also some way to convert between int and bits.

*Created by: bogdan-manole* I'm trying to implement some similar contracts from uniswap into aesophia. There are a lot of bitwise operations there, like: left shift , right shift over integer types. I think it will be helpful if we could have functions as shl, shr, not over bits type and also some way to convert between int and bits.
zxq9 commented 2021-09-16 20:42:41 +09:00 (Migrated from gitlab.com)

Created by: hanssv

Adding built in bitwise operations in FATE/Sophia needs a protocol upgrade (a.k.a a hard fork) - in the meantime we add a standard library: #340

*Created by: hanssv* Adding built in bitwise operations in FATE/Sophia needs a protocol upgrade (a.k.a a hard fork) - in the meantime we add a standard library: #340
zxq9 commented 2021-11-25 16:49:35 +09:00 (Migrated from gitlab.com)

Created by: hanssv

Merged to the Ceres branch. #352

*Created by: hanssv* Merged to the Ceres branch. #352
Sign in to join this conversation.
No Milestone
No project
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: QPQ-AG/sophia#337
No description provided.