Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Commit

Permalink
Merge pull request #901 from WalterBright/fix9449
Browse files Browse the repository at this point in the history
[critical] partial Issue 9449 - Static arrays of 128bit types segfault on initializa...
  • Loading branch information
jmdavis authored and AndrewEdwards committed Jul 21, 2014
1 parent e2c9626 commit ff80144
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/rt/memset.d
Expand Up @@ -138,3 +138,15 @@ double *_memsetDouble(double *p, double value, size_t count)
*p = value;
return pstart;
}

version (D_SIMD)
{
import core.simd;

void16* _memsetSIMD(void16 *p, void16 value, size_t count)
{
foreach (i; 0..count)
p[i] = value;
return p;
}
}

0 comments on commit ff80144

Please sign in to comment.