Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(5)

Delta Between Two Patch Sets: src/pkg/math/all_test.go

Issue 217109: code review 217109: math: added ilogb, logb, remainder, tests and special c... (Closed)
Left Patch Set: Created 15 years ago
Right Patch Set: code review 217109: math: added ilogb, logb, remainder, tests and special c... Created 15 years ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « src/pkg/math/Makefile ('k') | src/pkg/math/exp_386.s » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
1 // Copyright 2009 The Go Authors. All rights reserved. 1 // Copyright 2009 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style 2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file. 3 // license that can be found in the LICENSE file.
4 4
5 package math_test 5 package math_test
6 6
7 import ( 7 import (
8 "fmt" 8 "fmt"
9 . "math" 9 . "math"
10 "testing" 10 "testing"
(...skipping 759 matching lines...) Expand 10 before | Expand all | Expand 10 after
770 Inf(1), 770 Inf(1),
771 NaN(), 771 NaN(),
772 } 772 }
773 773
774 var vfilogbSC = []float64{ 774 var vfilogbSC = []float64{
775 Inf(-1), 775 Inf(-1),
776 0, 776 0,
777 Inf(1), 777 Inf(1),
778 NaN(), 778 NaN(),
779 } 779 }
780 var ilogbSC= []int{ 780 var ilogbSC = []int{
781 MaxInt32, 781 MaxInt32,
782 MinInt32, 782 MinInt32,
783 MaxInt32, 783 MaxInt32,
784 MaxInt32, 784 MaxInt32,
785 } 785 }
786 786
787 var vflgammaSC = []float64{ 787 var vflgammaSC = []float64{
788 Inf(-1), 788 Inf(-1),
789 -3, 789 -3,
790 0, 790 0,
(...skipping 22 matching lines...) Expand all
813 Inf(1), 813 Inf(1),
814 NaN(), 814 NaN(),
815 } 815 }
816 816
817 var vflogbSC = []float64{ 817 var vflogbSC = []float64{
818 Inf(-1), 818 Inf(-1),
819 0, 819 0,
820 Inf(1), 820 Inf(1),
821 NaN(), 821 NaN(),
822 } 822 }
823 var logbSC= []float64{ 823 var logbSC = []float64{
824 Inf(1), 824 Inf(1),
825 Inf(-1), 825 Inf(-1),
826 Inf(1), 826 Inf(1),
827 NaN(), 827 NaN(),
828 } 828 }
829 829
830 var vflog1pSC = []float64{ 830 var vflog1pSC = []float64{
831 Inf(-1), 831 Inf(-1),
832 -Pi, 832 -Pi,
833 -1, 833 -1,
(...skipping 987 matching lines...) Expand 10 before | Expand all | Expand 10 after
1821 } 1821 }
1822 1822
1823 func BenchmarkPowFrac(b *testing.B) { 1823 func BenchmarkPowFrac(b *testing.B) {
1824 for i := 0; i < b.N; i++ { 1824 for i := 0; i < b.N; i++ {
1825 Pow(2.5, 1.5) 1825 Pow(2.5, 1.5)
1826 } 1826 }
1827 } 1827 }
1828 1828
1829 func BenchmarkRemainder(b *testing.B) { 1829 func BenchmarkRemainder(b *testing.B) {
1830 for i := 0; i < b.N; i++ { 1830 for i := 0; i < b.N; i++ {
1831 » » Fmod(10, 3) 1831 » » Remainder(10, 3)
1832 } 1832 }
1833 } 1833 }
1834 1834
1835 func BenchmarkSin(b *testing.B) { 1835 func BenchmarkSin(b *testing.B) {
1836 for i := 0; i < b.N; i++ { 1836 for i := 0; i < b.N; i++ {
1837 Sin(.5) 1837 Sin(.5)
1838 } 1838 }
1839 } 1839 }
1840 1840
1841 func BenchmarkSincos(b *testing.B) { 1841 func BenchmarkSincos(b *testing.B) {
(...skipping 29 matching lines...) Expand all
1871 func BenchmarkTanh(b *testing.B) { 1871 func BenchmarkTanh(b *testing.B) {
1872 for i := 0; i < b.N; i++ { 1872 for i := 0; i < b.N; i++ {
1873 Tanh(2.5) 1873 Tanh(2.5)
1874 } 1874 }
1875 } 1875 }
1876 func BenchmarkTrunc(b *testing.B) { 1876 func BenchmarkTrunc(b *testing.B) {
1877 for i := 0; i < b.N; i++ { 1877 for i := 0; i < b.N; i++ {
1878 Trunc(.5) 1878 Trunc(.5)
1879 } 1879 }
1880 } 1880 }
LEFTRIGHT

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b