xref: /illumos-gate/usr/src/cmd/dtrace/test/tst/common/llquantize/tst.negvalue.d (revision 2b6389efff8da018d426952e20428e7e60d568a3)
1*2b6389efSBryan Cantrill /*
2*2b6389efSBryan Cantrill  * CDDL HEADER START
3*2b6389efSBryan Cantrill  *
4*2b6389efSBryan Cantrill  * The contents of this file are subject to the terms of the
5*2b6389efSBryan Cantrill  * Common Development and Distribution License (the "License").
6*2b6389efSBryan Cantrill  * You may not use this file except in compliance with the License.
7*2b6389efSBryan Cantrill  *
8*2b6389efSBryan Cantrill  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*2b6389efSBryan Cantrill  * or http://www.opensolaris.org/os/licensing.
10*2b6389efSBryan Cantrill  * See the License for the specific language governing permissions
11*2b6389efSBryan Cantrill  * and limitations under the License.
12*2b6389efSBryan Cantrill  *
13*2b6389efSBryan Cantrill  * When distributing Covered Code, include this CDDL HEADER in each
14*2b6389efSBryan Cantrill  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*2b6389efSBryan Cantrill  * If applicable, add the following below this CDDL HEADER, with the
16*2b6389efSBryan Cantrill  * fields enclosed by brackets "[]" replaced with your own identifying
17*2b6389efSBryan Cantrill  * information: Portions Copyright [yyyy] [name of copyright owner]
18*2b6389efSBryan Cantrill  *
19*2b6389efSBryan Cantrill  * CDDL HEADER END
20*2b6389efSBryan Cantrill  */
21*2b6389efSBryan Cantrill 
22*2b6389efSBryan Cantrill /*
23*2b6389efSBryan Cantrill  * Copyright (c) 2011, Joyent, Inc. All rights reserved.
24*2b6389efSBryan Cantrill  */
25*2b6389efSBryan Cantrill 
26*2b6389efSBryan Cantrill #pragma D option quiet
27*2b6389efSBryan Cantrill 
28*2b6389efSBryan Cantrill tick-1ms
29*2b6389efSBryan Cantrill /i++ <= 100/
30*2b6389efSBryan Cantrill {
31*2b6389efSBryan Cantrill 	@ = llquantize(i, 10, 0, 10, 10, 50 - i);
32*2b6389efSBryan Cantrill }
33*2b6389efSBryan Cantrill 
34*2b6389efSBryan Cantrill tick-1ms
35*2b6389efSBryan Cantrill /i > 100/
36*2b6389efSBryan Cantrill {
37*2b6389efSBryan Cantrill 	exit(0);
38*2b6389efSBryan Cantrill }
39