diff options
author | Thomas White <taw@physics.org> | 2020-07-30 10:16:37 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2020-07-30 10:17:12 +0200 |
commit | e14e413957b0c1e357167f43f129a6ef39ef5051 (patch) | |
tree | c26d0a6235091010138a9313bf2cfb8924903610 /libcrystfel/src/utils.c | |
parent | f9a6d5ea442e074d1e61585b572837f80e2ddac9 (diff) |
Eliminate duplicate symbols
This makes searching easier, and also permits Meson's unity build mode.
Diffstat (limited to 'libcrystfel/src/utils.c')
-rw-r--r-- | libcrystfel/src/utils.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/libcrystfel/src/utils.c b/libcrystfel/src/utils.c index 048180cf..8391fe95 100644 --- a/libcrystfel/src/utils.c +++ b/libcrystfel/src/utils.c @@ -803,6 +803,16 @@ char *load_entire_file(const char *filename) } +int compare_double(const void *av, const void *bv) +{ + double a = *(double *)av; + double b = *(double *)bv; + if ( a > b ) return 1; + if ( a < b ) return -1; + return 0; +} + + /* -------------------------- libcrystfel features ------------------------ */ int crystfel_has_peakfinder9() |