Thread overview | |||||||
---|---|---|---|---|---|---|---|
|
May 27, 2019 unlikely in LDC | ||||
---|---|---|---|---|
| ||||
Hello! Does LDC has its own counterpart for GCC's __builtin_expect? To be more specific, I need something to replicate the behaviour of these two macros: #define likely(x) __builtin_expect(!!(x), 1) #define unlikely(x) __builtin_expect(!!(x), 0) |
May 27, 2019 Re: unlikely in LDC | ||||
---|---|---|---|---|
| ||||
Posted in reply to Alexandru Militaru | On Monday, 27 May 2019 at 12:08:36 UTC, Alexandru Militaru wrote:
> Hello!
>
> Does LDC has its own counterpart for GCC's __builtin_expect?
>
> To be more specific, I need something to replicate the behaviour of these two macros:
>
> #define likely(x) __builtin_expect(!!(x), 1)
> #define unlikely(x) __builtin_expect(!!(x), 0)
you can find llvm_expect(T)(T val, T expectedVal) in the module ldc.intrinsics
|
July 11, 2019 LDC for FreeBSD on PowerPC64 | ||||
---|---|---|---|---|
| ||||
Posted in reply to Alexandru Militaru | I'm trying to port LDC to FreeBSD on PowerPC64. I've developed an initial set of patches and I'm able to build LDC 0.17.5(bootstrap). However, all but a handful of tests fail with segfault. How do I set debug to capture and diagnose the cause of the segfaults? |
Copyright © 1999-2021 by the D Language Foundation