In a program I wrote, 20% of the time is being spent on finding out the minimum of 3 numbers in an inner loop, in this routine:
static inline unsigned int
min(unsigned int ...
I'm just starting to learn assembly and I want to round a floating-point value using a specified rounding mode. I've tried to implement this using fstcw, fldcw, and frndint.
Right now ...
I've been told that C types are machine dependent. Today I wanted to verify it.
/* character types */
char k_char = 'a';
I know that peripheral devices such as a hard driver, a floppy driver, etc are controlled by reading/writing certain control registers on their device controllers.
I am wondering about the following ...
I need to find the fastest equivalence of the following C code.
int d = 1 << x; /* d=pow(2,x) */
int j = 2*d*(i / d) + (i % d);
I have some sectors on my drive with poor reading. I could measure the reading time required by each sector and then compare the time of the good sectors and the ...
;disas for number++
mov eax, [number]
;disas for number--
mov ecx, [number]
In a virtual machine I'm writing, I want to be able to dispatch commands in a manner similar to the following pseudo code.
add: reg[memory[pc+1]] = reg[memory[pc+1]] + reg[memory[pc+2]]; pc += ...