9512fe850e98fdd448c638ca63fdd92a8a510255ahl/*
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * CDDL HEADER START
9512fe850e98fdd448c638ca63fdd92a8a510255ahl *
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * The contents of this file are subject to the terms of the
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * Common Development and Distribution License (the "License").
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * You may not use this file except in compliance with the License.
9512fe850e98fdd448c638ca63fdd92a8a510255ahl *
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * or http://www.opensolaris.org/os/licensing.
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * See the License for the specific language governing permissions
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * and limitations under the License.
9512fe850e98fdd448c638ca63fdd92a8a510255ahl *
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * When distributing Covered Code, include this CDDL HEADER in each
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * If applicable, add the following below this CDDL HEADER, with the
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * fields enclosed by brackets "[]" replaced with your own identifying
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * information: Portions Copyright [yyyy] [name of copyright owner]
9512fe850e98fdd448c638ca63fdd92a8a510255ahl *
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * CDDL HEADER END
9512fe850e98fdd448c638ca63fdd92a8a510255ahl */
9512fe850e98fdd448c638ca63fdd92a8a510255ahl
9512fe850e98fdd448c638ca63fdd92a8a510255ahl/*
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * Use is subject to license terms.
9512fe850e98fdd448c638ca63fdd92a8a510255ahl */
9512fe850e98fdd448c638ca63fdd92a8a510255ahl
9512fe850e98fdd448c638ca63fdd92a8a510255ahl#pragma ident "%Z%%M% %I% %E% SMI"
9512fe850e98fdd448c638ca63fdd92a8a510255ahl
9512fe850e98fdd448c638ca63fdd92a8a510255ahl#pragma D option quiet
9512fe850e98fdd448c638ca63fdd92a8a510255ahl
9512fe850e98fdd448c638ca63fdd92a8a510255ahlBEGIN
9512fe850e98fdd448c638ca63fdd92a8a510255ahl{
9512fe850e98fdd448c638ca63fdd92a8a510255ahl @["j-church"] = lquantize(1, 0, 10, 1, 100);
9512fe850e98fdd448c638ca63fdd92a8a510255ahl @["j-church"] = lquantize(1, 0, 10, 1, -99);
9512fe850e98fdd448c638ca63fdd92a8a510255ahl @["j-church"] = lquantize(1, 0, 10, 1, -1);
9512fe850e98fdd448c638ca63fdd92a8a510255ahl val = 123;
9512fe850e98fdd448c638ca63fdd92a8a510255ahl}
9512fe850e98fdd448c638ca63fdd92a8a510255ahl
9512fe850e98fdd448c638ca63fdd92a8a510255ahlBEGIN
9512fe850e98fdd448c638ca63fdd92a8a510255ahl{
9512fe850e98fdd448c638ca63fdd92a8a510255ahl @["k-ingleside"] = lquantize(1, 0, 10, 1, -val);
9512fe850e98fdd448c638ca63fdd92a8a510255ahl}
9512fe850e98fdd448c638ca63fdd92a8a510255ahl
9512fe850e98fdd448c638ca63fdd92a8a510255ahlBEGIN
9512fe850e98fdd448c638ca63fdd92a8a510255ahl{
9512fe850e98fdd448c638ca63fdd92a8a510255ahl @["l-taraval"] = lquantize(0, 0, 10, 1, -val);
9512fe850e98fdd448c638ca63fdd92a8a510255ahl @["l-taraval"] = lquantize(-1, 0, 10, 1, -val);
9512fe850e98fdd448c638ca63fdd92a8a510255ahl @["l-taraval"] = lquantize(1, 0, 10, 1, val);
9512fe850e98fdd448c638ca63fdd92a8a510255ahl @["l-taraval"] = lquantize(1, 0, 10, 1, val);
9512fe850e98fdd448c638ca63fdd92a8a510255ahl}
9512fe850e98fdd448c638ca63fdd92a8a510255ahl
9512fe850e98fdd448c638ca63fdd92a8a510255ahlBEGIN
9512fe850e98fdd448c638ca63fdd92a8a510255ahl{
9512fe850e98fdd448c638ca63fdd92a8a510255ahl @["m-oceanview"] = lquantize(1, 0, 10, 1, (1 << 63) - 1);
9512fe850e98fdd448c638ca63fdd92a8a510255ahl @["m-oceanview"] = lquantize(1, 0, 10, 1);
9512fe850e98fdd448c638ca63fdd92a8a510255ahl @["m-oceanview"] = lquantize(2, 0, 10, 1, (1 << 63) - 1);
9512fe850e98fdd448c638ca63fdd92a8a510255ahl @["m-oceanview"] = lquantize(8, 0, 10, 1, 400000);
9512fe850e98fdd448c638ca63fdd92a8a510255ahl}
9512fe850e98fdd448c638ca63fdd92a8a510255ahl
9512fe850e98fdd448c638ca63fdd92a8a510255ahlBEGIN
9512fe850e98fdd448c638ca63fdd92a8a510255ahl{
9512fe850e98fdd448c638ca63fdd92a8a510255ahl @["n-judah"] = lquantize(1, 0, 10, 1, val);
9512fe850e98fdd448c638ca63fdd92a8a510255ahl @["n-judah"] = lquantize(2, 0, 10, 1, val);
9512fe850e98fdd448c638ca63fdd92a8a510255ahl @["n-judah"] = lquantize(2, 0, 10, 1, val);
9512fe850e98fdd448c638ca63fdd92a8a510255ahl @["n-judah"] = lquantize(2, 0, 10, 1);
9512fe850e98fdd448c638ca63fdd92a8a510255ahl}
9512fe850e98fdd448c638ca63fdd92a8a510255ahl
9512fe850e98fdd448c638ca63fdd92a8a510255ahlBEGIN
9512fe850e98fdd448c638ca63fdd92a8a510255ahl{
9512fe850e98fdd448c638ca63fdd92a8a510255ahl this->i = 1;
9512fe850e98fdd448c638ca63fdd92a8a510255ahl this->val = (1 << 63) - 1;
9512fe850e98fdd448c638ca63fdd92a8a510255ahl
9512fe850e98fdd448c638ca63fdd92a8a510255ahl @["f-market"] = lquantize(this->i, 0, 10, 1, this->val);
9512fe850e98fdd448c638ca63fdd92a8a510255ahl this->i++;
9512fe850e98fdd448c638ca63fdd92a8a510255ahl this->val = ((1 << 63) - 1) / this->i;
9512fe850e98fdd448c638ca63fdd92a8a510255ahl
9512fe850e98fdd448c638ca63fdd92a8a510255ahl @["f-market"] = lquantize(this->i, 0, 10, 1, this->val);
9512fe850e98fdd448c638ca63fdd92a8a510255ahl this->i++;
9512fe850e98fdd448c638ca63fdd92a8a510255ahl this->val = ((1 << 63) - 1) / this->i;
9512fe850e98fdd448c638ca63fdd92a8a510255ahl
9512fe850e98fdd448c638ca63fdd92a8a510255ahl @["f-market"] = lquantize(this->i, 0, 10, 1, this->val);
9512fe850e98fdd448c638ca63fdd92a8a510255ahl this->i++;
9512fe850e98fdd448c638ca63fdd92a8a510255ahl this->val = ((1 << 63) - 1) / this->i;
9512fe850e98fdd448c638ca63fdd92a8a510255ahl
9512fe850e98fdd448c638ca63fdd92a8a510255ahl @["f-market"] = lquantize(this->i, 0, 10, 1, this->val);
9512fe850e98fdd448c638ca63fdd92a8a510255ahl this->i++;
9512fe850e98fdd448c638ca63fdd92a8a510255ahl this->val = ((1 << 63) - 1) / this->i;
9512fe850e98fdd448c638ca63fdd92a8a510255ahl
9512fe850e98fdd448c638ca63fdd92a8a510255ahl @["f-market"] = lquantize(this->i, 0, 10, 1, this->val);
9512fe850e98fdd448c638ca63fdd92a8a510255ahl this->i++;
9512fe850e98fdd448c638ca63fdd92a8a510255ahl this->val = ((1 << 63) - 1) / this->i;
9512fe850e98fdd448c638ca63fdd92a8a510255ahl
9512fe850e98fdd448c638ca63fdd92a8a510255ahl @["f-market"] = lquantize(this->i, 0, 10, 1, this->val);
9512fe850e98fdd448c638ca63fdd92a8a510255ahl this->i++;
9512fe850e98fdd448c638ca63fdd92a8a510255ahl this->val = ((1 << 63) - 1) / this->i;
9512fe850e98fdd448c638ca63fdd92a8a510255ahl
9512fe850e98fdd448c638ca63fdd92a8a510255ahl @["f-market"] = lquantize(this->i, 0, 10, 1, this->val);
9512fe850e98fdd448c638ca63fdd92a8a510255ahl this->i++;
9512fe850e98fdd448c638ca63fdd92a8a510255ahl this->val = ((1 << 63) - 1) / this->i;
9512fe850e98fdd448c638ca63fdd92a8a510255ahl}
9512fe850e98fdd448c638ca63fdd92a8a510255ahl
9512fe850e98fdd448c638ca63fdd92a8a510255ahlBEGIN
9512fe850e98fdd448c638ca63fdd92a8a510255ahl{
9512fe850e98fdd448c638ca63fdd92a8a510255ahl this->i = 1;
9512fe850e98fdd448c638ca63fdd92a8a510255ahl
9512fe850e98fdd448c638ca63fdd92a8a510255ahl /*
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * We want to test the ability to sort very large quantizations
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * that differ by a small amount. Ideally, they would differ only
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * by 1 -- but that is smaller than the precision of long doubles of
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * this magnitude on x86. To assure that the same test works on x86
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * just as it does on SPARC, we pick a value that is just larger than
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * the precision at this magnitude. It should go without saying that
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * this robustness on new ISAs very much depends on the precision
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * of the long double representation.
9512fe850e98fdd448c638ca63fdd92a8a510255ahl */
9512fe850e98fdd448c638ca63fdd92a8a510255ahl this->val = (1 << 63) - 7;
9512fe850e98fdd448c638ca63fdd92a8a510255ahl
9512fe850e98fdd448c638ca63fdd92a8a510255ahl @["s-castro"] = lquantize(this->i, 0, 10, 1, this->val);
9512fe850e98fdd448c638ca63fdd92a8a510255ahl this->i++;
9512fe850e98fdd448c638ca63fdd92a8a510255ahl this->val = ((1 << 63) - 1) / this->i;
9512fe850e98fdd448c638ca63fdd92a8a510255ahl
9512fe850e98fdd448c638ca63fdd92a8a510255ahl @["s-castro"] = lquantize(this->i, 0, 10, 1, this->val);
9512fe850e98fdd448c638ca63fdd92a8a510255ahl this->i++;
9512fe850e98fdd448c638ca63fdd92a8a510255ahl this->val = ((1 << 63) - 1) / this->i;
9512fe850e98fdd448c638ca63fdd92a8a510255ahl
9512fe850e98fdd448c638ca63fdd92a8a510255ahl @["s-castro"] = lquantize(this->i, 0, 10, 1, this->val);
9512fe850e98fdd448c638ca63fdd92a8a510255ahl this->i++;
9512fe850e98fdd448c638ca63fdd92a8a510255ahl this->val = ((1 << 63) - 1) / this->i;
9512fe850e98fdd448c638ca63fdd92a8a510255ahl
9512fe850e98fdd448c638ca63fdd92a8a510255ahl @["s-castro"] = lquantize(this->i, 0, 10, 1, this->val);
9512fe850e98fdd448c638ca63fdd92a8a510255ahl this->i++;
9512fe850e98fdd448c638ca63fdd92a8a510255ahl this->val = ((1 << 63) - 1) / this->i;
9512fe850e98fdd448c638ca63fdd92a8a510255ahl
9512fe850e98fdd448c638ca63fdd92a8a510255ahl @["s-castro"] = lquantize(this->i, 0, 10, 1, this->val);
9512fe850e98fdd448c638ca63fdd92a8a510255ahl this->i++;
9512fe850e98fdd448c638ca63fdd92a8a510255ahl this->val = ((1 << 63) - 1) / this->i;
9512fe850e98fdd448c638ca63fdd92a8a510255ahl
9512fe850e98fdd448c638ca63fdd92a8a510255ahl @["s-castro"] = lquantize(this->i, 0, 10, 1, this->val);
9512fe850e98fdd448c638ca63fdd92a8a510255ahl this->i++;
9512fe850e98fdd448c638ca63fdd92a8a510255ahl this->val = ((1 << 63) - 1) / this->i;
9512fe850e98fdd448c638ca63fdd92a8a510255ahl
9512fe850e98fdd448c638ca63fdd92a8a510255ahl @["s-castro"] = lquantize(this->i, 0, 10, 1, this->val);
9512fe850e98fdd448c638ca63fdd92a8a510255ahl this->i++;
9512fe850e98fdd448c638ca63fdd92a8a510255ahl this->val = ((1 << 63) - 1) / this->i;
9512fe850e98fdd448c638ca63fdd92a8a510255ahl}
9512fe850e98fdd448c638ca63fdd92a8a510255ahl
9512fe850e98fdd448c638ca63fdd92a8a510255ahlBEGIN
9512fe850e98fdd448c638ca63fdd92a8a510255ahl{
9512fe850e98fdd448c638ca63fdd92a8a510255ahl exit(0);
9512fe850e98fdd448c638ca63fdd92a8a510255ahl}