Quantcast
Channel: undefined >>> 0 == 4294967295? - Stack Overflow
Viewing all articles
Browse latest Browse all 2

undefined >>> 0 == 4294967295?

$
0
0

Getting different results on different machines and wonder if this is expected behaviour or a potential error in implementation of '>>>' operation for certain CPUs?

Linux qemux86-64 4.18.41-yocto-standard #1 SMP PREEMPT Tue Oct 8 20:33:31 UTC 2019 x86_64 GNU/Linux
root@qemux86-64:~# node --v8-options|head -n 1
SSE3=1 SSSE3=1 SSE4_1=0 SAHF=1 AVX=0 FMA3=0 BMI1=0 BMI2=0 LZCNT=0 POPCNT=0 ATOM=0
root@qemux86-64:~# node -v             
v8.12.0
root@qemux86-64:~# node -e 'console.log(undefined >>> 0)'
4294967295

(undefined >>> 0) evaluates to 0 on other machines I tested. But, then with CPU features enabled: AVX FMA3 BMI1 BMI2 LZCNT POPCNT


Viewing all articles
Browse latest Browse all 2

Latest Images

Trending Articles





Latest Images