Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit2b83160

Browse files
author
Thomas G. Lockhart
committed
Add integer/money arithmetic from Darren King.
1 parent75aef05 commit2b83160

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

‎src/include/utils/cash.h

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,22 @@ extern bool cash_ge(Cash *c1, Cash *c2);
2424

2525
externCash*cash_pl(Cash*c1,Cash*c2);
2626
externCash*cash_mi(Cash*c1,Cash*c2);
27-
externCash*cash_mul(Cash*c,float8*f);
28-
externCash*cash_div(Cash*c,float8*f);
27+
28+
externCash*cash_mul_flt8(Cash*c,float8*f);
29+
externCash*cash_div_flt8(Cash*c,float8*f);
30+
externCash*flt8_mul_cash(float8*f,Cash*c);
31+
32+
externCash*cash_mul_flt4(Cash*c,float4*f);
33+
externCash*cash_div_flt4(Cash*c,float4*f);
34+
externCash*flt4_mul_cash(float4*f,Cash*c);
35+
36+
externCash*cash_mul_int4(Cash*c,int4i);
37+
externCash*cash_div_int4(Cash*c,int4i);
38+
externCash*int4_mul_cash(int4i,Cash*c);
39+
40+
externCash*cash_mul_int2(Cash*c,int2s);
41+
externCash*cash_div_int2(Cash*c,int2s);
42+
externCash*int2_mul_cash(int2s,Cash*c);
2943

3044
externCash*cashlarger(Cash*c1,Cash*c2);
3145
externCash*cashsmaller(Cash*c1,Cash*c2);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp