We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 17707f9 commit 6dc5ddfCopy full SHA for 6dc5ddf
1 file changed
scripts/gen_mask.py
@@ -0,0 +1,13 @@
1
+import sys
2
+
3
+#Provide a comma-separated list of CPUs
4
+#Output: binary and hex masks corresponding to the list
5
+lst=sys.argv[1].split(',')
6
+print(lst)
7
8
+val=0
9
+for v in lst:
10
+ val = val | (1<<int(v))
11
12
+print(bin(val))
13
+print(hex(val))
0 commit comments