File: a_livepatch1.cpp

package info (click to toggle)
libpulp 0.2.8-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 1,964 kB
  • sloc: ansic: 11,257; python: 1,110; sh: 881; makefile: 824; cpp: 582; asm: 124
file content (8 lines) | stat: -rw-r--r-- 141 bytes parent folder | download
1
2
3
4
5
6
7
8
#include <math.h>

typedef double vec3_t[3];

double norm3_lp(vec3_t v)
{
  return cbrt(v[0]*v[0]*v[0] + v[1]*v[1]*v[1] + v[2]*v[2]*v[2]);
}