Skip to content

Commit

Permalink
README: explain building with SSSE3 support
Browse files Browse the repository at this point in the history
Makefile: remove mandatory `-march=native` flag, which is something that
we shouldn't hard-code for others.
  • Loading branch information
aklomp committed Dec 29, 2014
1 parent 6d3c7ba commit ab281dc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
@@ -1,4 +1,4 @@
CFLAGS += -std=c89 -O3 -march=native -Wall -Wextra -pedantic
CFLAGS += -std=c89 -O3 -Wall -Wextra -pedantic

base64: main.c base64.c
$(CC) $(CFLAGS) -o $@ $^
Expand Down
7 changes: 7 additions & 0 deletions README.md
Expand Up @@ -25,6 +25,13 @@ legitimate zero bytes. In the encoding step, returning the length saves the
overhead of calling strlen() on the output. If you insist on the trailing zero,
you can easily add it yourself at the given offset.

## Usage and building

To use the library routines, include `base64.c` and `base64.h` into your
project. No special compiler flags are necessary to build the files. If your
target supports it, compile with `-mssse3` or equivalent to benefit from SSSE3
acceleration.

## API reference

### Encoding
Expand Down

0 comments on commit ab281dc

Please sign in to comment.