Skip to content

Commit

Permalink
Fix typos in README.md (#120)
Browse files Browse the repository at this point in the history
particulary -> particularly
divison -> division
give at significant speedup -> give a significant speedup
  • Loading branch information
ZhouYuChen authored Oct 7, 2024
1 parent cbb7b3f commit e4d0295
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ vector division which provides an even larger speedup. You can test how much
speedup you can achieve on your CPU using the [benchmark](#benchmark-program)
program.

libdivide is compatible with 8-bit microcontrollers, such as the AVR series: [the CI build includes a AtMega2560 target](test/avr/readme.md). Since low end hardware such as this often do not include a hardware divider, libdivide is particulary useful. In addition to the runtime [C](https://github.com/ridiculousfish/libdivide/blob/master/doc/C-API.md) & [C++](https://github.com/ridiculousfish/libdivide/blob/master/doc/CPP-API.md) APIs, a set of [predefined macros](constant_fast_div.h) and [templates](constant_fast_div.hpp) is included to speed up division by 16-bit constants: division by a 16-bit constant is [not optimized by avr-gcc on 8-bit systems](https://stackoverflow.com/questions/47994933/why-doesnt-gcc-or-clang-on-arm-use-division-by-invariant-integers-using-multip).
libdivide is compatible with 8-bit microcontrollers, such as the AVR series: [the CI build includes a AtMega2560 target](test/avr/readme.md). Since low end hardware such as this often do not include a hardware divider, libdivide is particularly useful. In addition to the runtime [C](https://github.com/ridiculousfish/libdivide/blob/master/doc/C-API.md) & [C++](https://github.com/ridiculousfish/libdivide/blob/master/doc/CPP-API.md) APIs, a set of [predefined macros](constant_fast_div.h) and [templates](constant_fast_div.hpp) is included to speed up division by 16-bit constants: division by a 16-bit constant is [not optimized by avr-gcc on 8-bit systems](https://stackoverflow.com/questions/47994933/why-doesnt-gcc-or-clang-on-arm-use-division-by-invariant-integers-using-multip).

See https://libdivide.com for more information on libdivide.

Expand All @@ -40,7 +40,7 @@ void divide(std::vector<int64_t>& vect, int64_t divisor)
The second code snippet runs much faster, it uses libdivide to compute the
integer division using a sequence of shift, add and multiply instructions hence
avoiding the slow integer divison operation.
avoiding the slow integer division operation.
```C++
#include "libdivide.h"
Expand All @@ -55,7 +55,7 @@ void divide(std::vector<int64_t>& vect, int64_t divisor)
}
```

Generally libdivide will give at significant speedup if:
Generally libdivide will give a significant speedup if:

* The divisor is only known at runtime
* The divisor is reused multiple times e.g. in a loop
Expand Down

0 comments on commit e4d0295

Please sign in to comment.