csci2021/DataLab/datalab-handout/bits.h
Michael Zhang 1fa36db752
f
2018-01-29 17:45:27 -06:00

61 lines
2.5 KiB
C

/* Copyright (C) 1991-2016 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 as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
The GNU C Library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with the GNU C Library; if not, see
<http://www.gnu.org/licenses/>. */
/* This header is separate from features.h so that the compiler can
include it implicitly at the start of every compilation. It must
not itself include <features.h> or any other header that includes
<features.h> because the implicit include comes before any feature
test macros that may be defined in a source file before it first
explicitly includes a system header. GCC knows the name of this
header in order to preinclude it. */
/* glibc's intent is to support the IEC 559 math functionality, real
and complex. If the GCC (4.9 and later) predefined macros
specifying compiler intent are available, use them to determine
whether the overall intent is to support these features; otherwise,
presume an older compiler has intent to support these features and
define these macros by default. */
/* wchar_t uses Unicode 8.0.0. Version 8.0 of the Unicode Standard is
synchronized with ISO/IEC 10646:2014, plus Amendment 1 (published
2015-05-15). */
/* We do not support C11 <threads.h>. */
int bitXor(int, int);
int test_bitXor(int, int);
int evenBits();
int test_evenBits();
int leastBitPos(int);
int test_leastBitPos(int);
int isEqual(int, int);
int test_isEqual(int, int);
int fitsBits(int, int);
int test_fitsBits(int, int);
int reverseBytes(int);
int test_reverseBytes(int);
int isPositive(int);
int test_isPositive(int);
int multFiveEighths(int);
int test_multFiveEighths(int);
int isLessOrEqual(int, int);
int test_isLessOrEqual(int, int);
int logicalNeg(int);
int test_logicalNeg(int);
int tc2sm(int);
int test_tc2sm(int);
int leftBitCount(int);
int test_leftBitCount(int);
unsigned float_neg(unsigned);
unsigned test_float_neg(unsigned);
unsigned float_half(unsigned);
unsigned test_float_half(unsigned);