shithub: sl

ref: bbfee60f6716dce8cf7a802c044cf7d0fe8bb6f2
dir: /src/operators.h/

View raw version
#pragma once

mpint *conv_to_mp(void *data, sl_numtype tag);
double conv_to_double(void *data, sl_numtype tag);

bool cmp_same_lt(void *a, void *b, sl_numtype tag);
bool cmp_same_eq(void *a, void *b, sl_numtype tag);
bool cmp_lt(void *a, sl_numtype atag, void *b, sl_numtype btag);
bool cmp_eq(void *a, sl_numtype atag, void *b, sl_numtype btag, bool equalnans);

s64int conv_to_s64(void *data, sl_numtype tag);
u64int conv_to_u64(void *data, sl_numtype tag);
s32int conv_to_s32(void *data, sl_numtype tag);
u32int conv_to_u32(void *data, sl_numtype tag);
Rune conv_to_Rune(void *data, sl_numtype tag);