summary refs log tree commit diff stats
path: root/lib/pure/bitops.nim
diff options
context:
space:
mode:
authorrockcavera <rockcavera@gmail.com>2020-12-30 21:41:25 -0300
committerGitHub <noreply@github.com>2020-12-30 16:41:25 -0800
commit876fa3e62e41cd366b89137cc3c4f6b5b8b2bee8 (patch)
treed4ab47036a09529abda5c34b8fe195094d1b75a5 /lib/pure/bitops.nim
parentb42e7c0ef909a9712e4e8f87be304db5c105e721 (diff)
downloadNim-876fa3e62e41cd366b89137cc3c4f6b5b8b2bee8.tar.gz
adding missing commas in std/bitops (#16520)
adding missing commas between the importc and header pragmas of some procs.
Diffstat (limited to 'lib/pure/bitops.nim')
-rw-r--r--lib/pure/bitops.nim10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/pure/bitops.nim b/lib/pure/bitops.nim
index 4f22388f3..855289e84 100644
--- a/lib/pure/bitops.nim
+++ b/lib/pure/bitops.nim
@@ -477,11 +477,11 @@ when useGCC_builtins:
 elif useVCC_builtins:
   # Counts the number of one bits (population count) in a 16-, 32-, or 64-byte unsigned integer.
   proc builtin_popcnt16(a2: uint16): uint16 {.
-      importc: "__popcnt16"header: "<intrin.h>", noSideEffect.}
+      importc: "__popcnt16", header: "<intrin.h>", noSideEffect.}
   proc builtin_popcnt32(a2: uint32): uint32 {.
-      importc: "__popcnt"header: "<intrin.h>", noSideEffect.}
+      importc: "__popcnt", header: "<intrin.h>", noSideEffect.}
   proc builtin_popcnt64(a2: uint64): uint64 {.
-      importc: "__popcnt64"header: "<intrin.h>", noSideEffect.}
+      importc: "__popcnt64", header: "<intrin.h>", noSideEffect.}
 
   # Search the mask data from most significant bit (MSB) to least significant bit (LSB) for a set bit (1).
   proc bitScanReverse(index: ptr culong, mask: culong): cuchar {.
@@ -506,9 +506,9 @@ elif useICC_builtins:
   # see also: https://software.intel.com/en-us/node/523362
   # Count the number of bits set to 1 in an integer a, and return that count in dst.
   proc builtin_popcnt32(a: cint): cint {.
-      importc: "_popcnt"header: "<immintrin.h>", noSideEffect.}
+      importc: "_popcnt", header: "<immintrin.h>", noSideEffect.}
   proc builtin_popcnt64(a: uint64): cint {.
-      importc: "_popcnt64"header: "<immintrin.h>", noSideEffect.}
+      importc: "_popcnt64", header: "<immintrin.h>", noSideEffect.}
 
   # Returns the number of trailing 0-bits in x, starting at the least significant bit position. If x is 0, the result is undefined.
   proc bitScanForward(p: ptr uint32, b: uint32): cuchar {.