file_text string | language string | file_name string |
|---|---|---|
/* Software floating-point emulation.
Convert a to 32bit signed integer
Copyright (C) 1997-2024 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License ... | C | fixtfsi_1.c |
/* Software floating-point emulation.
Convert a to 32bit signed integer
Copyright (C) 1997-2022 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License ... | C | fixtfsi_2.c |
/* Software floating-point emulation.
Convert a to 32bit signed integer
Copyright (C) 1997-2022 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License ... | C | fixtfsi_3.c |
//===-- fixtfsi.c - Implement __fixtfsi -----------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... | C | fixtfsi_4.c |
/* Software floating-point emulation.
Convert a to 32bit signed integer
Copyright (C) 1997-2022 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License ... | C | fixtfsi_5.c |
// RUN: %clang_builtins %s %librt -o %t && %run %t
// REQUIRES: librt_has_fixtfsi
#include <stdio.h>
#if __LDBL_MANT_DIG__ == 113
#include "fp_test.h"
int __fixtfsi(long double a);
int test__fixtfsi(long double a, int expected)
{
int x = __fixtfsi(a);
int ret = (x != expected);
if (ret){
print... | C | fixtfsi_test.c |
// RUN: %clang_builtins %s %librt -o %t && %run %t
// REQUIRES: librt_has_fixtfsi
#include <stdio.h>
#if __LDBL_MANT_DIG__ == 113
#include "fp_test.h"
int __fixtfsi(long double a);
int test__fixtfsi(long double a, int expected)
{
int x = __fixtfsi(a);
int ret = (x != expected);
if (ret){
print... | C | fixtfsi_test_1.c |
//===-- fixtfti.c - Implement __fixtfti -----------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... | C | fixtfti.c |
//===--- lib/builtins/ppc/fixtfti.c - Convert long double->int128 *-C -*---===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... | C | fixtfti_1.c |
/* Software floating-point emulation.
Convert IEEE quad to 128bit signed integer
Copyright (C) 2007-2024 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
... | C | fixtfti_2.c |
/* Software floating-point emulation.
Convert IEEE quad to 128bit signed integer
Copyright (C) 2007-2022 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
... | C | fixtfti_3.c |
/* Software floating-point emulation.
Convert IEEE quad to 128bit signed integer
Copyright (C) 2007-2022 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
... | C | fixtfti_4.c |
//===-- fixtfti.c - Implement __fixtfti -----------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... | C | fixtfti_5.c |
//===--- lib/builtins/ppc/fixtfti.c - Convert long double->int128 *-C -*---===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... | C | fixtfti_6.c |
/* Software floating-point emulation.
Convert IEEE quad to 128bit signed integer
Copyright (C) 2007-2022 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
... | C | fixtfti_7.c |
// REQUIRES: target-is-powerpc64le
// RUN: %clang_builtins %s %librt -o %t && %run %t
#include <stdint.h>
#include <stdio.h>
#include "fixtfti_test.h"
// The long double representation, with the high and low portions of
// the long double, and the corresponding bit patterns of each double.
typedef union {
long dou... | C | fixtfti_test.c |
// Test case inputs for: __int128_t __fixtfti (long double)
// Conversion from long double (IBM double-double) to 128 bit integer.
#define INIT_U128(HI, LO) (((__uint128_t) (HI) << 64) | (LO))
struct testCase {
double hiInput;
double loInput;
__uint128_t result128;
};
// This test case tests long doubles gener... | C | fixtfti_test.h |
// REQUIRES: target-is-powerpc64le
// RUN: %clang_builtins %s %librt -o %t && %run %t
#include <stdint.h>
#include <stdio.h>
#include "fixtfti_test.h"
// The long double representation, with the high and low portions of
// the long double, and the corresponding bit patterns of each double.
typedef union {
long dou... | C | fixtfti_test_1.c |
/*
* Copyright 2023 Google LLC
*
* SPDX-License-Identifier: Apache-2.0
*/
#include "fixture.h"
#include <zephyr/drivers/emul_sensor.h>
#include <zephyr/drivers/sensor.h>
#include <zephyr/ztest.h>
static void sensor_bmi160_setup_emulator(const struct device *dev, const struct emul *emulator)
{
static struct {
... | C | fixture.c |
/*
* Copyright 2023 Google LLC
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef TEST_DRIVERS_SENSOR_ACCEL_INCLUDE_FIXTURE_H_
#define TEST_DRIVERS_SENSOR_ACCEL_INCLUDE_FIXTURE_H_
#include <zephyr/device.h>
#include <zephyr/drivers/emul.h>
struct bmi160_fixture {
const struct device *dev_spi;
const struct devi... | C | fixture.h |
#ifdef CLAR_FIXTURE_PATH
static const char *
fixture_path(const char *base, const char *fixture_name)
{
static char _path[4096];
size_t root_len;
root_len = strlen(base);
strncpy(_path, base, sizeof(_path));
if (_path[root_len - 1] != '/')
_path[root_len++] = '/';
if (fixture_name[0] == '/')
fixture_name++... | C | fixtures.h |
static const char *
fixture_path(const char *base, const char *fixture_name)
{
static char _path[4096];
size_t root_len;
root_len = strlen(base);
strncpy(_path, base, sizeof(_path));
if (_path[root_len - 1] != '/')
_path[root_len++] = '/';
if (fixture_name[0] == '/')
fixture_name++;
strncpy(_path + root_... | C | fixtures_1.h |
/* { dg-do run } */
/* { dg-options "-std=c99" } */
unsigned long foo(double d)
{
return (unsigned long) d;
}
extern void abort(void);
int main(void)
{
double d;
unsigned long l;
#ifdef __LP64__
d = 9223372036854775808.7;
l = 1LL << 63;
if (foo(d) != l)
abort();
#endif
d = 122485.2;
l = 122485... | C | fixuns-trunc-1.c |
/* { dg-do run } */
/* { dg-options "-std=c99" } */
unsigned long foo(double d)
{
return (unsigned long) d;
}
extern void abort(void);
int main(void)
{
double d;
unsigned long l;
#ifdef __LP64__
d = 9223372036854775808.7;
l = 1LL << 63;
if (foo(d) != l)
abort();
#endif
d = 122485.2;
l = 122485... | C | fixuns-trunc-1_1.c |
//===-- fixunsdfdi.c - Implement __fixunsdfdi -----------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... | C | fixunsdfdi.c |
/* Software floating-point emulation.
Convert a to 64bit unsigned integer
Copyright (C) 1997-2024 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
Licens... | C | fixunsdfdi_1.c |
/* Software floating-point emulation.
Convert a to 64bit unsigned integer
Copyright (C) 1997-2022 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
Licens... | C | fixunsdfdi_2.c |
/* Software floating-point emulation.
Convert a to 64bit unsigned integer
Copyright (C) 1997-2022 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
Licens... | C | fixunsdfdi_3.c |
//===-- fixunsdfdi.c - Implement __fixunsdfdi -----------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... | C | fixunsdfdi_4.c |
/* Software floating-point emulation.
Convert a to 64bit unsigned integer
Copyright (C) 1997-2022 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
Licens... | C | fixunsdfdi_5.c |
// RUN: %clang_builtins %s %librt -o %t && %run %t
// REQUIRES: librt_has_fixunsdfdi
#include "int_lib.h"
#include <stdio.h>
// Returns: convert a to a unsigned long long, rounding toward zero.
// Negative values all become zero.
// Assumption: double is a IEEE 64 bit floating point type
// du_... | C | fixunsdfdi_test.c |
// RUN: %clang_builtins %s %librt -o %t && %run %t
// REQUIRES: librt_has_fixunsdfdi
#include "int_lib.h"
#include <stdio.h>
// Returns: convert a to a unsigned long long, rounding toward zero.
// Negative values all become zero.
// Assumption: double is a IEEE 64 bit floating point type
// du_... | C | fixunsdfdi_test_1.c |
//===-- fixunsdfsi.c - Implement __fixunsdfsi -----------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... | C | fixunsdfsi.c |
/* Software floating-point emulation.
Convert a to 32bit unsigned integer
Copyright (C) 1997-2024 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
Licens... | C | fixunsdfsi_1.c |
/* Software floating-point emulation.
Convert a to 32bit unsigned integer
Copyright (C) 1997-2022 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
Licens... | C | fixunsdfsi_2.c |
/* Software floating-point emulation.
Convert a to 32bit unsigned integer
Copyright (C) 1997-2022 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
Licens... | C | fixunsdfsi_3.c |
//===-- fixunsdfsi.c - Implement __fixunsdfsi -----------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... | C | fixunsdfsi_4.c |
/* Software floating-point emulation.
Convert a to 32bit unsigned integer
Copyright (C) 1997-2022 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
Licens... | C | fixunsdfsi_5.c |
// RUN: %clang_builtins %s %librt -o %t && %run %t
// REQUIRES: librt_has_fixunsdfsi
#include "int_lib.h"
#include <stdio.h>
// Returns: convert a to a unsigned int, rounding toward zero.
// Negative values all become zero.
// Assumption: double is a IEEE 64 bit floating point type
// su_int is... | C | fixunsdfsi_test.c |
// RUN: %clang_builtins %s %librt -o %t && %run %t
// REQUIRES: librt_has_fixunsdfsi
#include "int_lib.h"
#include <stdio.h>
// Returns: convert a to a unsigned int, rounding toward zero.
// Negative values all become zero.
// Assumption: double is a IEEE 64 bit floating point type
// su_int is... | C | fixunsdfsi_test_1.c |
// RUN: %clang_builtins %s %librt -o %t && %run %t
// REQUIRES: librt_has_fixunsdfsivfp
#include "int_lib.h"
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
extern COMPILER_RT_ABI unsigned int __fixunsdfsivfp(double a);
#if defined(__arm__) && defined(__ARM_FP) && (__ARM_FP & 0x8)
int test__fixunsdfsivfp(d... | C | fixunsdfsivfp_test.c |
// RUN: %clang_builtins %s %librt -o %t && %run %t
// REQUIRES: librt_has_fixunsdfsivfp
#include "int_lib.h"
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
extern COMPILER_RT_ABI unsigned int __fixunsdfsivfp(double a);
#if defined(__arm__) && defined(__ARM_FP) && (__ARM_FP & 0x8)
int test__fixunsdfsivfp(d... | C | fixunsdfsivfp_test_1.c |
//===-- fixunsdfti.c - Implement __fixunsdfti -----------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... | C | fixunsdfti.c |
/* Software floating-point emulation.
Convert IEEE double to 128bit unsigned integer
Copyright (C) 2007-2024 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Publi... | C | fixunsdfti_1.c |
/* Software floating-point emulation.
Convert IEEE double to 128bit unsigned integer
Copyright (C) 2007-2022 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Publi... | C | fixunsdfti_2.c |
/* Software floating-point emulation.
Convert IEEE double to 128bit unsigned integer
Copyright (C) 2007-2022 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Publi... | C | fixunsdfti_3.c |
//===-- fixunsdfti.c - Implement __fixunsdfti -----------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... | C | fixunsdfti_4.c |
/* Software floating-point emulation.
Convert IEEE double to 128bit unsigned integer
Copyright (C) 2007-2022 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Publi... | C | fixunsdfti_5.c |
// RUN: %clang_builtins %s %librt -o %t && %run %t
// REQUIRES: librt_has_fixunsdfti
// REQUIRES: int128
#include "int_lib.h"
#include <stdio.h>
// Returns: convert a to a unsigned long long, rounding toward zero.
// Negative values all become zero.
// Assumption: double is a IEEE 64 bit floating point type... | C | fixunsdfti_test.c |
// RUN: %clang_builtins %s %librt -o %t && %run %t
// REQUIRES: librt_has_fixunsdfti
// REQUIRES: int128
#include "int_lib.h"
#include <stdio.h>
// Returns: convert a to a unsigned long long, rounding toward zero.
// Negative values all become zero.
// Assumption: double is a IEEE 64 bit floating point type... | C | fixunsdfti_test_1.c |
/* Software floating-point emulation.
Convert IEEE half to 64bit unsigned integer
Copyright (C) 2022-2024 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
... | C | fixunshfdi.c |
/* Software floating-point emulation.
Convert IEEE half to 64bit unsigned integer
Copyright (C) 2022 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
Lic... | C | fixunshfdi_1.c |
/* Software floating-point emulation.
Convert IEEE half to 64bit unsigned integer
Copyright (C) 2022 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
Lic... | C | fixunshfdi_2.c |
/* Software floating-point emulation.
Convert IEEE half to 32bit unsigned integer
Copyright (C) 2022-2024 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
... | C | fixunshfsi.c |
/* Software floating-point emulation.
Convert IEEE half to 32bit unsigned integer
Copyright (C) 2022 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
Lic... | C | fixunshfsi_1.c |
/* Software floating-point emulation.
Convert IEEE half to 32bit unsigned integer
Copyright (C) 2022 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
Lic... | C | fixunshfsi_2.c |
/* Software floating-point emulation.
Convert IEEE half to 128bit unsigned integer
Copyright (C) 2007-2024 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
... | C | fixunshfti.c |
/* Software floating-point emulation.
Convert IEEE half to 128bit unsigned integer
Copyright (C) 2007-2022 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
... | C | fixunshfti_1.c |
/* Software floating-point emulation.
Convert IEEE half to 128bit unsigned integer
Copyright (C) 2007-2022 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
... | C | fixunshfti_2.c |
/* Software floating-point emulation.
Convert IEEE half to 128bit unsigned integer
Copyright (C) 2007-2022 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
... | C | fixunshfti_3.c |
/* Software floating-point emulation, convert IEEE quad to 128bit unsigned
integer.
Copyright (C) 2016-2023 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Steven Munroe (munroesj@linux.vnet.ibm.com)
Code is based on the main soft-fp library written by:
Uros Biz... | C | fixunskfti-sw.c |
/* Software floating-point emulation, convert IEEE quad to 128bit unsigned
integer.
Copyright (C) 2016-2022 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Steven Munroe (munroesj@linux.vnet.ibm.com)
Code is based on the main soft-fp library written by:
Uros Biz... | C | fixunskfti-sw_1.c |
//===-- fixunssfdi.c - Implement __fixunssfdi -----------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... | C | fixunssfdi.c |
/* Software floating-point emulation.
Convert a to 64bit unsigned integer
Copyright (C) 1997-2024 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
Licens... | C | fixunssfdi_1.c |
/* Software floating-point emulation.
Convert a to 64bit unsigned integer
Copyright (C) 1997-2022 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
Licens... | C | fixunssfdi_2.c |
/* Software floating-point emulation.
Convert a to 64bit unsigned integer
Copyright (C) 1997-2022 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
Licens... | C | fixunssfdi_3.c |
//===-- fixunssfdi.c - Implement __fixunssfdi -----------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... | C | fixunssfdi_4.c |
/* Software floating-point emulation.
Convert a to 64bit unsigned integer
Copyright (C) 1997-2022 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
Licens... | C | fixunssfdi_5.c |
// RUN: %clang_builtins %s %librt -o %t && %run %t
// REQUIRES: librt_has_fixunssfdi
#include "int_lib.h"
#include <stdio.h>
// Returns: convert a to a unsigned long long, rounding toward zero.
// Negative values all become zero.
// Assumption: float is a IEEE 32 bit floating point type
// du_i... | C | fixunssfdi_test.c |
// RUN: %clang_builtins %s %librt -o %t && %run %t
// REQUIRES: librt_has_fixunssfdi
#include "int_lib.h"
#include <stdio.h>
// Returns: convert a to a unsigned long long, rounding toward zero.
// Negative values all become zero.
// Assumption: float is a IEEE 32 bit floating point type
// du_i... | C | fixunssfdi_test_1.c |
//===-- fixunssfsi.c - Implement __fixunssfsi -----------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... | C | fixunssfsi.c |
/* Software floating-point emulation.
Convert a to 32bit unsigned integer
Copyright (C) 1997-2024 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
Licens... | C | fixunssfsi_1.c |
/* Software floating-point emulation.
Convert a to 32bit unsigned integer
Copyright (C) 1997-2022 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
Licens... | C | fixunssfsi_2.c |
/* Software floating-point emulation.
Convert a to 32bit unsigned integer
Copyright (C) 1997-2022 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
Licens... | C | fixunssfsi_3.c |
/* More subroutines needed by GCC output code on some machines. */
/* Compile this one with gcc. */
/* Copyright (C) 1989-2023 Free Software Foundation, Inc.
This file is part of GCC.
GCC is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the... | C | fixunssfsi_4.c |
//===-- fixunssfsi.c - Implement __fixunssfsi -----------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... | C | fixunssfsi_5.c |
/* Software floating-point emulation.
Convert a to 32bit unsigned integer
Copyright (C) 1997-2022 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
Licens... | C | fixunssfsi_6.c |
/* More subroutines needed by GCC output code on some machines. */
/* Compile this one with gcc. */
/* Copyright (C) 1989-2022 Free Software Foundation, Inc.
This file is part of GCC.
GCC is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the... | C | fixunssfsi_7.c |
// RUN: %clang_builtins %s %librt -o %t && %run %t
// REQUIRES: librt_has_fixunssfsi
#include "int_lib.h"
#include <stdio.h>
// Returns: convert a to a unsigned int, rounding toward zero.
// Negative values all become zero.
// Assumption: float is a IEEE 32 bit floating point type
// su_int is ... | C | fixunssfsi_test.c |
// RUN: %clang_builtins %s %librt -o %t && %run %t
// REQUIRES: librt_has_fixunssfsi
#include "int_lib.h"
#include <stdio.h>
// Returns: convert a to a unsigned int, rounding toward zero.
// Negative values all become zero.
// Assumption: float is a IEEE 32 bit floating point type
// su_int is ... | C | fixunssfsi_test_1.c |
// RUN: %clang_builtins %s %librt -o %t && %run %t
// REQUIRES: librt_has_fixunssfsivfp
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
extern unsigned int __fixunssfsivfp(float a);
#if defined(__arm__) && defined(__ARM_FP) && (__ARM_FP & 0x4)
int test__fixunssfsivfp(float a)
{
unsigned int actual = __... | C | fixunssfsivfp_test.c |
// RUN: %clang_builtins %s %librt -o %t && %run %t
// REQUIRES: librt_has_fixunssfsivfp
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
extern unsigned int __fixunssfsivfp(float a);
#if defined(__arm__) && defined(__ARM_FP) && (__ARM_FP & 0x4)
int test__fixunssfsivfp(float a)
{
unsigned int actual = __... | C | fixunssfsivfp_test_1.c |
//===-- fixunssfti.c - Implement __fixunssfti -----------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... | C | fixunssfti.c |
/* Software floating-point emulation.
Convert IEEE single to 128bit unsigned integer
Copyright (C) 2007-2024 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Publi... | C | fixunssfti_1.c |
/* Software floating-point emulation.
Convert IEEE single to 128bit unsigned integer
Copyright (C) 2007-2022 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Publi... | C | fixunssfti_2.c |
/* Software floating-point emulation.
Convert IEEE single to 128bit unsigned integer
Copyright (C) 2007-2022 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Publi... | C | fixunssfti_3.c |
//===-- fixunssfti.c - Implement __fixunssfti -----------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... | C | fixunssfti_4.c |
/* Software floating-point emulation.
Convert IEEE single to 128bit unsigned integer
Copyright (C) 2007-2022 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Publi... | C | fixunssfti_5.c |
// RUN: %clang_builtins %s %librt -o %t && %run %t
// REQUIRES: librt_has_fixunssfti
// REQUIRES: int128
#include "int_lib.h"
#include <stdio.h>
#ifdef CRT_HAS_128BIT
// Returns: convert a to a unsigned long long, rounding toward zero.
// Negative values all become zero.
// Assumption: float is a IEEE 32 b... | C | fixunssfti_test.c |
// RUN: %clang_builtins %s %librt -o %t && %run %t
// REQUIRES: librt_has_fixunssfti
// REQUIRES: int128
#include "int_lib.h"
#include <stdio.h>
#ifdef CRT_HAS_128BIT
// Returns: convert a to a unsigned long long, rounding toward zero.
// Negative values all become zero.
// Assumption: float is a IEEE 32 b... | C | fixunssfti_test_1.c |
//===-- fixunstfdi.c - Implement __fixunstfdi -----------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... | C | fixunstfdi.c |
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
// uint64_t __fixunstfdi(long double x);
// This file implements the PowerPC 128-bit double-double -> uint64_t convers... | C | fixunstfdi_1.c |
/* Software floating-point emulation.
Convert a to 64bit unsigned integer
Copyright (C) 1997-2024 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
Licens... | C | fixunstfdi_2.c |
/* Software floating-point emulation.
Convert a to 64bit unsigned integer
Copyright (C) 1997-2022 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
Licens... | C | fixunstfdi_3.c |
/* Software floating-point emulation.
Convert a to 64bit unsigned integer
Copyright (C) 1997-2022 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
Licens... | C | fixunstfdi_4.c |
//===-- fixunstfdi.c - Implement __fixunstfdi -----------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... | C | fixunstfdi_5.c |
/* Software floating-point emulation.
Convert a to 64bit unsigned integer
Copyright (C) 1997-2022 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
Licens... | C | fixunstfdi_6.c |
// RUN: %clang_builtins %s %librt -o %t && %run %t
// REQUIRES: librt_has_fixunstfdi
#include <stdio.h>
#if _ARCH_PPC || __aarch64__
#include "int_lib.h"
// Returns: convert a to a unsigned long long, rounding toward zero.
// Negative values all become zero.
// Assumption: long double is a 128 bit floatin... | C | fixunstfdi_test.c |
// RUN: %clang_builtins %s %librt -o %t && %run %t
// REQUIRES: librt_has_fixunstfdi
#include <stdio.h>
#if _ARCH_PPC || __aarch64__
#include "int_lib.h"
// Returns: convert a to a unsigned long long, rounding toward zero.
// Negative values all become zero.
// Assumption: long double is a 128 bit floatin... | C | fixunstfdi_test_1.c |
//===-- fixunstfsi.c - Implement __fixunstfsi -----------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... | C | fixunstfsi.c |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.