1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283(*
* Copyright (c) 2016 Andy Ray.
*
* This file is distributed under the terms of the MIT License.
* See the file LICENSE for details.
*)[@@@warning"-3"]externalinit:unit->unit="ldouble_init"let()=init()typetexternalto_float:t->float="ctypes_ldouble_to_float"externalof_float:float->t="ctypes_ldouble_of_float"externalto_int:t->int="ctypes_ldouble_to_int"externalof_int:int->t="ctypes_ldouble_of_int"externalformat:int->int->t->string="ctypes_ldouble_format"letto_string?(width=0)?(prec=6)d=formatwidthprecdexternalof_string:string->t="ctypes_ldouble_of_string"(* debug *)(*external to_hex_string : t -> string = "ctypes_ldouble_to_hex"*)externaladd:t->t->t="ctypes_ldouble_add"externalsub:t->t->t="ctypes_ldouble_sub"externalmul:t->t->t="ctypes_ldouble_mul"externaldiv:t->t->t="ctypes_ldouble_div"externalneg:t->t="ctypes_ldouble_neg"externalpow:t->t->t="ctypes_ldouble_powl"externalsqrt:t->t="ctypes_ldouble_sqrtl"externalexp:t->t="ctypes_ldouble_expl"externallog:t->t="ctypes_ldouble_logl"externallog10:t->t="ctypes_ldouble_log10l"externalexpm1:t->t="ctypes_ldouble_expm1l"externallog1p:t->t="ctypes_ldouble_log1pl"externalcos:t->t="ctypes_ldouble_cosl"externalsin:t->t="ctypes_ldouble_sinl"externaltan:t->t="ctypes_ldouble_tanl"externalacos:t->t="ctypes_ldouble_acosl"externalasin:t->t="ctypes_ldouble_asinl"externalatan:t->t="ctypes_ldouble_atanl"externalatan2:t->t->t="ctypes_ldouble_atan2l"externalhypot:t->t->t="ctypes_ldouble_hypotl"externalcosh:t->t="ctypes_ldouble_coshl"externalsinh:t->t="ctypes_ldouble_sinhl"externaltanh:t->t="ctypes_ldouble_tanhl"externalacosh:t->t="ctypes_ldouble_acoshl"externalasinh:t->t="ctypes_ldouble_asinhl"externalatanh:t->t="ctypes_ldouble_atanhl"externalceil:t->t="ctypes_ldouble_ceill"externalfloor:t->t="ctypes_ldouble_floorl"externalabs:t->t="ctypes_ldouble_fabsl"externalrem:t->t->t="ctypes_ldouble_remainderl"externalcopysign:t->t->t="ctypes_ldouble_copysignl"externalfrexp:t->t*int="ctypes_ldouble_frexp"externalldexp:t->int->t="ctypes_ldouble_ldexp"externalmodf:t->t*t="ctypes_ldouble_modf"externalclassify:t->fpclass="ctypes_ldouble_classify"externalmin_:unit->t="ctypes_ldouble_min"letmin_float=min_()externalmax_:unit->t="ctypes_ldouble_max"letmax_float=max_()externalepsilon_:unit->t="ctypes_ldouble_epsilon"letepsilon=epsilon_()externalnan_:unit->t="ctypes_ldouble_nan"letnan=nan_()externalinf_:unit->t="ctypes_ldouble_inf"letinfinity=inf_()externalninf_:unit->t="ctypes_ldouble_ninf"letneg_infinity=ninf_()letzero=of_int0letone=of_int1externalsize_:unit->(int*int)="ctypes_ldouble_size"letbyte_sizes=size_()externalmant_dig_:unit->int="ctypes_ldouble_mant_dig"[@@noalloc]letmant_dig=mant_dig_()