有位转移ABAP [英] Bit shifts with ABAP
本文介绍了有位转移ABAP的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想端口一些Java code,这就需要运算和逻辑移位,以ABAP。
据我所知,ABAP只支持逐位非,AND,OR和XOR运算。
I'm trying to port some Java code, which requires arithmetic and logical bit shifts, to ABAP. As far as I know, ABAP only supports the bitwise NOT, AND, OR and XOR operations.
有谁知道另一种方式来实现这些类和ABAP的变化呢?有没有可能是一种方式来获得相同的结果的变化,只用了NOT,AND,OR和XOR操作?
Does anyone know another way to implement these kind of shifts with ABAP? Is there perhaps a way to get the same result as the shifts, by using just the NOT, AND, OR and XOR operations?
推荐答案
编辑:更新的code现在可以在这里找到了:的 GitHub的要点
the updated code can now be found over here: github gist
这篇关于有位转移ABAP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文