Skip to content

ARROW-9737: [C++][Gandiva] Add bitwise_xor() for integers#7965

Closed
zhztheplayer wants to merge 4 commits intoapache:masterfrom
zhztheplayer:ARROW-9737
Closed

ARROW-9737: [C++][Gandiva] Add bitwise_xor() for integers#7965
zhztheplayer wants to merge 4 commits intoapache:masterfrom
zhztheplayer:ARROW-9737

Conversation

@zhztheplayer
Copy link
Copy Markdown
Member

@github-actions
Copy link
Copy Markdown

@kiszk
Copy link
Copy Markdown
Member

kiszk commented Aug 15, 2020

Looks good to me

EXPECT_EQ(bitwise_xor_int64_int64(0x563672F83, 0x0D9FCF85B), 0x5BA9BD7D8);
EXPECT_EQ(bitwise_xor_int64_int64(0xFFFFFFFFFFDA8F6A, 0xFFFFFFFFFFFF791C), 0X25F676);
EXPECT_EQ(bitwise_xor_int64_int64(0x6A5B1, 0x00000), 0x6A5B1);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could you add a test to show xor a value with itself is zero?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@emkornfield
Copy link
Copy Markdown
Contributor

+1 thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants