PT-163478903 builtin bits type #508

Merged
zxq9 merged 5 commits from PT-163478903-builtin-bits-type into master 2019-01-28 18:05:10 +09:00
zxq9 commented 2019-01-26 00:09:02 +09:00 (Migrated from gitlab.com)

Created by: UlfNorell

Replaces bit arithmetic operations with a builtin bits type.

*Created by: UlfNorell* Replaces bit arithmetic operations with a builtin `bits` type.
zxq9 commented 2019-01-26 00:34:23 +09:00 (Migrated from gitlab.com)

Created by: happi

Review: Commented

Perhaps some tests for Bits operations?
Add Bits.to_int and Int.to_bits?

*Created by: happi* **Review:** Commented Perhaps some tests for Bits operations? Add Bits.to_int and Int.to_bits?
zxq9 commented 2019-01-26 00:37:43 +09:00 (Migrated from gitlab.com)

Created by: UlfNorell

Tests are in https://github.com/aeternity/aeternity/pull/2077.

And I didn't add conversion to/from int on purpose. You'd have to sell me on why you need that, since they sort of defeat the purpose of this PR to make bit manipulation safer.

*Created by: UlfNorell* Tests are in https://github.com/aeternity/aeternity/pull/2077. And I didn't add conversion to/from int on purpose. You'd have to sell me on why you need that, since they sort of defeat the purpose of this PR to make bit manipulation safer.
zxq9 commented 2019-01-26 00:39:04 +09:00 (Migrated from gitlab.com)

Created by: happi

Review: Approved

*Created by: happi* **Review:** Approved
zxq9 commented 2019-01-28 18:04:59 +09:00 (Migrated from gitlab.com)

Created by: hanssv

Review: Approved

*Created by: hanssv* **Review:** Approved
zxq9 commented 2019-01-28 18:05:10 +09:00 (Migrated from gitlab.com)

Merged by: UlfNorell at 2019-01-28 09:05:10 UTC

*Merged by: UlfNorell at 2019-01-28 09:05:10 UTC*
Sign in to join this conversation.
No description provided.