@@ -10,6 +10,10 @@ module containers.unrolledlist;
10
10
private import containers.internal.node : shouldAddGCRange;
11
11
private import stdx.allocator.mallocator : Mallocator;
12
12
13
+ version (X86_64 )
14
+ version (LDC )
15
+ version = LDC_64 ;
16
+
13
17
/**
14
18
* Unrolled Linked List.
15
19
*
@@ -252,7 +256,7 @@ struct UnrolledList(T, Allocator = Mallocator,
252
256
}
253
257
body
254
258
{
255
- version (LDC )
259
+ version (LDC_64 )
256
260
{
257
261
import ldc.intrinsics : llvm_cttz;
258
262
size_t index = llvm_cttz(_front.registry, true );
@@ -310,7 +314,7 @@ struct UnrolledList(T, Allocator = Mallocator,
310
314
}
311
315
body
312
316
{
313
- version (LDC )
317
+ version (LDC_64 )
314
318
{
315
319
import ldc.intrinsics : llvm_cttz;
316
320
immutable index = llvm_cttz(_front.registry, true );
@@ -397,7 +401,7 @@ struct UnrolledList(T, Allocator = Mallocator,
397
401
this .current = current;
398
402
if (current ! is null )
399
403
{
400
- version ( LDC )
404
+ version (LDC_64 )
401
405
{
402
406
import ldc.intrinsics : llvm_cttz;
403
407
index = llvm_cttz(current.registry, true );
@@ -516,7 +520,7 @@ private:
516
520
{
517
521
if (first is null || second is null )
518
522
return false ;
519
- version (LDC )
523
+ version (LDC_64 )
520
524
{
521
525
import ldc.intrinsics : llvm_ctpop;
522
526
@@ -566,7 +570,7 @@ private:
566
570
immutable uint notReg = ~ (cast (uint ) registry);
567
571
else
568
572
immutable uint notReg = cast (uint ) (~ registry);
569
- version (LDC )
573
+ version (LDC_64 )
570
574
{
571
575
import ldc.intrinsics : llvm_cttz;
572
576
return llvm_cttz (notReg, true );
0 commit comments