file_text string | language string | file_name string |
|---|---|---|
/*
* Copyright (c) 2012
* MIPS Technologies, Inc., California.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of... | C | fixed_dsp_3.c |
/*
* Copyright © 2022 Rémi Denis-Courmont.
*
* This file is part of FFmpeg.
*
* FFmpeg is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) an... | C | fixed_dsp_init.c |
/*
* This file is part of FFmpeg.
*
* FFmpeg is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* FFmpeg is distributed... | C | fixed_dsp_init_1.c |
/*
* Copyright © 2022 Rémi Denis-Courmont.
*
* This file is part of FFmpeg.
*
* FFmpeg is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) an... | C | fixed_dsp_init_2.c |
/*
* This file is part of FFmpeg.
*
* FFmpeg is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* FFmpeg is distributed... | C | fixed_dsp_init_3.c |
/* Check that vcvt is used for fixed and float data conversions. */
/* { dg-do compile } */
/* { dg-require-effective-target arm_vfp3_ok } */
/* { dg-options "-O1" } */
/* { dg-add-options arm_vfp3 } */
/* { dg-skip-if "need fp instructions" { *-*-* } { "-mfloat-abi=soft" } { "" } } */
float
fixed_to_float (int i)
{
... | C | fixed_float_conversion.c |
/* Check that vcvt is used for fixed and float data conversions. */
/* { dg-do compile } */
/* { dg-require-effective-target arm_vfp3_ok } */
/* { dg-options "-O1" } */
/* { dg-add-options arm_vfp3 } */
/* { dg-skip-if "need fp instructions" { *-*-* } { "-mfloat-abi=soft" } { "" } } */
float
fixed_to_float (int i)
{
... | C | fixed_float_conversion_1.c |
/* Copyright (C) 2007-2009 Xiph.Org Foundation
Copyright (C) 2003-2008 Jean-Marc Valin
Copyright (C) 2007-2008 CSIRO */
/**
@file fixed_generic.h
@brief Generic fixed-point operations
*/
/*
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the... | C | fixed_generic.h |
/* Copyright (C) 2003 Jean-Marc Valin */
/**
@file fixed_generic.h
@brief Generic fixed-point operations
*/
/*
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
- Redistributions of source code m... | C | fixed_generic_1.h |
/* Copyright (C) 2007-2009 Xiph.Org Foundation
Copyright (C) 2003-2008 Jean-Marc Valin
Copyright (C) 2007-2008 CSIRO */
/**
@file fixed_generic.h
@brief Generic fixed-point operations
*/
/*
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the... | C | fixed_generic_10.h |
/* Copyright (C) 2007-2009 Xiph.Org Foundation
Copyright (C) 2003-2008 Jean-Marc Valin
Copyright (C) 2007-2008 CSIRO */
/**
@file fixed_generic.h
@brief Generic fixed-point operations
*/
/*
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the... | C | fixed_generic_11.h |
/* Copyright (C) 2007-2009 Xiph.Org Foundation
Copyright (C) 2003-2008 Jean-Marc Valin
Copyright (C) 2007-2008 CSIRO */
/**
@file fixed_generic.h
@brief Generic fixed-point operations
*/
/*
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the... | C | fixed_generic_12.h |
/* Copyright (C) 2007-2009 Xiph.Org Foundation
Copyright (C) 2003-2008 Jean-Marc Valin
Copyright (C) 2007-2008 CSIRO */
/**
@file fixed_generic.h
@brief Generic fixed-point operations
*/
/*
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the... | C | fixed_generic_2.h |
/* Copyright (C) 2007-2009 Xiph.Org Foundation
Copyright (C) 2003-2008 Jean-Marc Valin
Copyright (C) 2007-2008 CSIRO */
/**
@file fixed_generic.h
@brief Generic fixed-point operations
*/
/*
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the... | C | fixed_generic_3.h |
/* Copyright (C) 2007-2009 Xiph.Org Foundation
Copyright (C) 2003-2008 Jean-Marc Valin
Copyright (C) 2007-2008 CSIRO */
/**
@file fixed_generic.h
@brief Generic fixed-point operations
*/
/*
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the... | C | fixed_generic_4.h |
/* Copyright (C) 2007-2009 Xiph.Org Foundation
Copyright (C) 2003-2008 Jean-Marc Valin
Copyright (C) 2007-2008 CSIRO */
/**
@file fixed_generic.h
@brief Generic fixed-point operations
*/
/*
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the... | C | fixed_generic_5.h |
/* Copyright (C) 2007-2009 Xiph.Org Foundation
Copyright (C) 2003-2008 Jean-Marc Valin
Copyright (C) 2007-2008 CSIRO */
/**
@file fixed_generic.h
@brief Generic fixed-point operations
*/
/*
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the... | C | fixed_generic_6.h |
/* Copyright (C) 2003 Jean-Marc Valin */
/**
@file fixed_generic.h
@brief Generic fixed-point operations
*/
/*
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
- Redistributions of source code must retain th... | C | fixed_generic_7.h |
/* Copyright (C) 2003 Jean-Marc Valin */
/**
@file fixed_generic.h
@brief Generic fixed-point operations
*/
/*
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
- Redistributions of source code must retain th... | C | fixed_generic_8.h |
/* Copyright (C) 2003 Jean-Marc Valin */
/**
@file fixed_generic.h
@brief Generic fixed-point operations
*/
/*
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
- Redistributions of source code must retain... | C | fixed_generic_9.h |
/* Copyright (C) 2007-2009 Xiph.Org Foundation
Copyright (C) 2003-2008 Jean-Marc Valin
Copyright (C) 2007-2008 CSIRO */
/**
@file fixed_generic.h
@brief Generic fixed-point operations
*/
/*
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the... | C | fixed_generic_mipsr1.h |
/* Copyright (C) 2007-2009 Xiph.Org Foundation
Copyright (C) 2003-2008 Jean-Marc Valin
Copyright (C) 2007-2008 CSIRO */
/**
@file fixed_generic.h
@brief Generic fixed-point operations
*/
/*
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the... | C | fixed_generic_mipsr1_1.h |
/* Copyright (C) 2007-2009 Xiph.Org Foundation
Copyright (C) 2003-2008 Jean-Marc Valin
Copyright (C) 2007-2008 CSIRO */
/**
@file fixed_generic.h
@brief Generic fixed-point operations
*/
/*
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the... | C | fixed_generic_mipsr1_2.h |
/* Copyright (C) 2007-2009 Xiph.Org Foundation
Copyright (C) 2003-2008 Jean-Marc Valin
Copyright (C) 2007-2008 CSIRO */
/**
@file fixed_generic.h
@brief Generic fixed-point operations
*/
/*
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the... | C | fixed_generic_mipsr1_3.h |
/* Copyright (C) 2007-2009 Xiph.Org Foundation
Copyright (C) 2003-2008 Jean-Marc Valin
Copyright (C) 2007-2008 CSIRO */
/**
@file fixed_generic.h
@brief Generic fixed-point operations
*/
/*
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the... | C | fixed_generic_mipsr1_4.h |
/* libFLAC - Free Lossless Audio Codec library
* Copyright (C) 2000-2009 Josh Coalson
* Copyright (C) 2011-2023 Xiph.Org Foundation
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* - Redistributions of so... | C | fixed_intrin_avx2.c |
/* libFLAC - Free Lossless Audio Codec library
* Copyright (C) 2000-2009 Josh Coalson
* Copyright (C) 2011-2016 Xiph.Org Foundation
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* - Redistributions of so... | C | fixed_intrin_sse2.c |
/* libFLAC - Free Lossless Audio Codec library
* Copyright (C) 2000-2009 Josh Coalson
* Copyright (C) 2011-2023 Xiph.Org Foundation
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* - Redistributions of so... | C | fixed_intrin_sse2_1.c |
/* libFLAC - Free Lossless Audio Codec library
* Copyright (C) 2000-2009 Josh Coalson
* Copyright (C) 2011-2023 Xiph.Org Foundation
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* - Redistributions of so... | C | fixed_intrin_sse42.c |
/* libFLAC - Free Lossless Audio Codec library
* Copyright (C) 2000-2009 Josh Coalson
* Copyright (C) 2011-2016 Xiph.Org Foundation
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* - Redistributions of so... | C | fixed_intrin_ssse3.c |
/* libFLAC - Free Lossless Audio Codec library
* Copyright (C) 2000-2009 Josh Coalson
* Copyright (C) 2011-2023 Xiph.Org Foundation
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* - Redistributions of so... | C | fixed_intrin_ssse3_1.c |
// SPDX-License-Identifier: GPL-2.0+
/*
* Fixed MDIO bus (MDIO bus emulation with fixed PHYs)
*
* Author: Vitaly Bordug <vbordug@ru.mvista.com>
* Anton Vorontsov <avorontsov@ru.mvista.com>
*
* Copyright (c) 2006-2007 MontaVista Software, Inc.
*/
#include <linux/kernel.h>
#include <linux/module.h>
#inclu... | C | fixed_phy.c |
// Test without serialization:
// RUN: %clang_cc1 -x c -ffixed-point -ast-dump %s | FileCheck %s --strict-whitespace
//
// Test with serialization:
// RUN: %clang_cc1 -ffixed-point -emit-pch -o %t %s
// RUN: %clang_cc1 -x c -ffixed-point -include-pch %t -ast-dump-all /dev/null \
// RUN: | sed -e "s/ <undeserialized dec... | C | fixed_point.c |
// NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py
// RUN: %clang_cc1 -ffixed-point -triple x86_64-unknown-linux-gnu -S -emit-llvm %s -o - | FileCheck %s --check-prefixes=CHECK,SIGNED
// RUN: %clang_cc1 -ffixed-point -triple x86_64-unknown-linux-gnu -fpadding-on-unsigned-fixed-point -S -emit-... | C | fixed_point_add.c |
// RUN: %clang_cc1 -ffixed-point -triple x86_64-unknown-linux-gnu -S -emit-llvm %s -o - | FileCheck %s --check-prefixes=CHECK,SIGNED
// RUN: %clang_cc1 -ffixed-point -triple x86_64-unknown-linux-gnu -fpadding-on-unsigned-fixed-point -S -emit-llvm %s -o - | FileCheck %s --check-prefixes=CHECK,UNSIGNED
// Addition betwe... | C | fixed_point_add_const.c |
// RUN: %clang_cc1 -ffixed-point -triple x86_64-unknown-linux-gnu -S -emit-llvm %s -o - | FileCheck %s --check-prefixes=CHECK,SIGNED
// RUN: %clang_cc1 -ffixed-point -triple x86_64-unknown-linux-gnu -fpadding-on-unsigned-fixed-point -S -emit-llvm %s -o - | FileCheck %s --check-prefixes=CHECK,UNSIGNED
// Addition betwe... | C | fixed_point_add_const_1.c |
// RUN: %clang -x c -ffixed-point -S -emit-llvm -o - %s | FileCheck %s
// RUN: %clang -x c -ffixed-point -S -emit-llvm -o - --target=x86_64-scei-ps4-ubuntu-fast %s | FileCheck %s
// RUN: %clang -x c -ffixed-point -S -emit-llvm -o - --target=ppc64 %s | FileCheck %s
// RUN: %clang -x c -ffixed-point -S -emit-llvm -o - --... | C | fixed_point_bit_widths.c |
// RUN: %clang -x c -ffixed-point -S -emit-llvm -o - %s | FileCheck %s
// RUN: %clang -x c -ffixed-point -S -emit-llvm -o - --target=x86_64-scei-ps4-ubuntu-fast %s | FileCheck %s
// RUN: %clang -x c -ffixed-point -S -emit-llvm -o - --target=ppc64 %s | FileCheck %s
// RUN: %clang -x c -ffixed-point -S -emit-llvm -o - --... | C | fixed_point_bit_widths_1.c |
// RUN: %clang_cc1 -ffixed-point -triple x86_64-unknown-linux-gnu -S -emit-llvm %s -o - | FileCheck %s --check-prefixes=CHECK,UNPADDED
// RUN: %clang_cc1 -ffixed-point -triple x86_64-unknown-linux-gnu -fpadding-on-unsigned-fixed-point -S -emit-llvm %s -o - | FileCheck %s --check-prefixes=CHECK,PADDED
// Fixed point ag... | C | fixed_point_comparisons.c |
// NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py
// RUN: %clang_cc1 -ffixed-point -triple x86_64-unknown-linux-gnu -S -emit-llvm %s -o - | FileCheck %s --check-prefixes=CHECK,SIGNED
// RUN: %clang_cc1 -ffixed-point -triple x86_64-unknown-linux-gnu -fpadding-on-unsigned-fixed-point -S -emit-... | C | fixed_point_compound.c |
// NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py
// RUN: %clang_cc1 -ffixed-point -triple x86_64-unknown-linux-gnu -S -emit-llvm %s -o - | FileCheck %s --check-prefixes=CHECK,SIGNED
// RUN: %clang_cc1 -ffixed-point -triple x86_64-unknown-linux-gnu -S -emit-llvm %s -o - -fpadding-on-unsigned... | C | fixed_point_conversions.c |
// RUN: %clang_cc1 -ffixed-point -triple x86_64-unknown-linux-gnu -S -emit-llvm %s -o - | FileCheck %s --check-prefixes=CHECK,SIGNED
// RUN: %clang_cc1 -ffixed-point -triple x86_64-unknown-linux-gnu -S -emit-llvm %s -o - -fpadding-on-unsigned-fixed-point | FileCheck %s --check-prefixes=CHECK,UNSIGNED
// Between differ... | C | fixed_point_conversions_const.c |
// RUN: %clang_cc1 -ffixed-point -triple x86_64-unknown-linux-gnu -S -emit-llvm %s -o - | FileCheck %s --check-prefixes=CHECK,SIGNED
// RUN: %clang_cc1 -ffixed-point -triple x86_64-unknown-linux-gnu -S -emit-llvm %s -o - -fpadding-on-unsigned-fixed-point | FileCheck %s --check-prefixes=CHECK,UNSIGNED
// Between differ... | C | fixed_point_conversions_const_1.c |
// NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py
// RUN: %clang_cc1 -ffixed-point -triple arm64-unknown-linux-gnu -S -emit-llvm %s -o - | FileCheck %s --check-prefixes=CHECK,SIGNED
// RUN: %clang_cc1 -ffixed-point -triple arm64-unknown-linux-gnu -S -emit-llvm %s -o - -fpadding-on-unsigned-f... | C | fixed_point_conversions_half.c |
// RUN: %clang_cc1 -verify -ffixed-point %s
union a {
_Accum x;
int i;
};
int fn1() {
union a m;
m.x = 5.6k;
return m.i;
}
int fn2() {
union a m;
m.x = 7, 5.6k; // expected-warning {{expression result unused}}
return m.x, m.i; // expected-warning {{expression result unused}}
}
_Accum acc = (0.5r, 6.... | C | fixed_point_crash.c |
// RUN: %clang_cc1 -verify -ffixed-point %s
union a {
_Accum x;
int i;
};
int fn1() {
union a m;
m.x = 5.6k;
return m.i;
}
int fn2() {
union a m;
m.x = 7, 5.6k; // expected-warning {{expression result unused}}
return m.x, m.i; // expected-warning {{expression result unused}}
}
_Accum acc = (0.5r, 6.... | C | fixed_point_crash_1.c |
// RUN: %clang -ffixed-point -S -emit-llvm %s -o - --target=x86_64-linux | FileCheck %s
// Primary fixed point types
signed short _Accum s_short_accum; // CHECK-DAG: @s_short_accum = {{.*}}global i16 0, align 2
signed _Accum s_accum; // CHECK-DAG: @s_accum = {{.*}}global i32 0, align 4
signed... | C | fixed_point_declarations.c |
// NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py
// RUN: %clang_cc1 -ffixed-point -triple x86_64-unknown-linux-gnu -S -emit-llvm %s -o - | FileCheck %s --check-prefixes=CHECK,SIGNED
// RUN: %clang_cc1 -ffixed-point -triple x86_64-unknown-linux-gnu -fpadding-on-unsigned-fixed-point -S -emit-... | C | fixed_point_div.c |
// RUN: %clang_cc1 -ffixed-point -triple x86_64-unknown-linux-gnu -S -emit-llvm %s -o - | FileCheck %s --check-prefixes=CHECK,SIGNED
// RUN: %clang_cc1 -ffixed-point -triple x86_64-unknown-linux-gnu -fpadding-on-unsigned-fixed-point -S -emit-llvm %s -o - | FileCheck %s --check-prefixes=CHECK,UNSIGNED
// Division betwe... | C | fixed_point_div_const.c |
// RUN: %clang_cc1 -ffixed-point -triple x86_64-unknown-linux-gnu -S -emit-llvm %s -o - | FileCheck %s --check-prefixes=CHECK,SIGNED
// RUN: %clang_cc1 -ffixed-point -triple x86_64-unknown-linux-gnu -fpadding-on-unsigned-fixed-point -S -emit-llvm %s -o - | FileCheck %s --check-prefixes=CHECK,UNSIGNED
// Division betwe... | C | fixed_point_div_const_1.c |
// RUN: %clang_cc1 -verify -ffixed-point %s
/* We do not yet support long long. No recommended bit widths are given for this
* size. */
long long _Accum longlong_accum; // expected-error{{'long long _Accum' is invalid}}
unsigned long long _Accum u_longlong_accum; // expected-error{{'long long _Accum' ... | C | fixed_point_errors.c |
// NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py
// RUN: %clang_cc1 -ffixed-point -triple x86_64-unknown-linux-gnu -S -emit-llvm %s -o - | FileCheck %s --check-prefixes=CHECK,SIGNED
// RUN: %clang_cc1 -ffixed-point -triple x86_64-unknown-linux-gnu -fpadding-on-unsigned-fixed-point -S -emit-... | C | fixed_point_mul.c |
// RUN: %clang_cc1 -ffixed-point -triple x86_64-unknown-linux-gnu -S -emit-llvm %s -o - | FileCheck %s --check-prefixes=CHECK,SIGNED
// RUN: %clang_cc1 -ffixed-point -triple x86_64-unknown-linux-gnu -fpadding-on-unsigned-fixed-point -S -emit-llvm %s -o - | FileCheck %s --check-prefixes=CHECK,UNSIGNED
// Multiplication... | C | fixed_point_mul_const.c |
// RUN: %clang_cc1 -ffixed-point -triple x86_64-unknown-linux-gnu -S -emit-llvm %s -o - | FileCheck %s --check-prefixes=CHECK,SIGNED
// RUN: %clang_cc1 -ffixed-point -triple x86_64-unknown-linux-gnu -fpadding-on-unsigned-fixed-point -S -emit-llvm %s -o - | FileCheck %s --check-prefixes=CHECK,UNSIGNED
// Multiplication... | C | fixed_point_mul_const_1.c |
// RUN: %clang_cc1 -x c -verify %s
// Primary fixed point types
signed short _Accum s_short_accum; // expected-error{{compile with '-ffixed-point' to enable fixed point types}}
signed _Accum s_accum; // expected-error{{compile with '-ffixed-point' to enable fixed point types}}
signed long _Accum s_lo... | C | fixed_point_not_enabled.c |
// RUN: %clang_cc1 -x c -verify %s
// Primary fixed point types
signed short _Accum s_short_accum; // expected-error{{compile with '-ffixed-point' to enable fixed point types}}
signed _Accum s_accum; // expected-error{{compile with '-ffixed-point' to enable fixed point types}}
signed long _Accum s_lo... | C | fixed_point_not_enabled_1.c |
// RUN: %clang -ffixed-point -S -emit-llvm -o - %s | FileCheck %s -check-prefix=DEFAULT
// RUN: %clang_cc1 -ffixed-point -fpadding-on-unsigned-fixed-point -S -emit-llvm -o - %s | FileCheck %s -check-prefix=SAME
/* The scale for unsigned fixed point types should be the same as that of signed
* fixed point types when -... | C | fixed_point_same_fbits.c |
// RUN: %clang -ffixed-point -S -emit-llvm -o - %s | FileCheck %s -check-prefix=DEFAULT
// RUN: %clang_cc1 -ffixed-point -fpadding-on-unsigned-fixed-point -S -emit-llvm -o - %s | FileCheck %s -check-prefix=SAME
/* The scale for unsigned fixed point types should be the same as that of signed
* fixed point types when -... | C | fixed_point_same_fbits_1.c |
// NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py
// RUN: %clang_cc1 -ffixed-point -triple x86_64-unknown-linux-gnu -S -emit-llvm %s -o - | FileCheck %s --check-prefixes=CHECK,SIGNED
// RUN: %clang_cc1 -ffixed-point -triple x86_64-unknown-linux-gnu -fpadding-on-unsigned-fixed-point -S -emit-... | C | fixed_point_shift.c |
// RUN: %clang_cc1 -ffixed-point -triple x86_64-unknown-linux-gnu -S -emit-llvm %s -o - | FileCheck %s --check-prefixes=CHECK,SIGNED
// RUN: %clang_cc1 -ffixed-point -triple x86_64-unknown-linux-gnu -fpadding-on-unsigned-fixed-point -S -emit-llvm %s -o - | FileCheck %s --check-prefixes=CHECK,UNSIGNED
short _Accum sa_c... | C | fixed_point_shift_const.c |
// RUN: %clang_cc1 -ffixed-point -triple x86_64-unknown-linux-gnu -S -emit-llvm %s -o - | FileCheck %s --check-prefixes=CHECK,SIGNED
// RUN: %clang_cc1 -ffixed-point -triple x86_64-unknown-linux-gnu -fpadding-on-unsigned-fixed-point -S -emit-llvm %s -o - | FileCheck %s --check-prefixes=CHECK,UNSIGNED
short _Accum sa_c... | C | fixed_point_shift_const_1.c |
// NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py
// RUN: %clang_cc1 -ffixed-point -triple x86_64-unknown-linux-gnu -S -emit-llvm %s -o - | FileCheck %s --check-prefixes=CHECK,SIGNED
// RUN: %clang_cc1 -ffixed-point -triple x86_64-unknown-linux-gnu -fpadding-on-unsigned-fixed-point -S -emit-... | C | fixed_point_sub.c |
// RUN: %clang_cc1 -ffixed-point -triple x86_64-unknown-linux-gnu -S -emit-llvm %s -o - | FileCheck %s --check-prefixes=CHECK,SIGNED
// RUN: %clang_cc1 -ffixed-point -triple x86_64-unknown-linux-gnu -fpadding-on-unsigned-fixed-point -S -emit-llvm %s -o - | FileCheck %s --check-prefixes=CHECK,UNSIGNED
// Subtraction be... | C | fixed_point_sub_const.c |
// RUN: %clang_cc1 -ffixed-point -triple x86_64-unknown-linux-gnu -S -emit-llvm %s -o - | FileCheck %s --check-prefixes=CHECK,SIGNED
// RUN: %clang_cc1 -ffixed-point -triple x86_64-unknown-linux-gnu -fpadding-on-unsigned-fixed-point -S -emit-llvm %s -o - | FileCheck %s --check-prefixes=CHECK,UNSIGNED
// Subtraction be... | C | fixed_point_sub_const_1.c |
// RUN: %clang_cc1 -ffixed-point -S -emit-llvm %s -o - | FileCheck %s
// RUN: %clang_cc1 -ffixed-point -S -emit-llvm %s -o - -fpadding-on-unsigned-fixed-point | FileCheck %s
_Bool global_b = 1.0k; // @global_b = {{*.}}global i8 1, align 1
_Bool global_b2 = 0.0k; // @global_b2 = {{*.}}global i8 0, align 1
void func()... | C | fixed_point_to_bool.c |
// RUN: %clang_cc1 -ffixed-point -S -emit-llvm %s -o - | FileCheck %s
// RUN: %clang_cc1 -ffixed-point -S -emit-llvm %s -o - -fpadding-on-unsigned-fixed-point | FileCheck %s
_Bool global_b = 1.0k; // @global_b = {{*.}}global i8 1, align 1
_Bool global_b2 = 0.0k; // @global_b2 = {{*.}}global i8 0, align 1
void func()... | C | fixed_point_to_bool_1.c |
// Tests without serialization:
// RUN: %clang_cc1 -ast-dump -ffixed-point %s | FileCheck %s
// RUN: %clang_cc1 -ast-dump -ffixed-point -fpadding-on-unsigned-fixed-point %s | FileCheck %s
//
// Tests with serialization:
// RUN: %clang_cc1 -ffixed-point -emit-pch -o %t %s
// RUN: %clang_cc1 -x c -ffixed-point -include-p... | C | fixed_point_to_string.c |
// Tests without serialization:
// RUN: %clang_cc1 -ast-dump -ffixed-point %s | FileCheck %s
// RUN: %clang_cc1 -ast-dump -ffixed-point -fpadding-on-unsigned-fixed-point %s | FileCheck %s
//
// Tests with serialization:
// RUN: %clang_cc1 -ffixed-point -emit-pch -o %t %s
// RUN: %clang_cc1 -x c -ffixed-point -include-p... | C | fixed_point_to_string_1.c |
// NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py
// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -ffixed-point -S -emit-llvm %s -o - | FileCheck %s --check-prefixes=CHECK,SIGNED
// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -ffixed-point -fpadding-on-unsigned-fixed-point -S -emit-... | C | fixed_point_unary.c |
// RUN: %clang_cc1 -verify -ffixed-point %s
void func() {
_Bool b;
char c;
int i;
float f;
double d;
double _Complex dc;
int _Complex ic;
struct S {
int i;
} s;
enum E {
A
} e;
int *ptr;
typedef int int_t;
int_t i2;
_Accum accum;
_Fract fract = accum; // ok
_Accum *accum_ptr;... | C | fixed_point_unknown_conversions.c |
// RUN: %clang_cc1 -verify -ffixed-point %s
void func() {
_Bool b;
char c;
int i;
float f;
double d;
double _Complex dc;
int _Complex ic;
struct S {
int i;
} s;
enum E {
A
} e;
int *ptr;
typedef int int_t;
int_t i2;
_Accum accum;
_Fract fract = accum; // ok
_Accum *accum_ptr;... | C | fixed_point_unknown_conversions_1.c |
/******************************************************************************
*
* Copyright (C) 2014 Google, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at:
*
* http://ww... | C | fixed_queue.c |
/******************************************************************************
*
* Copyright (C) 2014 Google, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at:
*
* http://ww... | C | fixed_queue.h |
#include "ref.h"
void ref_q31_to_q15(
q31_t * pSrc,
q15_t * pDst,
uint32_t blockSize)
{
uint32_t i;
for(i=0;i<blockSize;i++)
{
pDst[i] = pSrc[i] >> 16;
}
}
void ref_q31_to_q7(
q31_t * pSrc,
q7_t * pDst,
uint32_t blockSize)
{
uint32_t i;
for(i=0;i<blockSize;i++)
{
pDs... | C | fixed_to_fixed.c |
#include "ref.h"
void ref_q31_to_q15(
q31_t * pSrc,
q15_t * pDst,
uint32_t blockSize)
{
uint32_t i;
for(i=0;i<blockSize;i++)
{
pDst[i] = pSrc[i] >> 16;
}
}
void ref_q31_to_q7(
q31_t * pSrc,
q7_t * pDst,
uint32_t blockSize)
{
uint32_t i;
for(i=0;i<blockSize;i++)
{
pDs... | C | fixed_to_fixed_1.c |
#include "ref.h"
void ref_q31_to_q15(
q31_t * pSrc,
q15_t * pDst,
uint32_t blockSize)
{
uint32_t i;
for(i=0;i<blockSize;i++)
{
pDst[i] = pSrc[i] >> 16;
}
}
void ref_q31_to_q7(
q31_t * pSrc,
q7_t * pDst,
uint32_t blockSize)
{
uint32_t i;
for(i=0;i<blockSize;i++)
{
pDst[i] = pSrc[i] >> 24;
}... | C | fixed_to_fixed_10.c |
#include "ref.h"
void ref_q31_to_q15(
q31_t * pSrc,
q15_t * pDst,
uint32_t blockSize)
{
uint32_t i;
for(i=0;i<blockSize;i++)
{
pDst[i] = pSrc[i] >> 16;
}
}
void ref_q31_to_q7(
q31_t * pSrc,
q7_t * pDst,
uint32_t blockSize)
{
uint32_t i;
for(i=0;i<blockSize;i++)
{
pDs... | C | fixed_to_fixed_11.c |
#include "ref.h"
void ref_q31_to_q15(
q31_t * pSrc,
q15_t * pDst,
uint32_t blockSize)
{
uint32_t i;
for(i=0;i<blockSize;i++)
{
pDst[i] = pSrc[i] >> 16;
}
}
void ref_q31_to_q7(
q31_t * pSrc,
q7_t * pDst,
uint32_t blockSize)
{
uint32_t i;
for(i=0;i<blockSize;i++)
{
pDs... | C | fixed_to_fixed_12.c |
#include "ref.h"
void ref_q31_to_q15(
q31_t * pSrc,
q15_t * pDst,
uint32_t blockSize)
{
uint32_t i;
for(i=0;i<blockSize;i++)
{
pDst[i] = pSrc[i] >> 16;
}
}
void ref_q31_to_q7(
q31_t * pSrc,
q7_t * pDst,
uint32_t blockSize)
{
uint32_t i;
for(i=0;i<blockSize;i++)
{
pDs... | C | fixed_to_fixed_2.c |
#include "ref.h"
void ref_q31_to_q15(
q31_t * pSrc,
q15_t * pDst,
uint32_t blockSize)
{
uint32_t i;
for(i=0;i<blockSize;i++)
{
pDst[i] = pSrc[i] >> 16;
}
}
void ref_q31_to_q7(
q31_t * pSrc,
q7_t * pDst,
uint32_t blockSize)
{
uint32_t i;
for(i=0;i<blockSize;i++)
{
pDs... | C | fixed_to_fixed_3.c |
#include "ref.h"
void ref_q31_to_q15(
q31_t * pSrc,
q15_t * pDst,
uint32_t blockSize)
{
uint32_t i;
for(i=0;i<blockSize;i++)
{
pDst[i] = pSrc[i] >> 16;
}
}
void ref_q31_to_q7(
q31_t * pSrc,
q7_t * pDst,
uint32_t blockSize)
{
uint32_t i;
for(i=0;i<blockSize;i++)
{
pDst[i] = pSrc[i] >> 24;
}... | C | fixed_to_fixed_4.c |
#include "ref.h"
void ref_q31_to_q15(
q31_t * pSrc,
q15_t * pDst,
uint32_t blockSize)
{
uint32_t i;
for(i=0;i<blockSize;i++)
{
pDst[i] = pSrc[i] >> 16;
}
}
void ref_q31_to_q7(
q31_t * pSrc,
q7_t * pDst,
uint32_t blockSize)
{
uint32_t i;
for(i=0;i<blockSize;i++)
{
pDst[i] = pSrc[i] >> 24;
}... | C | fixed_to_fixed_5.c |
#include "ref.h"
void ref_q31_to_q15(
q31_t * pSrc,
q15_t * pDst,
uint32_t blockSize)
{
uint32_t i;
for(i=0;i<blockSize;i++)
{
pDst[i] = pSrc[i] >> 16;
}
}
void ref_q31_to_q7(
q31_t * pSrc,
q7_t * pDst,
uint32_t blockSize)
{
uint32_t i;
for(i=0;i<blockSize;i++)
{
pDst[i] = pSrc[i] >> 24;
}... | C | fixed_to_fixed_6.c |
#include "ref.h"
void ref_q31_to_q15(
q31_t * pSrc,
q15_t * pDst,
uint32_t blockSize)
{
uint32_t i;
for(i=0;i<blockSize;i++)
{
pDst[i] = pSrc[i] >> 16;
}
}
void ref_q31_to_q7(
q31_t * pSrc,
q7_t * pDst,
uint32_t blockSize)
{
uint32_t i;
for(i=0;i<blockSize;i++)
{
pDst[i] = pSrc[i] >> 24;
}... | C | fixed_to_fixed_7.c |
#include "ref.h"
void ref_q31_to_q15(
q31_t * pSrc,
q15_t * pDst,
uint32_t blockSize)
{
uint32_t i;
for(i=0;i<blockSize;i++)
{
pDst[i] = pSrc[i] >> 16;
}
}
void ref_q31_to_q7(
q31_t * pSrc,
q7_t * pDst,
uint32_t blockSize)
{
uint32_t i;
for(i=0;i<blockSize;i++)
{
pDst[i] = pSrc[i] >> 24;
}... | C | fixed_to_fixed_8.c |
#include "ref.h"
void ref_q31_to_q15(
q31_t * pSrc,
q15_t * pDst,
uint32_t blockSize)
{
uint32_t i;
for(i=0;i<blockSize;i++)
{
pDst[i] = pSrc[i] >> 16;
}
}
void ref_q31_to_q7(
q31_t * pSrc,
q7_t * pDst,
uint32_t blockSize)
{
uint32_t i;
for(i=0;i<blockSize;i++)
{
pDst[i] = pSrc[i] >> 24;
}... | C | fixed_to_fixed_9.c |
#include "ref.h"
void ref_q63_to_float(
q63_t * pSrc,
float32_t * pDst,
uint32_t blockSize)
{
uint32_t i;
for(i=0;i<blockSize;i++)
{
pDst[i] = ((float32_t)pSrc[i]) / 9223372036854775808.0f;
}
}
void ref_q31_to_float(
q31_t * pSrc,
float32_t * pDst,
uint32_t blockSize)
{
uint32... | C | fixed_to_float.c |
#include "ref.h"
void ref_q63_to_float(
q63_t * pSrc,
float32_t * pDst,
uint32_t blockSize)
{
uint32_t i;
for(i=0;i<blockSize;i++)
{
pDst[i] = ((float32_t)pSrc[i]) / 9223372036854775808.0f;
}
}
void ref_q31_to_float(
q31_t * pSrc,
float32_t * pDst,
uint32_t blockSize)
{
uint32... | C | fixed_to_float_1.c |
#include "ref.h"
void ref_q63_to_float(
q63_t * pSrc,
float32_t * pDst,
uint32_t blockSize)
{
uint32_t i;
for(i=0;i<blockSize;i++)
{
pDst[i] = ((float32_t)pSrc[i]) / 9223372036854775808.0f;
}
}
void ref_q31_to_float(
q31_t * pSrc,
float32_t * pDst,
uint32_t blockSize)
{
uint32_t i;
for(i=0;i<b... | C | fixed_to_float_10.c |
#include "ref.h"
void ref_q63_to_float(
q63_t * pSrc,
float32_t * pDst,
uint32_t blockSize)
{
uint32_t i;
for(i=0;i<blockSize;i++)
{
pDst[i] = ((float32_t)pSrc[i]) / 9223372036854775808.0f;
}
}
void ref_q31_to_float(
q31_t * pSrc,
float32_t * pDst,
uint32_t blockSize)
{
uint32... | C | fixed_to_float_11.c |
#include "ref.h"
void ref_q63_to_float(
q63_t * pSrc,
float32_t * pDst,
uint32_t blockSize)
{
uint32_t i;
for(i=0;i<blockSize;i++)
{
pDst[i] = ((float32_t)pSrc[i]) / 9223372036854775808.0f;
}
}
void ref_q31_to_float(
q31_t * pSrc,
float32_t * pDst,
uint32_t blockSize)
{
uint32... | C | fixed_to_float_12.c |
#include "ref.h"
void ref_q63_to_float(
q63_t * pSrc,
float32_t * pDst,
uint32_t blockSize)
{
uint32_t i;
for(i=0;i<blockSize;i++)
{
pDst[i] = ((float32_t)pSrc[i]) / 9223372036854775808.0f;
}
}
void ref_q31_to_float(
q31_t * pSrc,
float32_t * pDst,
uint32_t blockSize)
{
uint32... | C | fixed_to_float_2.c |
#include "ref.h"
void ref_q63_to_float(
q63_t * pSrc,
float32_t * pDst,
uint32_t blockSize)
{
uint32_t i;
for(i=0;i<blockSize;i++)
{
pDst[i] = ((float32_t)pSrc[i]) / 9223372036854775808.0f;
}
}
void ref_q31_to_float(
q31_t * pSrc,
float32_t * pDst,
uint32_t blockSize)
{
uint32... | C | fixed_to_float_3.c |
#include "ref.h"
void ref_q63_to_float(
q63_t * pSrc,
float32_t * pDst,
uint32_t blockSize)
{
uint32_t i;
for(i=0;i<blockSize;i++)
{
pDst[i] = ((float32_t)pSrc[i]) / 9223372036854775808.0f;
}
}
void ref_q31_to_float(
q31_t * pSrc,
float32_t * pDst,
uint32_t blockSize)
{
uint32_t i;
for(i=0;i<b... | C | fixed_to_float_4.c |
#include "ref.h"
void ref_q63_to_float(
q63_t * pSrc,
float32_t * pDst,
uint32_t blockSize)
{
uint32_t i;
for(i=0;i<blockSize;i++)
{
pDst[i] = ((float32_t)pSrc[i]) / 9223372036854775808.0f;
}
}
void ref_q31_to_float(
q31_t * pSrc,
float32_t * pDst,
uint32_t blockSize)
{
uint32_t i;
for(i=0;i<b... | C | fixed_to_float_5.c |
#include "ref.h"
void ref_q63_to_float(
q63_t * pSrc,
float32_t * pDst,
uint32_t blockSize)
{
uint32_t i;
for(i=0;i<blockSize;i++)
{
pDst[i] = ((float32_t)pSrc[i]) / 9223372036854775808.0f;
}
}
void ref_q31_to_float(
q31_t * pSrc,
float32_t * pDst,
uint32_t blockSize)
{
uint32_t i;
for(i=0;i<b... | C | fixed_to_float_6.c |
#include "ref.h"
void ref_q63_to_float(
q63_t * pSrc,
float32_t * pDst,
uint32_t blockSize)
{
uint32_t i;
for(i=0;i<blockSize;i++)
{
pDst[i] = ((float32_t)pSrc[i]) / 9223372036854775808.0f;
}
}
void ref_q31_to_float(
q31_t * pSrc,
float32_t * pDst,
uint32_t blockSize)
{
uint32_t i;
for(i=0;i<b... | C | fixed_to_float_7.c |
#include "ref.h"
void ref_q63_to_float(
q63_t * pSrc,
float32_t * pDst,
uint32_t blockSize)
{
uint32_t i;
for(i=0;i<blockSize;i++)
{
pDst[i] = ((float32_t)pSrc[i]) / 9223372036854775808.0f;
}
}
void ref_q31_to_float(
q31_t * pSrc,
float32_t * pDst,
uint32_t blockSize)
{
uint32_t i;
for(i=0;i<b... | C | fixed_to_float_8.c |
#include "ref.h"
void ref_q63_to_float(
q63_t * pSrc,
float32_t * pDst,
uint32_t blockSize)
{
uint32_t i;
for(i=0;i<blockSize;i++)
{
pDst[i] = ((float32_t)pSrc[i]) / 9223372036854775808.0f;
}
}
void ref_q31_to_float(
q31_t * pSrc,
float32_t * pDst,
uint32_t blockSize)
{
uint32_t i;
for(i=0;i<b... | C | fixed_to_float_9.c |
/* Fixed size hash table with internal linking.
Copyright (C) 2000, 2001, 2002, 2004, 2005 Red Hat, Inc.
This file is part of elfutils.
Written by Ulrich Drepper <drepper@redhat.com>, 2000.
This file is free software; you can redistribute it and/or modify
it under the terms of either
* the GNU Les... | C | fixedsizehash.h |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.