Subversion Repositories Kolibri OS

Rev

Blame | Last modification | View Log | Download | RSS feed

  1. #include<libc/asm.h>
  2. MK_C_SYM(ilogb)
  3.         pushl   %esp
  4.         movl    %esp,%ebp
  5.         subl    $4,%esp
  6.  
  7.         fldl    8(%ebp)
  8.         fxtract
  9.         fstpl   %st
  10.  
  11.         fistpl  -4(%ebp)
  12.         movl    -4(%ebp),%eax
  13.  
  14.         leave
  15.         ret
  16.