int32 find_result(int64 sec) { if(config == defualt_base) { uint32 H = j * k + 1; /*(here j and k global)*/ if((((uint32)(sec - CS - RS)) % (H * N_p * M_r))== 0) { result = 0; } } else { if((((uint32)(sec - CS - RS)) % (N_p * M_r))== 0) /*(N_p and M_r global)*/ { result = 0; } } }
This function have to be execute several times in a second, How can optimize it ? Please help me to avoid mathematical operations applying on this function?
The question concerns the interference. Why interference occur in the area between the sectors of the same eNB and between eNBs. The result of such interference's is the decrease of SINR and the DL throughput. Such situation is not present in uplink. Is it possible to reduce the impact of this phenomenon?
Suppose A is represented by 1, B by 2 ...and Z by 26.
Now we are given a number, and we need to find number of possible decoding for this number. No need to consider number starts with zero.
Example: Input – 1234, Output – 3(ABCD, AWD, LCD)
I intend to write in lowest level of computer programming as a hobby, any suggestion how to start.
Tagging as C as I dont know the tag.
I have some C code which is using sqrt which is using a lot of processing time. Is there a way to optimize?
Is it possible to connect database with c code, if yes then how?
If possible share the sample code for connecting to a MySQL database and run a sample query....