1*9512fe85Sahl /* 2*9512fe85Sahl * CDDL HEADER START 3*9512fe85Sahl * 4*9512fe85Sahl * The contents of this file are subject to the terms of the 5*9512fe85Sahl * Common Development and Distribution License (the "License"). 6*9512fe85Sahl * You may not use this file except in compliance with the License. 7*9512fe85Sahl * 8*9512fe85Sahl * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9*9512fe85Sahl * or http://www.opensolaris.org/os/licensing. 10*9512fe85Sahl * See the License for the specific language governing permissions 11*9512fe85Sahl * and limitations under the License. 12*9512fe85Sahl * 13*9512fe85Sahl * When distributing Covered Code, include this CDDL HEADER in each 14*9512fe85Sahl * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15*9512fe85Sahl * If applicable, add the following below this CDDL HEADER, with the 16*9512fe85Sahl * fields enclosed by brackets "[]" replaced with your own identifying 17*9512fe85Sahl * information: Portions Copyright [yyyy] [name of copyright owner] 18*9512fe85Sahl * 19*9512fe85Sahl * CDDL HEADER END 20*9512fe85Sahl */ 21*9512fe85Sahl 22*9512fe85Sahl /* 23*9512fe85Sahl * Copyright 2006 Sun Microsystems, Inc. All rights reserved. 24*9512fe85Sahl * Use is subject to license terms. 25*9512fe85Sahl */ 26*9512fe85Sahl 27*9512fe85Sahl #pragma D option quiet 28*9512fe85Sahl 29*9512fe85Sahl BEGIN 30*9512fe85Sahl { 31*9512fe85Sahl @["j-church"] = lquantize(1, 0, 10, 1, 100); 32*9512fe85Sahl @["j-church"] = lquantize(1, 0, 10, 1, -99); 33*9512fe85Sahl @["j-church"] = lquantize(1, 0, 10, 1, -1); 34*9512fe85Sahl val = 123; 35*9512fe85Sahl } 36*9512fe85Sahl 37*9512fe85Sahl BEGIN 38*9512fe85Sahl { 39*9512fe85Sahl @["k-ingleside"] = lquantize(1, 0, 10, 1, -val); 40*9512fe85Sahl } 41*9512fe85Sahl 42*9512fe85Sahl BEGIN 43*9512fe85Sahl { 44*9512fe85Sahl @["l-taraval"] = lquantize(0, 0, 10, 1, -val); 45*9512fe85Sahl @["l-taraval"] = lquantize(-1, 0, 10, 1, -val); 46*9512fe85Sahl @["l-taraval"] = lquantize(1, 0, 10, 1, val); 47*9512fe85Sahl @["l-taraval"] = lquantize(1, 0, 10, 1, val); 48*9512fe85Sahl } 49*9512fe85Sahl 50*9512fe85Sahl BEGIN 51*9512fe85Sahl { 52*9512fe85Sahl @["m-oceanview"] = lquantize(1, 0, 10, 1, (1 << 63) - 1); 53*9512fe85Sahl @["m-oceanview"] = lquantize(1, 0, 10, 1); 54*9512fe85Sahl @["m-oceanview"] = lquantize(2, 0, 10, 1, (1 << 63) - 1); 55*9512fe85Sahl @["m-oceanview"] = lquantize(8, 0, 10, 1, 400000); 56*9512fe85Sahl } 57*9512fe85Sahl 58*9512fe85Sahl BEGIN 59*9512fe85Sahl { 60*9512fe85Sahl @["n-judah"] = lquantize(1, 0, 10, 1, val); 61*9512fe85Sahl @["n-judah"] = lquantize(2, 0, 10, 1, val); 62*9512fe85Sahl @["n-judah"] = lquantize(2, 0, 10, 1, val); 63*9512fe85Sahl @["n-judah"] = lquantize(2, 0, 10, 1); 64*9512fe85Sahl } 65*9512fe85Sahl 66*9512fe85Sahl BEGIN 67*9512fe85Sahl { 68*9512fe85Sahl this->i = 1; 69*9512fe85Sahl this->val = (1 << 63) - 1; 70*9512fe85Sahl 71*9512fe85Sahl @["f-market"] = lquantize(this->i, 0, 10, 1, this->val); 72*9512fe85Sahl this->i++; 73*9512fe85Sahl this->val = ((1 << 63) - 1) / this->i; 74*9512fe85Sahl 75*9512fe85Sahl @["f-market"] = lquantize(this->i, 0, 10, 1, this->val); 76*9512fe85Sahl this->i++; 77*9512fe85Sahl this->val = ((1 << 63) - 1) / this->i; 78*9512fe85Sahl 79*9512fe85Sahl @["f-market"] = lquantize(this->i, 0, 10, 1, this->val); 80*9512fe85Sahl this->i++; 81*9512fe85Sahl this->val = ((1 << 63) - 1) / this->i; 82*9512fe85Sahl 83*9512fe85Sahl @["f-market"] = lquantize(this->i, 0, 10, 1, this->val); 84*9512fe85Sahl this->i++; 85*9512fe85Sahl this->val = ((1 << 63) - 1) / this->i; 86*9512fe85Sahl 87*9512fe85Sahl @["f-market"] = lquantize(this->i, 0, 10, 1, this->val); 88*9512fe85Sahl this->i++; 89*9512fe85Sahl this->val = ((1 << 63) - 1) / this->i; 90*9512fe85Sahl 91*9512fe85Sahl @["f-market"] = lquantize(this->i, 0, 10, 1, this->val); 92*9512fe85Sahl this->i++; 93*9512fe85Sahl this->val = ((1 << 63) - 1) / this->i; 94*9512fe85Sahl 95*9512fe85Sahl @["f-market"] = lquantize(this->i, 0, 10, 1, this->val); 96*9512fe85Sahl this->i++; 97*9512fe85Sahl this->val = ((1 << 63) - 1) / this->i; 98*9512fe85Sahl } 99*9512fe85Sahl 100*9512fe85Sahl BEGIN 101*9512fe85Sahl { 102*9512fe85Sahl this->i = 1; 103*9512fe85Sahl 104*9512fe85Sahl /* 105*9512fe85Sahl * We want to test the ability to sort very large quantizations 106*9512fe85Sahl * that differ by a small amount. Ideally, they would differ only 107*9512fe85Sahl * by 1 -- but that is smaller than the precision of long doubles of 108*9512fe85Sahl * this magnitude on x86. To assure that the same test works on x86 109*9512fe85Sahl * just as it does on SPARC, we pick a value that is just larger than 110*9512fe85Sahl * the precision at this magnitude. It should go without saying that 111*9512fe85Sahl * this robustness on new ISAs very much depends on the precision 112*9512fe85Sahl * of the long double representation. 113*9512fe85Sahl */ 114*9512fe85Sahl this->val = (1 << 63) - 7; 115*9512fe85Sahl 116*9512fe85Sahl @["s-castro"] = lquantize(this->i, 0, 10, 1, this->val); 117*9512fe85Sahl this->i++; 118*9512fe85Sahl this->val = ((1 << 63) - 1) / this->i; 119*9512fe85Sahl 120*9512fe85Sahl @["s-castro"] = lquantize(this->i, 0, 10, 1, this->val); 121*9512fe85Sahl this->i++; 122*9512fe85Sahl this->val = ((1 << 63) - 1) / this->i; 123*9512fe85Sahl 124*9512fe85Sahl @["s-castro"] = lquantize(this->i, 0, 10, 1, this->val); 125*9512fe85Sahl this->i++; 126*9512fe85Sahl this->val = ((1 << 63) - 1) / this->i; 127*9512fe85Sahl 128*9512fe85Sahl @["s-castro"] = lquantize(this->i, 0, 10, 1, this->val); 129*9512fe85Sahl this->i++; 130*9512fe85Sahl this->val = ((1 << 63) - 1) / this->i; 131*9512fe85Sahl 132*9512fe85Sahl @["s-castro"] = lquantize(this->i, 0, 10, 1, this->val); 133*9512fe85Sahl this->i++; 134*9512fe85Sahl this->val = ((1 << 63) - 1) / this->i; 135*9512fe85Sahl 136*9512fe85Sahl @["s-castro"] = lquantize(this->i, 0, 10, 1, this->val); 137*9512fe85Sahl this->i++; 138*9512fe85Sahl this->val = ((1 << 63) - 1) / this->i; 139*9512fe85Sahl 140*9512fe85Sahl @["s-castro"] = lquantize(this->i, 0, 10, 1, this->val); 141*9512fe85Sahl this->i++; 142*9512fe85Sahl this->val = ((1 << 63) - 1) / this->i; 143*9512fe85Sahl } 144*9512fe85Sahl 145*9512fe85Sahl BEGIN 146*9512fe85Sahl { 147*9512fe85Sahl exit(0); 148*9512fe85Sahl } 149