fastmod
A C/C++ header file for fast 32-bit division remainders (and divisibility tests) on 64-bit hardware.
File Explorer
- ci.yml
- config.cmake.in
- hashbenches-skylake-clang.png
- fastmod.h
- CMakeLists.txt
- cppincludetest1.cpp
- cppincludetest2.cpp
- moddivnbenchmark.cpp
- modnbenchmark.cpp
- unit.c
- CMakeLists.txt
- LICENSE
- Makefile
- README.md
# Use via CDN
jsDelivrjsDelivr serves any public GitHub repository as a CDN with zero setup. Pick a version and a file to get a ready-to-paste link and snippet.
Command Glossary
Commands referenced in this DOCs, explained below.
cmake
View Details ▼
cmake
Cross-platform build automation system, that generates recipes for native build systems.
cmake {{path/to/project_directory}}
Generate a build recipe in the current directory with `CMakeLists.txt` from a project directory:
cmake --build {{path/to/build_directory}}
Use a generated recipe in a given directory to build artifacts:
cmake --install {{path/to/build_directory}} --strip
Install the build artifacts into `/usr/local/` and strip debugging symbols:
ctest
View Details ▼
ctest
CMake test driver program.
ctest
Run all tests in the current CMake build directory:
ctest {{[-j|--parallel]}} 4
Run all tests defined in the CMake build directory, executing 4 [j]obs at a time in parallel:
ctest {{[-j|--parallel]}}
Run all tests on all processor cores:
fastmod
View Details ▼
fastmod
A fast partial replacement for the `codemod` tool, replace and replace all in the whole codebase.
Regexes are matched by Rust `regex` crate.
fastmod {{regex}} {{replacement}}
Replace a `regex` in all files of the current directory, ignoring files on `.ignore` and `.gitignore`:
fastmod --ignore-case {{regex}} {{replacement}} -- {{path/to/file_or_directory1 path/to/file_or_directory2 ...}}
Replace a `regex` in case-insensitive mode in specific files or directories:
fastmod {{regex}} {{replacement}} --dir {{path/to/directory}} --iglob '{{**/*.{js,json}}}'
Replace a `regex` in a specific directory in files filtered with a case-insensitive glob pattern:
git clone
View Details ▼
git clone
Clone an existing repository.
git clone {{remote_repository_location}} {{path/to/directory}}
Clone an existing repository into a new directory (the default directory is the repository name):
git clone --recursive {{remote_repository_location}}
Clone an existing repository and its submodules:
git clone {{[-n|--no-checkout]}} {{remote_repository_location}}
Clone only the `.git` directory of an existing repository:
# Project Badges
-
License Visit
