Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Change the API of some lib2.bc functions | Gavin Howard | 2021-07-30 | 1 | -25/+29 |
| | | | | Signed-off-by: Gavin Howard <gavin@yzena.com> | ||||
* | Add more bitwise functions to lib2.bc | Gavin Howard | 2021-07-30 | 1 | -25/+95 |
| | | | | Signed-off-by: Gavin Howard <gavin@yzena.com> | ||||
* | Optimize the bitwise functions in lib2.bc with divmod | Gavin Howard | 2021-07-22 | 1 | -33/+22 |
| | | | | Signed-off-by: Gavin Howard <gavin@yzena.com> | ||||
* | Make s2un(x,n) work with max negative numbers | Gavin Howard | 2021-07-22 | 1 | -1/+13 |
| | | | | | | Also, make it truncate. Signed-off-by: Gavin Howard <gavin@yzena.com> | ||||
* | Add bitwise functions in lib2 | Gavin Howard | 2021-07-22 | 1 | -0/+109 |
| | | | | | | These were requested by Stefan Esser of FreeBSD. Signed-off-by: Gavin Howard <gavin@yzena.com> | ||||
* | Add two helper functions in lib2 that users might want | Gavin Howard | 2021-07-22 | 1 | -1/+6 |
| | | | | Signed-off-by: Gavin Howard <gavin@yzena.com> | ||||
* | Add the redefine option to the bc help text | Gavin Howard | 2021-07-21 | 1 | -0/+11 |
| | | | | Signed-off-by: Gavin Howard <gavin@yzena.com> | ||||
* | Fix an oversight | Gavin Howard | 2021-06-22 | 1 | -2/+2 |
| | | | | Signed-off-by: Gavin Howard <gavin@yzena.com> | ||||
* | Add environment variables to help and manuals | Gavin Howard | 2021-06-22 | 2 | -0/+71 |
| | | | | | | Also, add the plumbing for help to print defaults. Signed-off-by: Gavin Howard <gavin@yzena.com> | ||||
* | Remove compiler warnings | Gavin Howard | 2021-06-19 | 2 | -20/+20 |
| | | | | Signed-off-by: Gavin Howard <gavin@yzena.com> | ||||
* | Finish documenting `gen/` in the development manual | Gavin Howard | 2021-06-19 | 2 | -9/+104 |
| | | | | | | | This necessitated documenting algorithms from `lib2.bc` as well as documenting `strgen.c` thoroughly. Signed-off-by: Gavin Howard <gavin@yzena.com> | ||||
* | More library clean up | Gavin Howard | 2021-06-19 | 1 | -2/+2 |
| | | | | Signed-off-by: Gavin Howard <gavin@yzena.com> | ||||
* | Fix multi-digit number bugs in the bc libs | Gavin Howard | 2021-06-19 | 2 | -16/+7 |
| | | | | | | This also does some cleanup in the libs. Signed-off-by: Gavin Howard <gavin@yzena.com> | ||||
* | Do a lot of work on the development manual | Gavin Howard | 2021-06-18 | 1 | -1/+9 |
| | | | | | | | This commit also includes other documentation work related to development that I have noticed as I've gone along. Signed-off-by: Gavin Howard <gavin@yzena.com> | ||||
* | Add gcd and lcm to lib2 | Gavin Howard | 2021-06-15 | 1 | -0/+31 |
| | | | | | | I really want these. Signed-off-by: Gavin Howard <gavin@yzena.com> | ||||
* | Fix compiler warnings | Gavin Howard | 2021-04-04 | 1 | -2/+2 |
| | |||||
* | Start the process of making bc/dc work on Windows | Gavin Howard | 2021-04-04 | 3 | -14/+66 |
| | | | | | | This requires some code to make things match POSIX and especially making inline an empty string because Microsoft's compiler is picky about functions marked inline. | ||||
* | Change the bc and dc help texts | Gavin Howard | 2021-03-31 | 2 | -2/+10 |
| | |||||
* | Fix a divide by 0 bug in `root()` (lib2.bc) | Gavin Howard | 2021-03-02 | 1 | -1/+1 |
| | |||||
* | Update copyright to 2021 | Gavin Howard | 2021-01-26 | 6 | -8/+8 |
| | |||||
* | Fix an oversight | Stefan Eßer | 2020-11-30 | 1 | -6/+5 |
| | | | | | This oversight is that Gavin did not change `gen/strgen.sh` when he changed `gen/strgen.c` to remove an unused parameter. | ||||
* | Fix warnings and errors revealed by release.sh | Gavin Howard | 2020-11-25 | 1 | -7/+6 |
| | |||||
* | Remove an unneeded line | Gavin Howard | 2020-11-21 | 1 | -1/+0 |
| | |||||
* | Move more stuff around and fix all compiler errors and warnings | Gavin Howard | 2020-11-21 | 2 | -4/+11 |
| | |||||
* | Avoid clobbering `r` variable in Bessel function | Michael Forney | 2020-11-20 | 1 | -1/+1 |
| | | | | | | | The `j` function uses `r` to accumulate its result, but did not declare it with auto, causing the caller's value to be clobbered. To fix this, declare `r` as auto to make it a local variable. | ||||
* | Remove "All rights reserved" from license headers for FreeBSD | Gavin Howard | 2020-07-01 | 6 | -12/+0 |
| | | | | | | | | | | After looking up what its use was, I found this link: https://opensource.stackexchange.com/questions/2121/mit-license-and-all-rights-reserved/4403#4403 Apparently, as I was told by FreeBSD, it's obsolete. Also the licenses I have from history only say to preserve the copyright notice and "conditions below," which taken literally does not include the "All rights reserved" portion. | ||||
* | Add SPDX identifiers to files | Gavin Howard | 2020-06-30 | 6 | -0/+12 |
| | | | | This is a request from FreeBSD. | ||||
* | Edit the bc help a bit | Gavin Howard | 2020-06-30 | 1 | -0/+5 |
| | |||||
* | Remove a now unused auto from `ceil()` | Gavin Howard | 2020-06-20 | 1 | -1/+1 |
| | |||||
* | Make the implementation of `ceil()` more efficient | Gavin Howard | 2020-06-19 | 1 | -2/+1 |
| | |||||
* | Fix a bug in lib2.bc's `ceil()` function | Gavin Howard | 2020-06-10 | 1 | -2/+3 |
| | | | | | | | The bug is that when the digit that is one place farther than the position that the number will be truncated to is 0, `ceil()` returns the same number, even if digits after it are greater than 0. This commit fixes that. | ||||
* | Fix style in lib2.bc | Gavin Howard | 2020-04-28 | 1 | -1/+1 |
| | |||||
* | Merge branch 'master' into rand | Gavin Howard | 2020-03-11 | 2 | -5/+38 |
|\ | |||||
| * | Fix bugs in the new function | Gavin Howard | 2020-03-08 | 1 | -1/+3 |
| | | |||||
| * | Add a function to lib2.bc | Gavin Howard | 2020-03-08 | 1 | -0/+4 |
| | | |||||
| * | Tweak lib2.bc | Gavin Howard | 2020-03-08 | 1 | -4/+4 |
| | | |||||
| * | Add a license header to a file that is missing it | Gavin Howard | 2020-02-23 | 1 | -1/+28 |
| | | |||||
* | | Merge branch 'master' into rand | Gavin Howard | 2020-01-15 | 5 | -6/+6 |
|\| | |||||
| * | Update copyright year 2019 --> 2020. | Zach van Rijn | 2020-01-15 | 5 | -6/+6 |
| | | |||||
* | | Add the brand() function | Gavin Howard | 2019-11-29 | 1 | -0/+1 |
| | | |||||
* | | Make more things errors pertaining to rand | Gavin Howard | 2019-11-22 | 1 | -1/+1 |
| | | | | | | | | | | For example, `irand()` only accepts positive, non-zero integers now. This also fixes manuals. | ||||
* | | Add a random number generator to bc | Gavin Howard | 2019-11-22 | 1 | -0/+9 |
|/ | | | | | | | This random number generator is a pseudo-random number generator, and it is seeded. The code to take care of the seed is all included. Code is also added to generate numbers of arbitrary size and arbitrary precision. | ||||
* | Improve the root and cbrt API's | Gavin Howard | 2019-10-29 | 1 | -0/+1 |
| | |||||
* | Add root and cbrt function to lib2 | Gavin Howard | 2019-10-25 | 1 | -0/+23 |
| | |||||
* | Add documentation for the -P/--no-prompt option | Gavin Howard | 2019-05-26 | 2 | -0/+8 |
| | |||||
* | Update all documentation that I could find | Gavin Howard | 2019-05-25 | 2 | -7/+8 |
| | | | | | I might have missed a few things here and there, but those can be fixed in bug fix releases. However, I do actually think I got it all. | ||||
* | Add atan2 to the extended math library with tests | Gavin Howard | 2019-05-23 | 1 | -0/+16 |
| | |||||
* | Another style change to strgen.sh to make sure it is POSIX only | Gavin Howard | 2019-04-22 | 1 | -2/+4 |
| | |||||
* | Slight fix to style on strgen.sh | Gavin Howard | 2019-04-22 | 1 | -1/+1 |
| | |||||
* | Split test into two parts to prevent parse error if the variable is unset | Stefan Esser | 2019-04-22 | 1 | -1/+1 |
| |