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] - Blame information for rev 816

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

Line No. Rev Author Line
1 207 jeremybenn
#include "headers/sqrtf4.h"
2
#include "headers/dom_chkf_less_than.h"
3
 
4
static __inline float _sqrtf(float in)
5
{
6
  float res;
7
  vector float vx;
8
  vector float vc = { 0.0, 0.0, 0.0, 0.0 };
9
 
10
  vx = spu_promote(in, 0);
11
  res = spu_extract(_sqrtf4(vx), 0);
12
#ifndef _IEEE_LIBM
13
  dom_chkf_less_than(vx, vc);
14
#endif
15
  return res;
16
}

powered by: WebSVN 2.1.0

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