1/* 2 * Copyright (C) 2007 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17public class Blort 18{ 19 private volatile int i; 20 private volatile long l; 21 private volatile float f; 22 private volatile double d; 23 24 public void blort(int i1, int i2) { 25 i = -i1; 26 i = ~i1; 27 i = i1 + i2; 28 i = i1 - i2; 29 i = i1 * i2; 30 i = i1 / i2; 31 i = i1 % i2; 32 i = i1 & i2; 33 i = i1 | i2; 34 i = i1 ^ i2; 35 i = i1 << i2; 36 i = i1 >> i2; 37 i = i1 >>> i2; 38 } 39 40 public void blort(long l1, long l2) { 41 l = -l1; 42 l = ~l1; 43 l = l1 + l2; 44 l = l1 - l2; 45 l = l1 * l2; 46 l = l1 / l2; 47 l = l1 % l2; 48 l = l1 & l2; 49 l = l1 | l2; 50 l = l1 ^ l2; 51 l = l1 << l2; 52 l = l1 >> l2; 53 l = l1 >>> l2; 54 } 55 56 public void blort(float f1, float f2) { 57 f = -f1; 58 f = f1 + f2; 59 f = f1 - f2; 60 f = f1 * f2; 61 f = f1 / f2; 62 f = f1 % f2; 63 } 64 65 public void blort(double d1, double d2) { 66 d = -d1; 67 d = d1 + d2; 68 d = d1 - d2; 69 d = d1 * d2; 70 d = d1 / d2; 71 d = d1 % d2; 72 } 73} 74