瀏覽單個文章
拿破崙波拿巴
*停權中*
 
拿破崙波拿巴的大頭照
 

加入日期: Dec 2018
文章: 53
引用:
作者youporn
都不對啊

DEST ← (NOT SRC1) bitwiseAND SRC2;


我終於看懂了

https://software.intel.com/sites/la...&expand=298,299


代碼:
__int64 _andn_u64 (unsigned __int64 a, unsigned __int64 b)

dst[63:0] := ((NOT a[63:0]) AND b[63:0])


https://gcc.gnu.org/ml/gcc-patches/...cases.gcc.patch

代碼:
long long calc_andn_u64 (long long src1,
			 long long src2,
			 long long dummy)
{
  return (~src1 + dummy) & (src2);
}



舊 2019-01-30, 08:12 PM #5
回應時引用此文章
拿破崙波拿巴離線中