gpt4 book ai didi

java - 如何在java中使用位寻址?

转载 作者:行者123 更新时间:2023-11-29 07:15:21 25 4
gpt4 key购买 nike

如何在java中使用bit-addressable(assembly)?

n.e.g.

int a = 13;
int b = 99;
//How can i write 13 & 99 (but & only last bit of 13,99 = 1 & 1)?
//In assembly you can use Acc.0 or anything.x to manipulate bit.
//How to use this feature in java?

最佳答案

int a = 99;
int b = 11;
int q = a & b & 0x1;

关于java - 如何在java中使用位寻址?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10047805/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com