C language function:LongMult sample codes

Search sample code in the internet.It is the result.


TITLE : Scala example - package.scala - duration, finiteduration, timeunit
implicit final class LongMult(private val i: Long) extends AnyVal {.......
http://alvinalexander.com/java/jwarehouse/scala-2.11/library/scala/concurrent/duration/package.scala.shtml


TITLE : Long multiplication - Rosetta Code
> longmult := proc( a, b ) local la, lb, digit; la := length(a); lb := length(b); digit := (n,i)->iquo(n,10^(i-1)) mod 10; add( add( digit(a,la-i+1) * digit(b,lb-j+1) *10^(la-i+lb-j), i=1..la), j=1..lb );end; > longmult( 2^64, 2^64 ); 340282366920938463463374607431768211456.......
http://rosettacode.org/wiki/Long_multiplication
TITLE : Long multiplication - Rosetta Code
#!/usr/bin/env python def digits(x): return [int(c) for c in str(x)] def mult_table(xs, ys): return [[x * y for x in xs] for y in ys] def polymul(xs, ys): return map(lambda *vs: sum(filter(None, vs)), *[[0] * i + zs for i, zs in enumerate(mult_table(xs, ys))]) def longmult(x, y): result = 0 for v in polymul(digits(x), digits(y)): result = result * 10 + v return result if __name__ == "__main__": print longmult(2**64, 2**64).......
http://rosettacode.org/wiki/Long_multiplication
TITLE : Long multiplication - Rosetta Code
longmult(18446744073709551616, 18446744073709551616) = 340282366920938463463374607431768211456.......
http://rosettacode.org/wiki/Long_multiplication
search Google

https://www.google.com/#q=LongMult