Displaying 10 results from an estimated 10 matches for "uint128_t".
Did you mean:
int128_t
2011 Aug 02
0
[LLVMdev] clang: Manual unfolding doesn't match automatic unfolding
Here's the code and compilation steps:
#include <stdint.h>
typedef unsigned int uint128_t __attribute__((mode(TI)));
typedef struct{
uint64_t l[5];
} s;
void f(s * restrict r, const s * restrict x, const s * restrict y) {
uint128_t t[5] = {0, 0, 0, 0, 0};
#define BODY(i,j) { int i_ = i < j ? i : j; int j_ = i < j ? j :
i; uint128_t m = (uint128_t) x->l[i_] * (y->l[j_...
2011 Jul 28
0
[LLVMdev] Spills and values present in both registers & stack
On Tue, Jul 26, 2011 at 11:35 AM, Taral <taralx at gmail.com> wrote:
>
> One piece of code I'm writing has a lot of intermediates, and I'm
> trying to optimize down the number of memory accesses. Here's a
> snippet from the start of the function, where I think there is some
> low-hanging fruit:
>
> # BB#0:
> pushq %rbp
> pushq %r15
2011 Jul 26
3
[LLVMdev] Spills and values present in both registers & stack
One piece of code I'm writing has a lot of intermediates, and I'm
trying to optimize down the number of memory accesses. Here's a
snippet from the start of the function, where I think there is some
low-hanging fruit:
# BB#0:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rdx, %rcx
movq %rdi, -16(%rsp) # 8-byte Spill
movq (%rsi), %rdi
movq
2012 Feb 09
2
[PATCH] Remove even more CPP hackery
...t.h */
typedef unsigned __int64 uint64_t;
typedef unsigned __int32 uint32_t;
typedef unsigned __int16 uint16_t;
typedef unsigned __int8 uint8_t;
typedef __int64 int64_t;
typedef __int32 int32_t;
typedef __int16 int16_t;
typedef __int8 int8_t;
#if defined(_M_IX64)
typedef unsigned __int128 uint128_t;
typedef __int128 int128_t;
#endif
2012 Feb 09
1
[PATCH] Remove even more CPP hackery
...t64 uint64_t; typedef unsigned __int32 uint32_t; typedef
>> unsigned __int16 uint16_t; typedef unsigned __int8 uint8_t;
>> typedef __int64 int64_t; typedef __int32 int32_t; typedef __int16
>> int16_t; typedef __int8 int8_t; #if defined(_M_IX64) typedef
>> unsigned __int128 uint128_t; typedef __int128 int128_t; #endif
>
> Also, I agree with the consensus that developers have to #include
> such a file before using including FLAC/all.h This is because many
> Windows developers (such as myself) are likely to already have a
> stdint.h replacement defined somewhere i...
2012 Dec 12
1
[LLVMdev] providing llvm gcc built-in function implementation...
...n briefly my issue:
While working on my project ( OSX, llvh gcc 4.2), I run into the
compilation error:
"
..
Undefined symbols for architecture x86_64:
___sync_bool_compare_and_swap_16", referenced from:
...
"
I decided that the function is declared, but not implemented for uint128_t.
So, I implemented the function, and the code is working correctly.
But the only way I manage to make the linker to find the function, and to
build the code is to declare my function as:
"
extern "C" bool __sync_bool_compare_and_swap_16(volatile __uint128_t *
destination, __uint1...
2012 Feb 09
0
[PATCH] Remove even more CPP hackery
...t; typedef unsigned __int32 uint32_t;
> typedef unsigned __int16 uint16_t;
> typedef unsigned __int8 uint8_t;
> typedef __int64 int64_t;
> typedef __int32 int32_t;
> typedef __int16 int16_t;
> typedef __int8 int8_t;
> #if defined(_M_IX64)
> typedef unsigned __int128 uint128_t;
> typedef __int128 int128_t;
> #endif
Also, I agree with the consensus that developers have to #include such a
file before using including FLAC/all.h
This is because many Windows developers (such as myself) are likely to
already have a stdint.h replacement defined somewhere in their projec...
2010 Jun 12
0
[LLVMdev] Bignum development
...>> efficiently in LLVM currently. Or I might be missing something.
>
> Should work the same as the previous example; try the following on x86-64:
> long long a(long long x, long long y) { return ((__int128_t)x)*y >> 64; }
Ah, I looked for this last night for some time. I tried uint128_t,
u_int128_t, uint128, int128, everything you can imagine... except of
course .... that. Should've read the manual.
Damn, it does do this in one mul for unsigned multiplication! I feel
embarrassed now. The stupid thing is I actually know this is what
happens in gcc 4.4.x when you do something l...
2010 Jun 11
4
[LLVMdev] Bignum development
Hi all,
After searching for a decent compiler backend for ages (google
sometimes isn't helpful), I recently stumbled upon LLVM. Woot!!
I work on bignum arithmetic (I'm a professional mathematician) and
have recently decided to switch from developing GPL'd bignum code to
BSD licensed code. (See http://www.mpir.org/ which I contributed to
for a while - a fork of GMP).
Please bear with
2010 Jun 11
3
[LLVMdev] Bignum development
On Fri, Jun 11, 2010 at 3:28 PM, Bill Hart <goodwillhart at googlemail.com> wrote:
> Hi Eli,
>
> On 11 June 2010 22:44, Eli Friedman <eli.friedman at gmail.com> wrote:
>> On Fri, Jun 11, 2010 at 10:37 AM, Bill Hart <goodwillhart at googlemail.com> wrote:
>>> a) What plans are there to support addition, subtraction,
>>> multiplication, division,