Commit f2c694af authored by Måns Rullgård's avatar Måns Rullgård
Browse files


This function/macro returns the high half of the unsigned 64-bit
product of two unsigned 32-bit operands.

Originally committed as revision 21463 to svn://
parent 900479bb
......@@ -53,6 +53,12 @@ static av_always_inline int MULH(int a, int b){
#ifndef UMULH
static av_always_inline unsigned UMULH(unsigned a, unsigned b){
return ((uint64_t)(a) * (uint64_t)(b))>>32;
#ifndef MUL64
# define MUL64(a,b) ((int64_t)(a) * (int64_t)(b))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment