Subversion Repositories HelenOS-historic

Compare Revisions

Ignore whitespace Rev 658 → Rev 659

/kernel/trunk/arch/ppc32/src/fmath.c
43,15 → 43,7
 
double fmath_get_decimal_exponent(double num)
{ //TODO:
double value;
// log10(2)*log2(x) => log10(x)
/* __asm__ __volatile__ ( \
"fldlg2 #load log10(2) \n\t" \
"fxch %%st(1) \n\t" \
"fyl2x #count st(0)*log2(st(1))->st(1); pop st(0) \n\t" \
: "=t" (value) : "0"(num) );
*/ return value;
return 0;
}
 
__u64 fmath_get_binary_mantisa(double num)
/kernel/trunk/arch/ppc32/src/mm/memory_init.c
48,7 → 48,7
if (ret == -1)
panic("Device /memory has no reg property\n");
size_t total;
size_t total = 0;
int i;
for (i = 0; i < MEMMAP_MAX_RECORDS; i++) {