forked from greenlion/ssb-dbgen
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Now using `DSS_HUGE` instead of `long` in all of of the `bcd2.*` functions. * "Split" the `DSS_HUGE` format specifier macro in `config.h` so that the specifier can be used separately. * `bcd2.*` now depend on `config.h`
- Loading branch information
Showing
4 changed files
with
36 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,14 @@ | ||
/* | ||
* Sccsid: @(#)bcd2.h 2.1.8.1 | ||
*/ | ||
int bin_bcd2(long binary, long *low_res, long *high_res); | ||
int bcd2_bin(long *dest, long bcd); | ||
int bcd2_add(long *bcd_low, long *bcd_high, long addend); | ||
int bcd2_sub(long *bcd_low, long *bcd_high, long subend); | ||
int bcd2_mul(long *bcd_low, long *bcd_high, long multiplier); | ||
int bcd2_div(long *bcd_low, long *bcd_high, long divisor); | ||
long bcd2_mod(long *bcd_low, long *bcd_high, long modulo); | ||
long bcd2_cmp(long *bcd_low, long *bcd_high, long compare); | ||
|
||
#include "config.h" | ||
|
||
int bin_bcd2(DSS_HUGE binary, DSS_HUGE *low_res, DSS_HUGE *high_res); | ||
int bcd2_bin(DSS_HUGE *dest, DSS_HUGE bcd); | ||
int bcd2_add(DSS_HUGE *bcd_low, DSS_HUGE *bcd_high, DSS_HUGE addend); | ||
int bcd2_sub(DSS_HUGE *bcd_low, DSS_HUGE *bcd_high, DSS_HUGE subend); | ||
int bcd2_mul(DSS_HUGE *bcd_low, DSS_HUGE *bcd_high, DSS_HUGE multiplier); | ||
int bcd2_div(DSS_HUGE *bcd_low, DSS_HUGE *bcd_high, DSS_HUGE divisor); | ||
DSS_HUGE bcd2_mod(DSS_HUGE *bcd_low, DSS_HUGE *bcd_high, DSS_HUGE modulo); | ||
DSS_HUGE bcd2_cmp(DSS_HUGE *bcd_low, DSS_HUGE *bcd_high, DSS_HUGE compare); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters