Initial import of libdpf.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
commit
e4e666f459
4563 changed files with 1690372 additions and 0 deletions
25
thirdparty/hedley/test/restrict.c
vendored
Normal file
25
thirdparty/hedley/test/restrict.c
vendored
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
#include "../hedley.h"
|
||||
|
||||
#if defined(_MSC_VER)
|
||||
HEDLEY_DIAGNOSTIC_PUSH
|
||||
#pragma warning(disable:4668)
|
||||
#include <assert.h>
|
||||
HEDLEY_DIAGNOSTIC_POP
|
||||
#else
|
||||
#include <assert.h>
|
||||
#endif
|
||||
|
||||
static void acopy(int n, int* HEDLEY_RESTRICT a, int* HEDLEY_RESTRICT b) {
|
||||
int i;
|
||||
for (i = 0 ; i < n ; i++)
|
||||
a[i] = b[i];
|
||||
}
|
||||
|
||||
int main (void) {
|
||||
int a[512] = { 0, };
|
||||
int b[512];
|
||||
|
||||
acopy(512, b, a);
|
||||
|
||||
return 0;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue