User Profile

Collapse

Profile Sidebar

Collapse
ikilobo
ikilobo
Last Activity: Jul 26 '10, 05:01 AM
Joined: Jun 2 '10
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • ikilobo
    started a topic Multiplication Without Carry in C (using GMP Lib)
    in C

    Multiplication Without Carry in C (using GMP Lib)

    I was using GMP library for build an binary arithmetic, but for multiplication, I want to return a result a multiplication without carry..
    How can I implementing it?
    nb: the code below give a result of multiplication with carry

    Code:
    void multi(){
         int m_bit;int m_bit2;
         char *op1;
         char *op2;     
         char *final;
         
         mpz_t hasil_acak,hasil_acak2,hasil_pangkat,hasil_exor_temp,hasil_multi,hasil_multi_temp,hasil_exor_temp0;
    ...
    See more | Go to post

  • ikilobo
    started a topic arithmetic of random bit using gmp library?
    in C

    arithmetic of random bit using gmp library?

    i want to representation the large random bit to operate the arithmetic, like this

    example
    input n=10, then
    10 random bit has create
    A[]=[1011011100]
    B[]=[0010010011]

    i want to divide the array to any part like
    A[]=[[10110],[11100]]
    B[]=[[00100],[10011]]
    _______________ ______xor (per block)
    B[]=[[10010],[01111]]

    how can i implementing it, using the...
    See more | Go to post

  • ikilobo
    started a topic basic question in C
    in C

    basic question in C

    helo, i wanna ask a basic question in my C program below

    Code:
    #include<stdio.h>
    
    unsigned m,n;
    unsigned a[100];
    unsigned b[100];
    
    c=a; m>=n; //error in this line, why??
    for (int i=0; i<n; i++){
        c[i]=c[i]^b[i]
        }
    return c;
    error msg:
    [warning]initialization makes integer from pointer without a ca...
    See more | Go to post
No activity results to display
Show More
Working...