Initial import of libdpf.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Ryan Henry 2026-09-24 14:08:32 -06:00
commit e4e666f459
4563 changed files with 1690372 additions and 0 deletions

35
thirdparty/hedley/test/predict.c vendored Normal file
View file

@ -0,0 +1,35 @@
#include "../hedley.h"
#if defined(_MSC_VER)
HEDLEY_DIAGNOSTIC_PUSH
#pragma warning(disable:4668)
#include <assert.h>
#include <stddef.h>
HEDLEY_DIAGNOSTIC_POP
#else
#include <assert.h>
#include <stddef.h>
#endif
int main(void) {
int x = 0, y = 0;
y += HEDLEY_PREDICT(x, 0, 0.95);
y += HEDLEY_PREDICT(x, 0, 0.85);
y += HEDLEY_PREDICT(x, 0, 0.15);
y += HEDLEY_PREDICT(x, 0, 0.05);
y += HEDLEY_PREDICT_TRUE(x, 0.95);
y += HEDLEY_PREDICT_TRUE(x, 0.85);
y += HEDLEY_PREDICT_TRUE(x, 0.15);
y += HEDLEY_PREDICT_TRUE(x, 0.05);
y += HEDLEY_PREDICT_FALSE(x, 0.95);
y += HEDLEY_PREDICT_FALSE(x, 0.85);
y += HEDLEY_PREDICT_FALSE(x, 0.15);
y += HEDLEY_PREDICT_FALSE(x, 0.05);
y += HEDLEY_UNPREDICTABLE(x);
return y;
}