About 8,250,000 results
Open links in new tab
  1. x86 - MUL function in assembly - Stack Overflow

    The mul instruction is a little bit strange because some of its operands are implicit. That is, they are not explicitly specified as parameters. For the mul instruction, the destination operand is …

  2. how to add/sub/div/mul more than 4 values? assembly language

    Oct 21, 2015 · First, MUL and DIV only take 1 argument. Search for 'intel mul' and 'intel div' to see the instruction details: For 8 bits: Using an 8 bit register r8 as argument (where r8 is one of the …

  3. User defined __mul__ method is not commutative - Stack Overflow

    Aug 20, 2011 · I wrote a class to represent vectors in Python (as an exercise) and I'm having problems with extending the built-in operators. I defined a __mul__ method for the vector …

  4. x86 - problem in understanding mul & imul instructions of …

    A1: mul was originally present on the 8086/8088/80186/80286 processors, which didn't have the E** (E for extended, i.e. 32-bit) registers. A2: See A1. As my work as an assembly language …

  5. MUL Instruction in x86 Assembly - Stack Overflow

    Apr 2, 2023 · The word-sized mul cx will multiply AX with CX and leave its double-length product in the register combo DX:AX. The byte-sized mul cl will multiply AL with CL and leave its …

  6. How do I require a generic type implement an operation like Add, …

    Mar 21, 2015 · Eventually, we might get some (slightly) higher level traits, which would reduce the noise. For example: T: Mul2 could imply T: Mul<T> + Mul<&T> and &T: Mul<T> + Mul<&T>, …

  7. How to make 2 different __mul__ methods - Stack Overflow

    Apr 1, 2020 · I built a matrices calculator and I want to make one mul method for multiplication by scalar And another one for multiplication by other matrix. I have an if- else block but I prefer it …

  8. Using the __mul__ method with a number and different class object

    Sep 17, 2020 · I am working on a class for polynomials and I would like to use the mul method to multiply two different polynomials when both inputs are polynomials, but also be able to use …

  9. Am I understanding PyTorch's add_ and mul_ correctly?

    In this notebook the author writes the following nesterov update:. def nesterov_update(w, dw, v, lr, weight_decay, momentum): dw.add_(weight_decay, w).mul_(-lr) v.mul ...

  10. MUL instruction doesn't support an immediate value

    If you look at MUL format table you'll notice that it only accepts one register parameter. However turn over to IMUL and you'll see there are many forms of it that accept an immediate 6B /r ib …