File: math.h

package info (click to toggle)
libaal 1.0.7-1
  • links: PTS
  • area: main
  • in suites: bookworm, bullseye, buster
  • size: 1,768 kB
  • sloc: sh: 4,118; ansic: 2,461; makefile: 52
file content (19 lines) | stat: -rw-r--r-- 481 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* Copyright (C) 2001, 2002, 2003 by Hans Reiser, licensing governed by
   libaal/COPYING.
   
   math.h -- some math functions which are needed by libaal. */

#ifndef AAL_MATH_H
#define AAL_MATH_H

#include "types.h"

extern int aal_log2(uint32_t n);
extern int aal_pow2(uint32_t n);
extern uint32_t aal_abs(int32_t n);

extern int aal_min(int32_t v1, int32_t v2);
uint32_t aal_mod64(uint64_t n, uint32_t div);
uint64_t aal_div64(uint64_t n, uint32_t div, uint32_t *rem);
#endif