This file is indexed.

/usr/include/gmsh/mpz.h is in libgmsh-dev 2.8.5+dfsg-1.1+b1.

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
/*
  This is an interface to masquerade ordinary long integers in C
  language behind an interface mimicing arbitrary precision arithmetic
  interger (mpz) interface in The GNU MP Bignum library.

  Only the functions needed by Kbipack are available.

  THIS INTERFACE IS NOT BERFORMING ANY ARBITRARY PRECISION ARITHMETIC.
  You should always use the GMP library (http://gmplib.org/) when possible.

  Some basic techniques to detect integer overflows are implemented.
  However, they don't interfere the program flow IN ANY WAY, they just write
  an error message to stdout.

 */

#ifndef __MPZ_H__
#define __MPZ_H__

#include "GmshConfig.h"

#if defined(HAVE_GMP)
#include "gmp.h"
#else

#include <stdlib.h>
#include <stdio.h>

typedef struct {
  long int z; 
} mpz_struct;

typedef mpz_struct mpz_t[1];  
typedef mpz_struct* mpz_ptr;

// init
void mpz_init(mpz_ptr x);
void mpz_init_set(mpz_ptr rop, mpz_ptr op);
void mpz_init_set_si(mpz_ptr rop, signed long int op);

// set
void mpz_set(mpz_ptr rop, mpz_ptr op);
void mpz_set_si(mpz_ptr rop, signed long int op);
void mpz_set_ui(mpz_ptr rop, unsigned long int op);

// clear
void mpz_clear(mpz_ptr x);


// arithmethic
void mpz_add(mpz_ptr rop, mpz_ptr op1, mpz_ptr op2);
void mpz_mul(mpz_ptr rop, mpz_ptr op1, mpz_ptr op2);
void mpz_addmul(mpz_ptr rop, mpz_ptr op1, mpz_ptr op2);
void mpz_neg(mpz_ptr rop, mpz_ptr op);

// division 
void mpz_divexact(mpz_ptr q, mpz_ptr n, mpz_ptr d);
void mpz_cdiv_q(mpz_ptr q, mpz_ptr n, mpz_ptr d);
void mpz_cdiv_qr(mpz_ptr q, mpz_ptr r, mpz_ptr n, mpz_ptr d);
void mpz_tdiv_r(mpz_ptr r, mpz_ptr n, mpz_ptr d);

// compare
int mpz_cmp_si(mpz_ptr op1, signed long int op2);
int mpz_cmpabs(mpz_ptr op1, mpz_ptr op2);
int mpz_sgn(mpz_ptr op);

// extended Euclid's algorithm
void mpz_gcdext(mpz_ptr g, mpz_ptr s, mpz_ptr t, mpz_ptr a, mpz_ptr b);

// conversion
signed long int mpz_get_si(mpz_ptr op);

// io
size_t mpz_out_str(FILE *stream, int base, mpz_ptr op);
#endif
#endif