Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
s_mul64ByShifted32To128.c File Reference
#include <stdint.h>
#include "platform.h"
#include "primitiveTypes.h"
Include dependency graph for s_mul64ByShifted32To128.c:

Go to the source code of this file.

Functions

struct uint128 softfloat_mul64ByShifted32To128 (uint64_t a, uint32_t b)
 

Function Documentation

◆ softfloat_mul64ByShifted32To128()

struct uint128 softfloat_mul64ByShifted32To128 ( uint64_t a,
uint32_t b )

Definition at line 43 of file s_mul64ByShifted32To128.c.

44{
45 uint_fast64_t mid;
46 struct uint128 z;
47
48 mid = (uint_fast64_t) (uint32_t) a * b;
49 z.v0 = mid<<32;
50 z.v64 = (uint_fast64_t) (uint32_t) (a>>32) * b + (mid>>32);
51 return z;
52
53}
const GenericPointer< typename T::ValueType > T2 T::AllocatorType & a
Definition pointer.h:1181
unsigned int uint32_t
Definition stdint.h:126
uint64_t uint_fast64_t
Definition stdint.h:157
Here is the caller graph for this function: