1237834Smm/*
2237834Smm * CDDL HEADER START
3237834Smm *
4237834Smm * The contents of this file are subject to the terms of the
5237834Smm * Common Development and Distribution License (the "License").
6237834Smm * You may not use this file except in compliance with the License.
7237834Smm *
8237834Smm * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9237834Smm * or http://www.opensolaris.org/os/licensing.
10237834Smm * See the License for the specific language governing permissions
11237834Smm * and limitations under the License.
12237834Smm *
13237834Smm * When distributing Covered Code, include this CDDL HEADER in each
14237834Smm * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15237834Smm * If applicable, add the following below this CDDL HEADER, with the
16237834Smm * fields enclosed by brackets "[]" replaced with your own identifying
17237834Smm * information: Portions Copyright [yyyy] [name of copyright owner]
18237834Smm *
19237834Smm * CDDL HEADER END
20237834Smm */
21237834Smm
22237834Smm/*
23237834Smm * Copyright (c) 2011, Joyent, Inc. All rights reserved.
24237834Smm */
25237834Smm
26237834Smm#pragma D option quiet
27237834Smm
28237834SmmBEGIN
29237834Smm{
30237834Smm	a = 7;
31237834Smm	b = 13;
32237834Smm	val = (-a * b) + a;
33237834Smm}
34237834Smm
35237834Smmtick-1ms
36237834Smm{
37237834Smm	incr = val % b;
38237834Smm	val += a;
39237834Smm}
40237834Smm
41237834Smmtick-1ms
42237834Smm/val == 0/
43237834Smm{
44237834Smm	val += a;
45237834Smm}
46237834Smm
47237834Smmtick-1ms
48237834Smm/incr != 0/
49237834Smm{
50237834Smm	i++;
51237834Smm	@llquanty[i] = llquantize(1, 10, 0, 10, 10, incr);
52237834Smm}
53237834Smm
54237834Smmtick-1ms
55237834Smm/incr == 0/
56237834Smm{
57237834Smm	printf("Ordering of llquantize() with some negative weights:\n");
58237834Smm	printa(@llquanty);
59237834Smm	printf("\n");
60237834Smm
61237834Smm	exit(0);
62237834Smm}
63