/*
 * Written by J.T. Conklin <[email protected]>.
 * Changes for long double by Ulrich Drepper <[email protected]>
 * Public domain.
 */

#include <math.h>

float
logbf (float x)
{
  float res;
  asm ("fxtract\n\t"
       "fstp	%%st" : "=t" (res) : "0" (x));
  return res;
}
Download logbf.c — origineel C-bestand