Here you can find the source of multiply(int x, int y)
Parameter | Description |
---|---|
x | a parameter |
y | a parameter |
public static int multiply(int x, int y)
//package com.java2s; public class Main { /**/*from w w w. j a v a 2 s . co m*/ * Multiply two fixed-point values. * @param x * @param y * @return */ public static int multiply(int x, int y) { long z = (long) x * (long) y; return ((int) (z >> 16)); } }