-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdec_arith_decl_pure.go
55 lines (41 loc) · 1.11 KB
/
dec_arith_decl_pure.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
// Copyright 2020 Denis Bernard <[email protected]>. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// +build decimal_pure_go !amd64
package decimal
func mul10WW(x, y Word) (z1, z0 Word) {
return mul10WW_g(x, y)
}
func div10WW(x1, x0, y Word) (q, r Word) {
return div10WW_g(x1, x0, y)
}
func add10VV(z, x, y []Word) (c Word) {
return add10VV_g(z, x, y)
}
func sub10VV(z, x, y []Word) (c Word) {
return sub10VV_g(z, x, y)
}
func add10VW(z, x []Word, y Word) (c Word) {
return add10VW_g(z, x, y)
}
func sub10VW(z, x []Word, y Word) (c Word) {
return sub10VW_g(z, x, y)
}
func shl10VU(z, x []Word, s uint) (c Word) {
return shl10VU_g(z, x, s)
}
func shr10VU(z, x []Word, s uint) (c Word) {
return shr10VU_g(z, x, s)
}
func mulAdd10VWW(z, x []Word, y, r Word) (c Word) {
return mulAdd10VWW_g(z, x, y, r)
}
func addMul10VVW(z, x []Word, y Word) (c Word) {
return addMul10VVW_g(z, x, y)
}
func div10VWW(z, x []Word, y, xn Word) (r Word) {
return div10VWW_g(z, x, y, xn)
}
func div10W(n1, n0 Word) (q, r Word) {
return div10W_g(n1, n0)
}