comparison graal/com.oracle.truffle.api/src/com/oracle/truffle/api/utilities/BinaryConditionProfile.java @ 16854:fc6f12ee71e5

Truffle: fixed header dates.
author Christian Humer <christian.humer@gmail.com>
date Mon, 18 Aug 2014 19:02:18 +0200
parents 3c114b3e08c3
children fa5e62620593
comparison
equal deleted inserted replaced
16853:bcfb6f72ace6 16854:fc6f12ee71e5
1 /* 1 /*
2 * Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 * 4 *
5 * This code is free software; you can redistribute it and/or modify it 5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as 6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. Oracle designates this 7 * published by the Free Software Foundation. Oracle designates this
33 * 33 *
34 * Example usage: 34 * Example usage:
35 * 35 *
36 * <pre> 36 * <pre>
37 * private final ConditionProfile zero = new BooleanConditionProfile(); 37 * private final ConditionProfile zero = new BooleanConditionProfile();
38 * 38 *
39 * int value = ...; 39 * int value = ...;
40 * if (zero.profile(value == 0)) { 40 * if (zero.profile(value == 0)) {
41 * return 0; 41 * return 0;
42 * } else { 42 * } else {
43 * return value; 43 * return value;