Hi, vpp experts

when i use bihash_init_8_8 ( p, "test",0,0)function in arm64 machine, it
will cause abort()
gcc version is 9.3.0

the reason is when buckets is 0, src/vppinfra/clib.h  min_log2() function
will use count_leading_zero(0), but return value is different between x86
and arm64,x86 is 63 but arm64 is 64, it is a undefined behavior for
compiler, so min_log2() need add a judgement with it
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#21979): https://lists.fd.io/g/vpp-dev/message/21979
Mute This Topic: https://lists.fd.io/mt/94229490/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/leave/1480452/21656/631435203/xyzzy 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to