OpenCores
URL https://opencores.org/ocsvn/hf-risc/hf-risc/trunk

Subversion Repositories hf-risc

[/] [hf-risc/] [trunk/] [tools/] [riscv-gnu-toolchain-master/] [glibc/] [sysdeps/] [riscv/] [fpu/] [s_signbit.c] - Blame information for rev 13

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 13 serginhofr
#include <features.h>
2
#undef __USE_EXTERN_INLINES
3
#include <math.h>
4
#include <stdint.h>
5
#include "math_private.h"
6
 
7
int __signbit (double x)
8
{
9
#ifdef __riscv64
10
  int64_t hx;
11
  EXTRACT_WORDS64 (hx, x);
12
  return hx < 0;
13
#else
14
  int32_t hx;
15
  GET_HIGH_WORD (hx, x);
16
  return hx < 0;
17
#endif
18
}

powered by: WebSVN 2.1.0

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