Home | History | Annotate | Download | only in big
      1 // Copyright 2015 The Go Authors.  All rights reserved.
      2 // Use of this source code is governed by a BSD-style
      3 // license that can be found in the LICENSE file.
      4 
      5 // +build math_big_pure_go
      6 
      7 package big
      8 
      9 func mulWW(x, y Word) (z1, z0 Word) {
     10 	return mulWW_g(x, y)
     11 }
     12 
     13 func divWW(x1, x0, y Word) (q, r Word) {
     14 	return divWW_g(x1, x0, y)
     15 }
     16 
     17 func addVV(z, x, y []Word) (c Word) {
     18 	return addVV_g(z, x, y)
     19 }
     20 
     21 func subVV(z, x, y []Word) (c Word) {
     22 	return subVV_g(z, x, y)
     23 }
     24 
     25 func addVW(z, x []Word, y Word) (c Word) {
     26 	return addVW_g(z, x, y)
     27 }
     28 
     29 func subVW(z, x []Word, y Word) (c Word) {
     30 	return subVW_g(z, x, y)
     31 }
     32 
     33 func shlVU(z, x []Word, s uint) (c Word) {
     34 	return shlVU_g(z, x, s)
     35 }
     36 
     37 func shrVU(z, x []Word, s uint) (c Word) {
     38 	return shrVU_g(z, x, s)
     39 }
     40 
     41 func mulAddVWW(z, x []Word, y, r Word) (c Word) {
     42 	return mulAddVWW_g(z, x, y, r)
     43 }
     44 
     45 func addMulVVW(z, x []Word, y Word) (c Word) {
     46 	return addMulVVW_g(z, x, y)
     47 }
     48 
     49 func divWVW(z []Word, xn Word, x []Word, y Word) (r Word) {
     50 	return divWVW_g(z, xn, x, y)
     51 }
     52 
     53 func bitLen(x Word) (n int) {
     54 	return bitLen_g(x)
     55 }
     56