diff options
Diffstat (limited to '3/5_arith_and_logic/store_uprod.c')
| -rw-r--r-- | 3/5_arith_and_logic/store_uprod.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/3/5_arith_and_logic/store_uprod.c b/3/5_arith_and_logic/store_uprod.c new file mode 100644 index 0000000..0009e09 --- /dev/null +++ b/3/5_arith_and_logic/store_uprod.c @@ -0,0 +1,11 @@ +#include <inttypes.h> + +typedef unsigned __int128 uint128_t; + +void store_uprod(uint128_t *dest, uint64_t x, uint64_t y) { + *dest = x * (uint128_t) y; +} + +int main() { + return 0; +} |
