OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [newlib-1.18.0/] [newlib/] [libm/] [machine/] [spu/] [headers/] [sqrtf.h] - Rev 816

Go to most recent revision | Compare with Previous | Blame | View Log

#include "headers/sqrtf4.h"
#include "headers/dom_chkf_less_than.h"
 
static __inline float _sqrtf(float in)
{
  float res;
  vector float vx;
  vector float vc = { 0.0, 0.0, 0.0, 0.0 };
 
  vx = spu_promote(in, 0);
  res = spu_extract(_sqrtf4(vx), 0);
#ifndef _IEEE_LIBM
  dom_chkf_less_than(vx, vc);
#endif
  return res;
}
 

Go to most recent revision | Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.