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

Subversion Repositories hf-risc

[/] [hf-risc/] [trunk/] [tools/] [riscv-gnu-toolchain-master/] [newlib/] [newlib/] [libc/] [machine/] [riscv/] [sys/] [string.h] - Blame information for rev 13

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 13 serginhofr
#ifndef _SYS_STRING_H
2
#define _SYS_STRING_H
3
 
4
static inline unsigned long __libc_detect_null(unsigned long w)
5
{
6
  unsigned long mask = 0x7f7f7f7f;
7
  if (sizeof(long) == 8)
8
    mask = ((mask << 16) << 16) | mask;
9
  return ~(((w & mask) + mask) | w | mask);
10
}
11
 
12
#endif

powered by: WebSVN 2.1.0

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