Skip to content

Commit

Permalink
Merge pull request #22 from lemire/more_ci
Browse files Browse the repository at this point in the history
adding more ci
  • Loading branch information
lemire authored Dec 4, 2023
2 parents 9a972c0 + dd19133 commit 80cf6ad
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 4 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/ubuntu22.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Ubuntu 22.04 CI (GCC 11)

on: [push, pull_request]

jobs:
ubuntu-build:
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
include:
- {cfg: Release}
- {cfg: Debug}
steps:
- uses: actions/checkout@v3
- name: Use cmake
run: |
mkdir build &&
cd build &&
cmake .. -DCMAKE_BUILD_TYPE=${{matrix.cfg}} &&
cmake --build . &&
ctest --output-on-failure
28 changes: 28 additions & 0 deletions .github/workflows/vs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: VS17-CI

on: [push, pull_request]

jobs:
ci:
name: vs17/${{matrix.arch}}/${{matrix.cfg}}
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
include:
- {gen: Visual Studio 17 2022, arch: x64, cfg: Release}
- {gen: Visual Studio 17 2022, arch: x64, cfg: Debug}
steps:
- name: checkout
uses: actions/checkout@v3
- name: configure
run: |
cmake -S . -B build -G "${{matrix.gen}}" -A ${{matrix.arch}}
- name: build
run: |
cmake --build build --verbose --config ${{matrix.cfg}} --parallel
- name: test
run: |
cd build &&
ctest --output-on-failure -C ${{matrix.cfg}}
8 changes: 4 additions & 4 deletions src/despacer.c
Original file line number Diff line number Diff line change
Expand Up @@ -221,8 +221,8 @@ size_t despace64(char *bytes, size_t howmany) {
* Result is stored in "out", where the caller is responsible for memory
* allocation.
*/
size_t despace_to(const char *__restrict__ bytes, size_t howmany,
char *__restrict__ out) {
size_t despace_to(const char *restrict bytes, size_t howmany,
char *restrict out) {
size_t pos = 0;
for (size_t i = 0; i < howmany; i++) {
char c = bytes[i];
Expand Down Expand Up @@ -915,8 +915,8 @@ size_t vbmi2_despace(char *bytes, size_t howmany) {
#include <x86intrin.h>
#endif

size_t sse42_despace_to(const char *__restrict__ bytes,
size_t howmany, char *__restrict__ out) {
size_t sse42_despace_to(const char *restrict bytes,
size_t howmany, char *restrict out) {
size_t pos = 0;
__m128i targetchars =
_mm_set_epi8(' ', '\n', '\r', ' ', ' ', '\n', '\r', ' ', ' ', '\n', '\r',
Expand Down

0 comments on commit 80cf6ad

Please sign in to comment.