tst.sort.d revision 302408
1193267Sjkim/* 2193267Sjkim * CDDL HEADER START 3193267Sjkim * 4193267Sjkim * The contents of this file are subject to the terms of the 5193267Sjkim * Common Development and Distribution License (the "License"). 6193267Sjkim * You may not use this file except in compliance with the License. 7217355Sjkim * 8298714Sjkim * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9193267Sjkim * or http://www.opensolaris.org/os/licensing. 10193267Sjkim * See the License for the specific language governing permissions 11217355Sjkim * and limitations under the License. 12217355Sjkim * 13217355Sjkim * When distributing Covered Code, include this CDDL HEADER in each 14217355Sjkim * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15217355Sjkim * If applicable, add the following below this CDDL HEADER, with the 16217355Sjkim * fields enclosed by brackets "[]" replaced with your own identifying 17217355Sjkim * information: Portions Copyright [yyyy] [name of copyright owner] 18217355Sjkim * 19217355Sjkim * CDDL HEADER END 20217355Sjkim */ 21217355Sjkim 22217355Sjkim/* 23217355Sjkim * Copyright 2006 Sun Microsystems, Inc. All rights reserved. 24217355Sjkim * Use is subject to license terms. 25193267Sjkim */ 26217355Sjkim 27217355Sjkim#pragma ident "%Z%%M% %I% %E% SMI" 28217355Sjkim 29193267Sjkim#pragma D option quiet 30217355Sjkim 31217355Sjkimtick-1ms 32217355Sjkim{ 33217355Sjkim i++; 34217355Sjkim @a[i] = sum(100 - (i / 2)); 35217355Sjkim @b[i] = sum(100 - (i / 4)); 36217355Sjkim @c[i] = sum(100 - (i / 8)); 37217355Sjkim @d[i] = sum(100 - (i / 16)); 38217355Sjkim} 39217355Sjkim 40217355Sjkimtick-1ms 41217355Sjkim/i == 100/ 42217355Sjkim{ 43193267Sjkim printa("%10d %@10d %@10d %@10d %@10d\n", @a, @b, @c, @d); 44193267Sjkim printa("%10d %@10d %@10d %@10d %@10d\n", @d, @c, @b, @a); 45213800Sjkim exit(0); 46213800Sjkim} 47193267Sjkim