Source file src/internal/strconv/export_test.go

     1  // Copyright 2017 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  package strconv
     6  
     7  type Uint128 = uint128
     8  
     9  const (
    10  	Pow10Min = pow10Min
    11  	Pow10Max = pow10Max
    12  )
    13  
    14  var (
    15  	MulLog10_2       = mulLog10_2
    16  	MulLog2_10       = mulLog2_10
    17  	ParseFloatPrefix = parseFloatPrefix
    18  	Pow10            = pow10
    19  	Umul128          = umul128
    20  	Umul192          = umul192
    21  )
    22  
    23  func NewDecimal(i uint64) *decimal {
    24  	d := new(decimal)
    25  	d.Assign(i)
    26  	return d
    27  }
    28  
    29  func SetOptimize(b bool) bool {
    30  	old := optimize
    31  	optimize = b
    32  	return old
    33  }
    34  

View as plain text