Displaying 20 results from an estimated 156 matches for "int8_t".
Did you mean:
uint8_t
2018 Mar 20
3
What is the status of the "Killing Undef and Spreading Poison" RFC?
...orters for this approach, there wasn't a
> consensus. To be fair, we didn't implement a complete prototype for this
> idea nor did we conduct a thorough discussion.
Do you have a link to this vector-based proposal? Suppose Clang
currently lowers a parameter of type struct { int32_t, int8_t, int8_t,
int8_t, int8_t } to i64, neither changing this to <8 x i8> or <2 *
i32> seems correct - but perhaps one of those options is close enough
for your requirements?. This is a disruptive change of course: there
is an often under-specified contract between the frontend and target
bac...
2003 Sep 29
1
openssh-3-7-1p2 compiling problems on Reliant UNIX
Martin.Rottler at nuernberger.de wrote:
> I have problems compiling openssh-3-7-1p2 on Reliant UNIX.
> (same problem with 3-7-1p1)
>
> first error was:
> ../defines.h 144: [error] CFE1101 "int8_t" has already been declared in the
> current scope
> typedef char int8_t;
The configure test tests for int8_t, int16_t and int32_t before defining
HAVE_INTXX_T. Does your system define all three (possibly in
/usr/include/sys/types.h)?
> cc -o ssh ssh.o readconf.o clientloop....
2018 Mar 20
0
What is the status of the "Killing Undef and Spreading Poison" RFC?
...ch, there wasn't a
>> consensus. To be fair, we didn't implement a complete prototype for this
>> idea nor did we conduct a thorough discussion.
>
> Do you have a link to this vector-based proposal? Suppose Clang
> currently lowers a parameter of type struct { int32_t, int8_t, int8_t,
> int8_t, int8_t } to i64, neither changing this to <8 x i8> or <2 *
> i32> seems correct - but perhaps one of those options is close enough
> for your requirements?. This is a disruptive change of course: there
> is an often under-specified contract between the fro...
2012 Feb 09
2
[PATCH] Remove even more CPP hackery
> Dave Yeo wrote:
>> Yes that makes sense. Requiring a C99 compliant compiler seems quite
reasonable.
> Well I'm actually going to be even more reasonable than that. The only
bits of C99 that flac will really require is header file
> with C99 standard width integers (int8_t, uint8_t, int16_t etc). Erik
I would recommend including with the distribution a file for windows
developers to use. It's fairly simple
/* since windows doesn't have stdint.h */
typedef unsigned __int64 uint64_t;
typedef unsigned __int32 uint32_t;
typedef unsigned __int16 uint16_t;...
2009 Jan 08
1
[LLVMdev] Integer typedefs for MSVC
...DataTypes.h)
conflict with those used by other third-party libraries. Instead of these:
#ifdef _MSC_VER
typedef __int64 int64_t;
typedef unsigned __int64 uint64_t;
typedef signed int int32_t;
typedef unsigned int uint32_t;
typedef short int16_t;
typedef unsigned short uint16_t;
typedef signed char int8_t;
typedef unsigned char uint8_t;
typedef signed int ssize_t;
#endif
it would be preferable to use these:
typedef __int8 int8_t;
typedef __int16 int16_t;
typedef __int32 int32_t;
typedef __int64 int64_t;
typedef unsigned __int8 uint8_t;
typedef unsigned __int16 uint16_t;
typedef unsigned __int32 ui...
2004 Feb 07
1
double define of __BIT_TYPES_DEFINED__
/klibc/klibc/include/bits32/bitsize/stdint.h:8: error: redefinition of `int8_t'
/klibc/linux/include/linux/types.h:109: error: `int8_t' previously declared here
The copy in stdint.h is not protected by:
#ifndef __BIT_TYPES_DEFINED__
#define __BIT_TYPES_DEFINED__
#endif /* !(__BIT_TYPES_DEFINED__) */
=====
Jon Smirl
jonsmirl@yahoo.com
______________________________...
2012 Feb 09
1
[PATCH] Remove even more CPP hackery
...Requiring a C99 compliant compiler
>>>> seems quite
>> reasonable.
>>> Well I'm actually going to be even more reasonable than that.
>>> The only
>> bits of C99 that flac will really require is header file
>>> with C99 standard width integers (int8_t, uint8_t, int16_t
>>> etc). Erik
>>
>> I would recommend including with the distribution a file for
>> windows developers to use. It's fairly simple
>>
>>
>> /* since windows doesn't have stdint.h */ typedef unsigned
>> __int64 uint64_t...
2020 Apr 07
2
Questions about vscale
...it to one specific value of vscale.
Also, I had a question about your table. Based on your description of how LMUL works, I’d expect that LMUL == vscale, and that each column in your table would be the same:
int64_t | vscale x 1 x i64
int32_t | vscale x 2 x i32
int16_t | vscale x 4 x i16
int8_t | vscale x 8 x i8
… which is basically equivalent to:
int64_t | LMUL x 1 x i64
int32_t | LMUL x 2 x i32
int16_t | LMUL x 4 x i16
int8_t | LMUL x 8 x i8
… is this not the case?
Thanks,
Chris Tetreault
From: llvm-dev <llvm-dev-bounces at lists.llvm.org<mailto:llvm-dev-bounces at li...
2018 Mar 20
0
What is the status of the "Killing Undef and Spreading Poison" RFC?
Hi,
Let me give you my view of the status:
The proposal you mentioned was, I believe, well understood and
accepted. Except for one bit, which was that it requires correct
typing of load/store operations. That is, if you load an i32, it means
you are loading a single 32-bit integer, not two 16-bit integers or
something else.
This is a valid concern because currently nor LLVM nor clang
2018 Mar 19
2
What is the status of the "Killing Undef and Spreading Poison" RFC?
Hi,
Back in 2016 an RFC titled "Killing Undef and Spreading Poison" [1]
was posted on this mailing list, which generated a lot of discussion
between different people. Later in 2017, a paper titled "Taming
Undefined Behavior in LLVM" [2] was published, detailing the various
concerns introduced in the RFC. There is also a patch proposal with an
initial implementation
2016 Jun 28
2
[BUG] 3.8 alignment/struct padding
...// 1024
[10 x %int128m_T], // 1028
double, // 1192
double, // 1200
double, // 1208
i8, // 1216
double, // 1224
float // 1232
}
The equivalent C struct:
typedef struct {
real32_T s;
real_T d;
int8_T i8[4];
uint16_T ui16[4];
int32_T i32[100];
uint64_T ui64[6];
int64_T i64[64];
char_T c[3];
creal_T mycomplex;
int32_T enumeration_int32;
int8_T enumeration_int8;
uint16_T enumeration_uint16;
cint32_T fixedpoint;
int32_T fixedpoint2;
int128m_T fimw[10];
real_T fisd1;
real...
2020 Apr 07
2
Questions about vscale
...LMUL = 4 LMUL =
8
int64_t | vscale x 1 x i64 | vscale x 2 x i64 | vscale x 4 x i64 | vscale
x 8 x i64
int32_t | vscale x 2 x i32 | vscale x 4 x i32 | vscale x 8 x i32 | vscale
x 16 x i32
int16_t | vscale x 4 x i16 | vscale x 8 x i16 | vscale x 16 x i16 | vscale
x 32 x i16
int8_t | vscale x 8 x i8 | vscale x 16 x i8 | vscale x 32 x i8 | vscale
x 64 x i8
We have another architecture parameter, ELEN, which means the maximum size
of a single vector element in bits.
We hope the type system could be consistent under ELEN = 32 and ELEN = 64.
However, vscale may be a fractio...
2016 Sep 30
2
[PATCH v2] nv50/ir: constant fold OP_SPLIT
...--- a/src/gallium/drivers/nouveau/codegen/nv50_ir_peephole.cpp
+++ b/src/gallium/drivers/nouveau/codegen/nv50_ir_peephole.cpp
@@ -932,6 +932,22 @@ ConstantFolding::opnd(Instruction *i, ImmediateValue &imm0, int s)
Instruction *newi = i;
switch (i->op) {
+ case OP_SPLIT: {
+ uint8_t size = typeSizeof(i->dType);
+ DataType type = typeOfSize(size / 2, isFloatType(i->dType),
+ isSignedType(i->dType));
+ if (likely(type != TYPE_NONE)) {
+ uint64_t val = imm0.reg.data.u64;
+ uint16_t shift = size * 8;
+ bld....
2019 Sep 23
2
[PATCH nbdkit v2] server: public: Add nbdkit_parse_* functions for safely parsing integers.
...inux and BSD, I wouldn't
> hold my breath on it lasting forever.
I should say our existing code already has this bug, this
patch doesn't change it :-)
Below is V2 which fixes everything you mentioned. In this version I
have got rid of long, unsigned_long, size_t and ssize_t, but added
int8_t and uint8_t.
Rich.
>From 375e286be27f563a9f1a886e29bdcfcebebfa81c Mon Sep 17 00:00:00 2001
From: "Richard W.M. Jones" <rjones@redhat.com>
Date: Sat, 21 Sep 2019 07:30:40 +0100
Subject: [PATCH] server: public: Add nbdkit_parse_* functions for safely
parsing integers.
MIME-Versi...
2017 Jul 04
4
trunc nsw/nuw?
...n the LLVM IR.
It might be interesting for static analysis tools that want to know if you truncate something
that is too large for the target range but you need the sign to determine, e.g. the C/C++ frontend
could use that flag for trunc of signed/unsigned integers, then you could e.g. check if
(uint8_t)x
changes the values if x has stuff out of the 0..255 range.
e.g. x as int with -100 => trunc nuw to 8 => bad
(int8_t)x
=> trunc nsw to 8 => ok
Greetings
Christoph
>
> Thanks,
> Nuno
>
> -----Original Message-----
> From: Alexandre Isoard via llvm-dev
> Se...
2019 May 03
2
RFC: On removing magic numbers assuming 8-bit bytes
...d parties to explore that and if we
receive suggestions on how to generalize also in that respect, we'll
certainly consider them.
> 2. If you define a byte to be e.g. 16 bits wide, does it mean that
> "char" is also 16 bits wide? If yes then how to do you define types
> like int8_t from stdint.h?
Yes, char is the same. The int8_t type is optional according to the
standard and we don't define it for our OOT target. The int_least8_t is
required, but we just define it to be byte sized.
> 3. Have you thought about the possibility to support different byte
> sizes for...
2015 Jun 03
5
[PATCH 1/1] Updated opus_types.h to correctly support 8 and 64 bit types.
...n from Paul Hsieh's pstdint.h) */
#if (defined(__STDC__) && __STDC__ && __STDC_VERSION__ >= 199901L) || (defined(__GNUC__) && (defined(_STDINT_H) || defined(_STDINT_H_)) || defined (HAVE_STDINT_H))
-#include <stdint.h>
+# include <stdint.h>
+ typedef int8_t opus_int8;
+ typedef uint8_t opus_uint8;
typedef int16_t opus_int16;
typedef uint16_t opus_uint16;
typedef int32_t opus_int32;
typedef uint32_t opus_uint32;
+ typedef int64_t opus_int64;
+ typedef uint64_t opus_uint64;
+
#elif defined(_WIN32)
# if defined(__CYGWIN__)
-...
2013 Nov 20
0
[LLVMdev] zero-sized arrays and alignment
...uirements are equal or less strict.
If all this is true, which testing shows on the x86_64 platform, then I
can use zero-sized arrays to force the alignment of any structure
element. I don't have to calculate the padding on my own (as does clang).
For example, the C++ struct:
struct pine {
int8_t a;
int8_t alignas(int32_t) b;
};
Can become:
type { i8, [0 x i32], i8 }
--
edA-qa mort-ora-y
Leaf Creator
Leaf - the language we always wanted
http://leaflang.org/
2012 Feb 09
0
[PATCH] Remove even more CPP hackery
...Yeo wrote:
>>> Yes that makes sense. Requiring a C99 compliant compiler seems quite
> reasonable.
>> Well I'm actually going to be even more reasonable than that. The only
> bits of C99 that flac will really require is header file
>> with C99 standard width integers (int8_t, uint8_t, int16_t etc). Erik
>
> I would recommend including with the distribution a file for windows
> developers to use. It's fairly simple
>
>
> /* since windows doesn't have stdint.h */
> typedef unsigned __int64 uint64_t;
> typedef unsigned __int32 uint32_t;...
2011 Sep 29
1
sizeof(char)
...?6.5.3.4 alinea 3,
When applied to an operand that has type char, unsigned char, or
signed char, (or a qualified version thereof) the result is 1.
On the other hand, unlike other basic integer types, the signedness of
char is implementation-defined; see ?6.2.5 alinea 15 and footnote 35.
Since int8_t is supposed to be a *signed* 8-bit integer, it must be
explicitly defined as such. Code that relies on char being signed will
break on IRIX, and probably a number of other implementations.
DES
--
Dag-Erling Sm?rgrav - des at des.no
-------------- next part --------------
A non-text attachment w...