For int64_t type #include <inttypes.h> int64_t t; printf("%" PRId64 "\n", t); For uint64_t type #include <inttypes.h> uint64_t t; printf("%" PRIu64 "\n", t); Use PRIx64 to print in hexadecimal Refer: http://en.cppreference.com/w/cpp/types/integer Refer: https://stackoverflow.com/questions/9225567/how-to-print-a-int64-t-type-in-c#:~:text=for%20uint64_t%20type%3A,PRIx64%20to%20print%20in%20hexadecimal. Sizeof char c; printf("%zu,%zu\n", sizeof c, sizeof (int));
Category: Computer language, Scripting
DPDK test application and ideas
TestPmd DPDK Tools sudo apt install dpdk dpdk-devbind.py -s Install DPDK LTS http://fast.dpdk.org/rel/dpdk-19.11.2.tar.xz // or any other LTS release (say dpdk-stable-18.11.8) tar xvf dpdk-19.11.2.tar.xz Install make and other package sudo apt install make sudo apt install gcc sudo apt-get install libnuma-dev (numa.h) sudo apt-get install libpcap0.8-dev (pcap.h, useful sometimes) Build TestPmd sudo bash cd <>/dpdk-stable-19.11.2/usertools … Continue reading DPDK test application and ideas
Python Libraries
Contents NumPyPundasXarraySciPyMatplotlib Reference Use " https://colab.research.google.com " for Editing. Numpy a-range, re-shape import numpy as np a = np.arange(30) print(a) b = a.reshape(2,5,3) print(b) ////output [ 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 … Continue reading Python Libraries