This file is indexed.

/usr/lib/ocaml/apron/mpfr.mli is in libapron-ocaml-dev 0.9.10-7.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
(* File generated from mpfr.idl *)

(* This file is part of the MLGmpIDL interface, released under LGPL license.
   Please read the COPYING file packaged in the distribution  *)

type t
and round = 
  | Near
  | Zero
  | Up
  | Down

(** MPFR multiprecision floating-point numbers *)


(** The following operations are mapped as much as possible to their C counterpart. In case of imperative functions (like [set], [add], ...) the first parameter of type [t] is an out-parameter and holds the result when the function returns. For instance, [add x y z] adds the values of [y] and [z] and stores the result in [x].

 These functions are as efficient as their C counterpart: they do not imply additional memory allocation. *)



(** {2 Pretty printing} *)

val print : Format.formatter -> t -> unit
val print_round : Format.formatter -> round -> unit
val string_of_round : round -> string

(** {2 Rounding Modes} *)
(** {{:http://www.mpfr.org/mpfr-current/mpfr.html#Rounding-Related-Functions}C documentation} *)

external set_default_rounding_mode : round -> unit
	= "camlidl_mpfr_mpfr_set_default_rounding_mode"

external get_default_rounding_mode : unit -> round
	= "camlidl_mpfr_mpfr_get_default_rounding_mode"

external round_prec : t -> round -> int -> int
	= "camlidl_mpfr_mpfr_round_prec"


(** {2 Exceptions} *)
(** {{:http://www.mpfr.org/mpfr-current/mpfr.html#Exception-Related-Functions}C documentation} *)

external get_emin : unit -> int
	= "camlidl_mpfr_mpfr_get_emin"

external get_emax : unit -> int
	= "camlidl_mpfr_mpfr_get_emax"

external set_emin : int -> unit
	= "camlidl_mpfr_mpfr_set_emin"

external set_emax : int -> unit
	= "camlidl_mpfr_mpfr_set_emax"

external check_range : t -> int -> round -> int
	= "camlidl_mpfr_mpfr_check_range"

external clear_underflow : unit -> unit
	= "camlidl_mpfr_mpfr_clear_underflow"

external clear_overflow : unit -> unit
	= "camlidl_mpfr_mpfr_clear_overflow"

external clear_nanflag : unit -> unit
	= "camlidl_mpfr_mpfr_clear_nanflag"

external clear_inexflag : unit -> unit
	= "camlidl_mpfr_mpfr_clear_inexflag"

external clear_flags : unit -> unit
	= "camlidl_mpfr_mpfr_clear_flags"

external underflow_p : unit -> bool
	= "camlidl_mpfr_mpfr_underflow_p"

external overflow_p : unit -> bool
	= "camlidl_mpfr_mpfr_overflow_p"

external nanflag_p : unit -> bool
	= "camlidl_mpfr_mpfr_nanflag_p"

external inexflag_p : unit -> bool
	= "camlidl_mpfr_mpfr_inexflag_p"


(** {2 Initialization Functions} *)
(** {{:http://www.mpfr.org/mpfr-current/mpfr.html#Initialization-Functions}C documentation} *)

external set_default_prec : int -> unit
	= "camlidl_mpfr_mpfr_set_default_prec"

external get_default_prec : unit -> int
	= "camlidl_mpfr_mpfr_get_default_prec"

external init : unit -> t
	= "camlidl_mpfr_mpfr_init"

external init2 : int -> t
	= "camlidl_mpfr_mpfr_init2"

external get_prec : t -> int
	= "camlidl_mpfr_mpfr_get_prec"

external set_prec : t -> int -> unit
	= "camlidl_mpfr_mpfr_set_prec"

external set_prec_raw : t -> int -> unit
	= "camlidl_mpfr_mpfr_set_prec_raw"


(** {2 Assignment Functions} *)
(** {{:http://www.mpfr.org/mpfr-current/mpfr.html#Assignment-Functions}C documentation} *)

external set : t -> t -> round -> int
	= "camlidl_mpfr_mpfr_set"

external set_si : t -> int -> round -> int
	= "camlidl_mpfr_mpfr_set_si"

external set_d : t -> float -> round -> int
	= "camlidl_mpfr_mpfr_set_d"

external set_z : t -> Mpz.t -> round -> int
	= "camlidl_mpfr_mpfr_set_z"

external set_q : t -> Mpq.t -> round -> int
	= "camlidl_mpfr_mpfr_set_q"

external _set_str : t -> string -> int -> round -> unit
	= "camlidl_mpfr_mpfr__set_str"

val set_str : t -> string -> base:int -> round -> unit
external set_f : t -> Mpf.t -> round -> int
	= "camlidl_mpfr_mpfr_set_f"

external set_si_2exp : t -> int -> int -> round -> int
	= "camlidl_mpfr_mpfr_set_si_2exp"

external set_inf : t -> int -> unit
	= "camlidl_mpfr_mpfr_set_inf"

external set_nan : t -> unit
	= "camlidl_mpfr_mpfr_set_nan"

external swap : t -> t -> unit
	= "camlidl_mpfr_mpfr_swap"


(** {2 Combined Initialization and Assignment Functions} *)
(** {{:http://www.mpfr.org/mpfr-current/mpfr.html#Combined-Initialization-and-Assignment-Functions}C documentation} *)

external init_set : t -> round -> int * t
	= "camlidl_mpfr_mpfr_init_set"

external init_set_si : int -> round -> int * t
	= "camlidl_mpfr_mpfr_init_set_si"

external init_set_d : float -> round -> int * t
	= "camlidl_mpfr_mpfr_init_set_d"

external init_set_f : Mpf.t -> round -> int * t
	= "camlidl_mpfr_mpfr_init_set_f"

external init_set_z : Mpz.t -> round -> int * t
	= "camlidl_mpfr_mpfr_init_set_z"

external init_set_q : Mpq.t -> round -> int * t
	= "camlidl_mpfr_mpfr_init_set_q"

external _init_set_str : string -> int -> round -> t
	= "camlidl_mpfr_mpfr__init_set_str"

val init_set_str : string -> base:int -> round -> t

(** {2 Conversion Functions} *)
(** {{:http://www.mpfr.org/mpfr-current/mpfr.html#Conversion-Functions}C documentation} *)

external get_d : t -> round -> float
	= "camlidl_mpfr_mpfr_get_d"

external get_d1 : t -> float
	= "camlidl_mpfr_mpfr_get_d1"

external get_z_exp : Mpz.t -> t -> int
	= "camlidl_mpfr_mpfr_get_z_exp"

external get_z : Mpz.t -> t -> round -> unit
	= "camlidl_mpfr_mpfr_get_z"

external _get_str : int -> int -> t -> round -> string * int
	= "camlidl_mpfr_mpfr__get_str"

val get_str : base:int -> digits:int -> t -> round -> string * int

(** {2 User Conversions} *)

(** These functionss are additions to or renaming of functions offered by the C library. *)

val to_string : t -> string
val to_float : ?round:round -> t -> float
val to_mpq : t -> Mpq.t
val of_string : string -> round -> t
val of_float : float -> round -> t
val of_int : int -> round -> t
val of_frac : int -> int -> round -> t
val of_mpz : Mpz.t -> round -> t
val of_mpz2 : Mpz.t -> Mpz.t -> round -> t
val of_mpq : Mpq.t -> round -> t

(** {2 Basic Arithmetic Functions} *)
(** {{:http://www.mpfr.org/mpfr-current/mpfr.html#Basic-Arithmetic-Functions}C documentation} *)

external add : t -> t -> t -> round -> int
	= "camlidl_mpfr_mpfr_add"

external add_ui : t -> t -> int -> round -> int
	= "camlidl_mpfr_mpfr_add_ui"

external add_z : t -> t -> Mpz.t -> round -> int
	= "camlidl_mpfr_mpfr_add_z"

external add_q : t -> t -> Mpq.t -> round -> int
	= "camlidl_mpfr_mpfr_add_q"

external sub : t -> t -> t -> round -> int
	= "camlidl_mpfr_mpfr_sub"

external ui_sub : t -> int -> t -> round -> int
	= "camlidl_mpfr_mpfr_ui_sub"

external sub_ui : t -> t -> int -> round -> int
	= "camlidl_mpfr_mpfr_sub_ui"

external sub_z : t -> t -> Mpz.t -> round -> int
	= "camlidl_mpfr_mpfr_sub_z"

external sub_q : t -> t -> Mpq.t -> round -> int
	= "camlidl_mpfr_mpfr_sub_q"

external mul : t -> t -> t -> round -> int
	= "camlidl_mpfr_mpfr_mul"

external mul_ui : t -> t -> int -> round -> int
	= "camlidl_mpfr_mpfr_mul_ui"

external mul_z : t -> t -> Mpz.t -> round -> int
	= "camlidl_mpfr_mpfr_mul_z"

external mul_q : t -> t -> Mpq.t -> round -> int
	= "camlidl_mpfr_mpfr_mul_q"

external mul_2ui : t -> t -> int -> round -> int
	= "camlidl_mpfr_mpfr_mul_2ui"

external mul_2si : t -> t -> int -> round -> int
	= "camlidl_mpfr_mpfr_mul_2si"

external mul_2exp : t -> t -> int -> round -> int
	= "camlidl_mpfr_mpfr_mul_2exp"

external div : t -> t -> t -> round -> int
	= "camlidl_mpfr_mpfr_div"

external ui_div : t -> int -> t -> round -> int
	= "camlidl_mpfr_mpfr_ui_div"

external div_ui : t -> t -> int -> round -> int
	= "camlidl_mpfr_mpfr_div_ui"

external div_z : t -> t -> Mpz.t -> round -> int
	= "camlidl_mpfr_mpfr_div_z"

external div_q : t -> t -> Mpq.t -> round -> int
	= "camlidl_mpfr_mpfr_div_q"

external div_2ui : t -> t -> int -> round -> int
	= "camlidl_mpfr_mpfr_div_2ui"

external div_2si : t -> t -> int -> round -> int
	= "camlidl_mpfr_mpfr_div_2si"

val div_2exp : t -> t -> int -> round -> int
external sqrt : t -> t -> round -> bool
	= "camlidl_mpfr_mpfr_sqrt"

external sqrt_ui : t -> int -> round -> bool
	= "camlidl_mpfr_mpfr_sqrt_ui"

external pow_ui : t -> t -> int -> round -> bool
	= "camlidl_mpfr_mpfr_pow_ui"

external pow_si : t -> t -> int -> round -> bool
	= "camlidl_mpfr_mpfr_pow_si"

external ui_pow_ui : t -> int -> int -> round -> bool
	= "camlidl_mpfr_mpfr_ui_pow_ui"

external ui_pow : t -> int -> t -> round -> bool
	= "camlidl_mpfr_mpfr_ui_pow"

external pow : t -> t -> t -> round -> bool
	= "camlidl_mpfr_mpfr_pow"

external neg : t -> t -> round -> int
	= "camlidl_mpfr_mpfr_neg"

external abs : t -> t -> round -> int
	= "camlidl_mpfr_mpfr_abs"


(** {2 Comparison Functions} *)
(** {{:http://www.mpfr.org/mpfr-current/mpfr.html#Comparison-Functions}C documentation} *)

external cmp : t -> t -> int
	= "camlidl_mpfr_mpfr_cmp"

external cmp_si : t -> int -> int
	= "camlidl_mpfr_mpfr_cmp_si"

external cmp_si_2exp : t -> int -> int -> int
	= "camlidl_mpfr_mpfr_cmp_si_2exp"

external sgn : t -> int
	= "camlidl_mpfr_mpfr_sgn"

external _equal : t -> t -> int -> bool
	= "camlidl_mpfr_mpfr__equal"

val equal : t -> t -> bits:int -> bool
external nan_p : t -> bool
	= "camlidl_mpfr_mpfr_nan_p"

external inf_p : t -> bool
	= "camlidl_mpfr_mpfr_inf_p"

external number_p : t -> bool
	= "camlidl_mpfr_mpfr_number_p"

external reldiff : t -> t -> t -> round -> unit
	= "camlidl_mpfr_mpfr_reldiff"


(** {2 Special Functions} *)
(** {{:http://www.mpfr.org/mpfr-current/mpfr.html#Special-Functions}C documentation} *)

external log : t -> t -> round -> int
	= "camlidl_mpfr_mpfr_log"

external log2 : t -> t -> round -> int
	= "camlidl_mpfr_mpfr_log2"

external log10 : t -> t -> round -> int
	= "camlidl_mpfr_mpfr_log10"

external exp : t -> t -> round -> int
	= "camlidl_mpfr_mpfr_exp"

external exp2 : t -> t -> round -> int
	= "camlidl_mpfr_mpfr_exp2"

external exp10 : t -> t -> round -> int
	= "camlidl_mpfr_mpfr_exp10"

external cos : t -> t -> round -> int
	= "camlidl_mpfr_mpfr_cos"

external sin : t -> t -> round -> int
	= "camlidl_mpfr_mpfr_sin"

external tan : t -> t -> round -> int
	= "camlidl_mpfr_mpfr_tan"

external sec : t -> t -> round -> int
	= "camlidl_mpfr_mpfr_sec"

external csc : t -> t -> round -> int
	= "camlidl_mpfr_mpfr_csc"

external cot : t -> t -> round -> int
	= "camlidl_mpfr_mpfr_cot"

external sin_cos : t -> t -> t -> round -> bool
	= "camlidl_mpfr_mpfr_sin_cos"

external acos : t -> t -> round -> int
	= "camlidl_mpfr_mpfr_acos"

external asin : t -> t -> round -> int
	= "camlidl_mpfr_mpfr_asin"

external atan : t -> t -> round -> int
	= "camlidl_mpfr_mpfr_atan"

external atan2 : t -> t -> t -> round -> int
	= "camlidl_mpfr_mpfr_atan2"

external cosh : t -> t -> round -> int
	= "camlidl_mpfr_mpfr_cosh"

external sinh : t -> t -> round -> int
	= "camlidl_mpfr_mpfr_sinh"

external tanh : t -> t -> round -> int
	= "camlidl_mpfr_mpfr_tanh"

external sech : t -> t -> round -> int
	= "camlidl_mpfr_mpfr_sech"

external csch : t -> t -> round -> int
	= "camlidl_mpfr_mpfr_csch"

external coth : t -> t -> round -> int
	= "camlidl_mpfr_mpfr_coth"

external acosh : t -> t -> round -> int
	= "camlidl_mpfr_mpfr_acosh"

external asinh : t -> t -> round -> int
	= "camlidl_mpfr_mpfr_asinh"

external atanh : t -> t -> round -> int
	= "camlidl_mpfr_mpfr_atanh"

external fac_ui : t -> int -> round -> int
	= "camlidl_mpfr_mpfr_fac_ui"

external log1p : t -> t -> round -> int
	= "camlidl_mpfr_mpfr_log1p"

external expm1 : t -> t -> round -> int
	= "camlidl_mpfr_mpfr_expm1"

external eint : t -> t -> round -> int
	= "camlidl_mpfr_mpfr_eint"

external gamma : t -> t -> round -> int
	= "camlidl_mpfr_mpfr_gamma"

external lngamma : t -> t -> round -> int
	= "camlidl_mpfr_mpfr_lngamma"

external zeta : t -> t -> round -> int
	= "camlidl_mpfr_mpfr_zeta"

external erf : t -> t -> round -> int
	= "camlidl_mpfr_mpfr_erf"

external erfc : t -> t -> round -> int
	= "camlidl_mpfr_mpfr_erfc"

external fma : t -> t -> t -> t -> round -> int
	= "camlidl_mpfr_mpfr_fma"

external agm : t -> t -> t -> round -> int
	= "camlidl_mpfr_mpfr_agm"

external hypot : t -> t -> t -> round -> int
	= "camlidl_mpfr_mpfr_hypot"

external const_log2 : t -> round -> int
	= "camlidl_mpfr_mpfr_const_log2"

external const_pi : t -> round -> int
	= "camlidl_mpfr_mpfr_const_pi"

external const_euler : t -> round -> int
	= "camlidl_mpfr_mpfr_const_euler"

external const_catalan : t -> round -> int
	= "camlidl_mpfr_mpfr_const_catalan"


(** {2 Input and Output Functions: not interfaced} *)


(** {2 Miscellaneous Float Functions} *)
(** {{:http://www.mpfr.org/mpfr-current/mpfr.html#Rounding-Related-Functions}C documentation} *)

external rint : t -> t -> round -> int
	= "camlidl_mpfr_mpfr_rint"

external ceil : t -> t -> int
	= "camlidl_mpfr_mpfr_ceil"

external floor : t -> t -> int
	= "camlidl_mpfr_mpfr_floor"

external round : t -> t -> int
	= "camlidl_mpfr_mpfr_round"

external trunc : t -> t -> int
	= "camlidl_mpfr_mpfr_trunc"

external integer_p : t -> bool
	= "camlidl_mpfr_mpfr_integer_p"

external nexttoward : t -> t -> unit
	= "camlidl_mpfr_mpfr_nexttoward"

external nextabove : t -> unit
	= "camlidl_mpfr_mpfr_nextabove"

external nextbelow : t -> unit
	= "camlidl_mpfr_mpfr_nextbelow"

external min : t -> t -> t -> round -> int
	= "camlidl_mpfr_mpfr_min"

external max : t -> t -> t -> round -> int
	= "camlidl_mpfr_mpfr_max"

external get_exp : t -> int
	= "camlidl_mpfr_mpfr_get_exp"

external set_exp : t -> int -> int
	= "camlidl_mpfr_mpfr_set_exp"