bug 1244: replace tabs with spaces
[libreriscv.git] / conferences / fosdem2024 / fosdem2024_ddffirst / pospopcount.c
index 0fe84be45e2b471428c2a6139dd93605cbc26988..df0983aeeac58890f7fa4f37a814981da6218b19 100644 (file)
@@ -1,11 +1,7 @@
-// Copyright (c) 2020 Robert Clausecker <fuz@fuz.su>
-// count8 reference implementation for tests.  Do not alter.
-func count8safe(counts *[8]int, buf []uint8) 
-       {
-               for i := range buf {
-                       for j := 0; j < 8; j++ {
-                               counts[j] += int(buf[i] >> j & 1)
-                       }
-               }
-       }
-               
\ No newline at end of file
+/*Copyright (c) 2020 Robert Clausecker fuz@fuz.su
+  count8 reference implementation */
+func count8safe(counts *[8]int, buf []uint8) {
+    for i := range buf
+        for j := 0; j < 8; j++
+            counts[j] += int(buf[i] >> j & 1)
+}