Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
kimwalisch authored Dec 17, 2016
1 parent 9ff5c62 commit 6fb6402
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ contains extensive benchmarks for the 3 algorithms used in
```libpopcnt.h```. The algorithm are named
```builtin-popcnt-unrolled```, ```avx2-harley-seal```, ```harley-seal```.

C++ API
=======
C/C++ API
=========
```C++
#include "libpopcnt.h"

Expand All @@ -55,11 +55,11 @@ At compile time you need to specify if your compiler supports the
```bash
# How to compile on x86_64 CPUs
g++ -mpopcnt -DHAVE_POPCNT -mavx2 -DHAVE_AVX2 program.c
gcc -mpopcnt -DHAVE_POPCNT -mavx2 -DHAVE_AVX2 program.c
# How to compile using Microsoft Visual C++
cl /O2 /EHsc /D HAVE_POPCNT /arch:AVX2 /D HAVE_AVX2 program.cpp
# How to compile on IBM POWER8 CPUs
g++ -mpopcntd -DHAVE_POPCNT program.c
gcc -mpopcntd -DHAVE_POPCNT program.c
```

0 comments on commit 6fb6402

Please sign in to comment.